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 1.1738953633378706 |
13 | set pp_ch2 2.1611867552406454 |
14 | set pp_ch3 3.5000000000000004 |
15 | set pp_ch4 5.9602785616437703 |
16 | set pp_ch5 7.1681148131621049 |
17 | |
18 | restore [locate_data_file bug23706_c14.draw] c |
19 | set info [proj c $x $y $z] |
20 | |
21 | regexp {parameter 1 += +([-0-9.+eE]+)} $info full pp1 |
22 | regexp {parameter 2 += +([-0-9.+eE]+)} $info full pp2 |
23 | regexp {parameter 3 += +([-0-9.+eE]+)} $info full pp3 |
24 | regexp {parameter 4 += +([-0-9.+eE]+)} $info full pp4 |
25 | regexp {parameter 5 += +([-0-9.+eE]+)} $info full pp5 |
26 | if { $pp1 != $pp_ch1 || |
27 | $pp2 != $pp_ch2 || |
28 | $pp3 != $pp_ch3 || |
29 | $pp4 != $pp_ch4 || |
30 | $pp5 != $pp_ch5} { |
31 | puts "Error : Projection is not correct" |
32 | } else { |
33 | puts "OK: Projection is correct" |
34 | } |