32ca7a51 |
1 | puts "========" |
2 | puts "OCC23706" |
3 | puts "========" |
4 | puts "" |
5 | #################################### |
6 | ## Cannot project point on curve |
7 | #################################### |
8 | |
9 | set x 3.0 |
10 | set y 3.0 |
11 | set z 2.0 |
12 | set pp_ch1 2.261838779028444 |
13 | set pp_ch2 2.7514388736312116 |
14 | set pp_ch3 3.5195936992321921 |
15 | set pp_ch4 3.9600115496393977 |
16 | set pp_ch5 5.4999999987220543 |
17 | set pp_ch6 6.8388132447593541 |
18 | set pp_ch7 7.8261046366621292 |
19 | |
20 | restore [locate_data_file bug23706_c11.draw] c |
21 | set info [proj c $x $y $z] |
22 | |
23 | regexp {parameter 1 += +([-0-9.+eE]+)} $info full pp1 |
24 | regexp {parameter 2 += +([-0-9.+eE]+)} $info full pp2 |
25 | regexp {parameter 3 += +([-0-9.+eE]+)} $info full pp3 |
26 | regexp {parameter 4 += +([-0-9.+eE]+)} $info full pp4 |
27 | regexp {parameter 5 += +([-0-9.+eE]+)} $info full pp5 |
28 | regexp {parameter 6 += +([-0-9.+eE]+)} $info full pp6 |
29 | regexp {parameter 7 += +([-0-9.+eE]+)} $info full pp7 |
30 | if { $pp1 != $pp_ch1 || |
31 | $pp2 != $pp_ch2 || |
32 | $pp3 != $pp_ch3 || |
33 | $pp4 != $pp_ch4 || |
34 | $pp5 != $pp_ch5 || |
35 | $pp6 != $pp_ch6 || |
36 | $pp7 != $pp_ch7} { |
37 | puts "Error : Projection is not correct" |
38 | } else { |
39 | puts "OK: Projection is correct" |
40 | } |