1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/lowalgos/extcc/bug26269_1
ifv 4391df896c 0026269: Modeling Data - Analytical extrema does not take into account trimmed input data
Treatment of trimmed data is added
Extrema/Extrema_ExtCC.cxx

Test cases added
tests/lowalgos/extcc/bug26269_1
tests/lowalgos/extcc/bug26269_2

Test cases are modified according to new behavior of algorithm
2021-09-03 20:19:56 +03:00

24 lines
575 B
Plaintext

puts "========"
puts "0026269: Modeling Data - Analytical extrema does not take into account trimmed input data"
puts "========"
puts ""
#case 1
line l1 0 0 0 1 0 0
line l2 2 2 0 1 0 0
trim l1 l1 0 1
trim l2 l2 0 1
set res_extrema [extrema l1 l2]
if { [regexp "Infinite number of extremas" $res_extrema] == 0} {
if {[llength $res_extrema] != 1} {
puts "Error : expected 1 extrema, but found [llength $res_extrema]"
}
} else {
puts "Error : Infinite number of extremas is found"
}
smallview +X+Y
fit
checkview -screenshot -2d -path ${imagedir}/${test_image}.png