mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0032225: Modeling Data - Wrong result of extrema curve-surface
Extrema_GenExtCS.cxx: subdivision on intervals for periodic c curves is added Extrema_FuncExtCS.hxx: access to fields mySqDist, myPoint1, myPoint2 is added bug32225: new test case is added
This commit is contained in:
28
tests/lowalgos/extcs/bug32225
Normal file
28
tests/lowalgos/extcs/bug32225
Normal file
@@ -0,0 +1,28 @@
|
||||
puts "========"
|
||||
puts "OCC32225: Modeling Data - Wrong result of extrema curve-surface"
|
||||
puts "========"
|
||||
puts ""
|
||||
|
||||
restore [locate_data_file bug32225_curve.draw] c
|
||||
restore [locate_data_file bug32225_surf.draw] s
|
||||
|
||||
extrema c s
|
||||
|
||||
if {[isdraw ext_1]} {
|
||||
set ext_dist [lindex [length ext_1] end]
|
||||
checkreal "Ext_1 min distance" $ext_dist 0. 1.e-10 1.e-10
|
||||
} else {
|
||||
puts "Error: invalid result"
|
||||
}
|
||||
|
||||
if {[isdraw ext_2]} {
|
||||
set ext_dist [lindex [length ext_2] end]
|
||||
checkreal "Ext_2 min distance" $ext_dist 0. 1.e-10 1.e-10
|
||||
} else {
|
||||
puts "Error: invalid result"
|
||||
}
|
||||
smallview
|
||||
donly c ext_1 ext_2
|
||||
fit
|
||||
disp s
|
||||
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
Reference in New Issue
Block a user