mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026075: Make Extrema_GenExtCC return IsParallel flag in case of parallel curves
1) Added check for parallel curves. 2) Changed unefficient o(n^2) duplicates deleting algorithm to o(n) algorithm. 3) Deleted useless upper level duplicates deleting algorithm. Test-case for issue #26075
This commit is contained in:
18
tests/bugs/modalg_6/bug26075
Normal file
18
tests/bugs/modalg_6/bug26075
Normal file
@@ -0,0 +1,18 @@
|
||||
puts "========"
|
||||
puts "OCC26075"
|
||||
puts "========"
|
||||
puts ""
|
||||
###########################################################################
|
||||
# Make Extrema_GenExtCC return IsParallel flag in case of parallel curves
|
||||
###########################################################################
|
||||
|
||||
restore [locate_data_file dist1-s1.brep] s1
|
||||
restore [locate_data_file dist1-s2.brep] s2
|
||||
mkcurve c1 s1
|
||||
mkcurve c2 s2
|
||||
set bug_info [extrema c1 c2]
|
||||
|
||||
set bug_info [string range $bug_info [expr {[string first "\n" $bug_info] + 1}] [expr {[string last "\n" $bug_info] - 1}]]
|
||||
if {$bug_info != "No solutions!"} {
|
||||
puts "ERROR: OCC26075 is reproduced. Flag IsParallel is not returned."
|
||||
}
|
Reference in New Issue
Block a user