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/bug29858_04
aml 94beb42a68 0029858: Modeling Data - Regression in GeomAPI_ExtremaCurveCurve
Fix Newton's minimum projection algorithm onto boundaries in case of conditional optimization.
Add possibility to detect several optimal points at initialization of the math_GlobOptMin.
2019-09-09 19:26:39 +03:00

27 lines
643 B
Plaintext

puts "========"
puts "OCC29858"
puts "========"
puts ""
#################################################
# Regression in GeomAPI_ExtremaCurveCurve
#################################################
# Read input
restore [locate_data_file bug29858_04_e1.brep] e1
restore [locate_data_file bug29858_04_e2.brep] e2
# Extract geometry from topology
mkcurve c1 e1
mkcurve c2 e2
# Run extrema
set info [extrema c1 c2]
# Amount Check
if { [llength $info] != 2 } {
puts "Error: Invalid extrema number in extrema output"
}
# Check result
checklength ext_1 -l 2.2204460492503131e-16 -eps 0.01
checklength ext_2 -l 9.693032344962995e-16 -eps 0.01