mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
math_GlobOptMin - new global optimization minimization algorithm Extrema_GlobOptFuncCC, Extrema_ExtCC, Extrema_ExtCC2d - implementation of GlobOptMin algorithm to extrema curve / curve Extrema_CurveCache - deleted as obsolete code ChFi3d_Builder.cxx - fixed processing of extrema math_NewtonMinimum.cxx - fixed step to avoid incorrect behavior Test cases modification to meet new behavior.
25 lines
715 B
Plaintext
Executable File
25 lines
715 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC23706"
|
|
puts "============"
|
|
puts ""
|
|
#########################################################################
|
|
# Cannot project point on curve
|
|
#########################################################################
|
|
|
|
2dbsplinecurve b3 2 6 1 3 2 1 3 1 4 1 5 1 6 3 2 5 1 3 7 1 4 8 1 4 8 1 4 8 1 5 9 1 9 7 1
|
|
2dbsplinecurve b4 2 6 2 3 2.5 1 3 1 3.5 1 4 1 4.5 3 -1 2 1 1 11 1 3 9 1 3 9 1 3 9 1 5 7 1 7 4 1
|
|
|
|
set info [2dextrema b3 b4]
|
|
set status 0
|
|
regexp "dist 1: +(\[-0-9.+eE\]+)" $info full pp
|
|
if { $pp > 1.0e-7 } {
|
|
puts "Error : Extrema is wrong"
|
|
set status 1
|
|
}
|
|
|
|
if { $status != 0 } {
|
|
puts "Error : Extrema is wrong"
|
|
} else {
|
|
puts "OK: Extrema is valid"
|
|
}
|