0025175: avoid unsafe 3D curve usages
[occt.git] / tests / bugs / modalg_5 / bug23706_13
1 puts "============"
2 puts "OCC23706"
3 puts "============"
4 puts ""
5 #########################################################################
6 # Cannot project point on curve
7 #########################################################################
8
9 cpulimit 1500
10
11 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
12 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
13
14 set info [2dextrema b3 b4]
15 set status 0
16     regexp "dist 1: +(\[-0-9.+eE\]+)" $info full pp
17     if { $pp > 1.0e-7 } {
18        puts "Error : Extrema is wrong"
19        set status 1
20     }
21
22 if { $status != 0 } {
23     puts "Error : Extrema is wrong"
24 } else {
25     puts "OK: Extrema is valid"
26 }