32ca7a51 |
1 | puts "============" |
2 | puts "OCC23706" |
3 | puts "============" |
4 | puts "" |
5 | ######################################################################### |
6 | # Cannot project point on curve |
7 | ######################################################################### |
8 | |
f49c3109 |
9 | cpulimit 1500 |
10 | |
32ca7a51 |
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 |
4bbaf12b |
16 | regexp "dist 1: +(\[-0-9.+eE\]+)" $info full pp |
17 | if { $pp > 1.0e-7 } { |
18 | puts "Error : Extrema is wrong" |
32ca7a51 |
19 | set status 1 |
20 | } |
32ca7a51 |
21 | |
22 | if { $status != 0 } { |
23 | puts "Error : Extrema is wrong" |
24 | } else { |
25 | puts "OK: Extrema is valid" |
26 | } |