1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/fclasses/bug25635_2
aml e8746a262f 0025635: Wrong result of 2D-extrema between two ellipsis
Fixed Lipschitz constant evaluation in case co-parametrized objects.
Fixed 2dextrema output.
Testcase update to new behavior.

Test cases for issue CR25635

Correction of test cases for issue CR25635
2015-02-05 16:14:55 +03:00

48 lines
994 B
Plaintext
Executable File

puts "============"
puts "OCC25635"
puts "============"
puts ""
######################################################
# Wrong result of 2D-extrema between two ellipsis
######################################################
circle c1 0 0 2
circle c2 4 0 2
set info [2dextrema c1 c2]
#-1
if { [regexp "dist 1: +(\[-0-9.+eE\]+) +ext_1" ${info}] } {
puts "OK: Good ext_1"
} else {
puts "Error: Wrong ext_1"
}
if { [regexp "dist 2: +(\[-0-9.+eE\]+) +ext_2" ${info}] } {
puts "OK: Good ext_2"
} else {
puts "Error: Wrong ext_2"
}
if { [regexp "dist 3: +(\[-0-9.+eE\]+) +ext_3" ${info}] } {
puts "OK: Good ext_3"
} else {
puts "Error: Wrong ext_3"
}
if { [regexp "dist 4: +(\[-0-9.+eE\]+) +ext_4" ${info}] } {
puts "OK: Good ext_4"
} else {
puts "Error: Wrong ext_4"
}
#-2
set dump_list [dump ext_2]
if { [regexp {Point 2d} ${dump_list}] } {
puts "OK: Good result of 2D-extrema between two circles"
} else {
puts "Error: Wrong result of 2D-extrema between two circles"
}