0026022: Extrema_ExtCC gives not precise solution
[occt.git] / tests / bugs / modalg_5 / bug23706_14
CommitLineData
32ca7a51 1puts "============"
2puts "OCC23706"
3puts "============"
4puts ""
5#########################################################################
6# Cannot project point on curve
7#########################################################################
8
92dbsplinecurve b9 2 8 1 2 2 1 3 1 4 1 5 1 6 1 7 1 8 2 4 -3 1 6 8 1 10 11 1 10 11 1 10 11 1 14 14 1 5 8 1
102dbsplinecurve b10 2 8 2 2 2.5 1 3 1 3.5 1 4 1 4.5 1 5 1 5.5 2 5 20 1 8 15 1 12 18 1 12 18 1 12 18 1 16 21 1 7 12 1
11set info [2dextrema b9 b10]
12
13set status 0
2fe0e897 14for { set i 1 } { $i <= 1 } { incr i 1 } {
4bbaf12b 15 regexp "dist $i: +(\[-0-9.+eE\]+)" $info full pp
91806b90 16 if { abs($pp - 3.6712618987696386) > 1.0e-7 } {
32ca7a51 17 puts "Error : Extrema is wrong on dist $i"
18 set status 1
19 }
20}
21
32ca7a51 22if { $status != 0 } {
23 puts "Error : Extrema is wrong"
24} else {
25 puts "OK: Extrema is valid"
26}