32ca7a51 |
1 | puts "============" |
2 | puts "OCC23706" |
3 | puts "============" |
4 | puts "" |
5 | ######################################################################### |
6 | # Cannot project point on curve |
7 | ######################################################################### |
8 | |
9 | bsplinecurve r3 2 6 1 3 2 1 3 1 4 1 5 1 6 3 2 5 3 1 3 7 3 1 4 8 3 1 4 8 3 1 4 8 3 1 5 9 3 1 9 7 3 1 |
10 | bsplinecurve r4 2 6 2 3 2.5 1 3 1 3.5 1 4 1 4.5 3 -1 2 3 1 1 11 3 1 3 9 3 1 3 9 3 1 3 9 3 1 5 7 3 1 7 4 3 1 |
32ca7a51 |
11 | |
5493d334 |
12 | set info [extrema r3 r4] |
4bbaf12b |
13 | |
f9ffd4f9 |
14 | if {[regexp "ext_1" $info]} { |
15 | set dist [lindex [length ext_1] end] |
16 | if { $dist > 4.0e-13 } { |
17 | puts "Error: Extrema distance is too big" |
18 | } |
32ca7a51 |
19 | } else { |
f9ffd4f9 |
20 | puts "Error: Extrema is not found" |
32ca7a51 |
21 | } |