1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-08 18:40:55 +03:00
aml 4b65fc7750 0026184: GeomAPI_ExtremaCurveCurve hangs on parallel b-spline curves
Class CellFilterNDim added.
Class CellFulterNDim used in GlobOptMin to improve performance in case of many solutions.
Memory leak eliminated.

Test cases for issue CR26184

Small correction of test cases for issue CR26184
2015-07-02 13:53:43 +03:00

62 lines
1.7 KiB
Plaintext
Executable File

puts "TODO OCC12345 ALL: Faulty OCC565: function intersection works wrongly with trimmed Surfaces"
puts "TODO ?OCC12345 ALL: Faulty OCC565: function intersection works wrongly with infinite Surfaces"
puts "========"
puts "OCC567"
puts "========"
puts ""
#######################################
## Can not intersect two Rectangular Trimmed Surfaces .
#######################################
restore [locate_data_file OCC567a.draw] s1
restore [locate_data_file OCC567b.draw] s2
if { [string compare $tcl_platform(platform) "windows"] == 0 } {
puts "OS = Windows NT"
set N_repeat 10
} else {
puts "OS = Linux"
set N_repeat 11
}
if { [catch {intersect i s1 s2 } catch_result] } {
puts "Faulty OCC565: function intersection works wrongly with infinite Surfaces"
} else {
set j 1
repeat ${N_repeat} {
set err [lindex [whatis i_$j] 5]
if { $err != "curve"} {
puts " Faulty OCC565: function intersection works wrongly with infinite Surfaces"
break
} else {
puts [format "%s ) OCC565 OK: function intersection works with infinite Surfaces" $j]
}
incr j}
}
trim s1x s1 0 2*pi 0 2*pi/13
trim s2x s2 0 2*pi 0 2*pi/13
if { [catch {intersect result s1x s2x } catch_result] } {
puts "Faulty OCC565 exception: function intersection works wrongly with trimmed Surfaces"
} else {
set nom 0
set j 1
repeat 11 {
set err [lindex [whatis result_$j] 5]
if { $err != "curve"} {
break
} else {
set nom [expr $nom + 1]
}
incr j
}
if { $nom == 0} {
puts "Faulty OCC565: function intersection works wrongly with trimmed Surfaces"
} else {
puts " OCC565 OK: function intersection works with trimmed Surfaces"
}
}