0027322: geom/revolution_00/A1: Incorrect pcurve creation
[occt.git] / tests / bugs / modalg_5 / bug23706_59
CommitLineData
32ca7a51 1puts "========"
2puts "OCC23706"
3puts "========"
4puts ""
5####################################
6## Cannot project point on curve
7####################################
8
9set x 3.0
10set y 3.0
11set z 2.0
12set pp_ch1 1.1738953633378706
13set pp_ch2 2.1611867552406454
14set pp_ch3 3.5000000000000004
15set pp_ch4 5.9602785616437703
16set pp_ch5 7.1681148131621049
17
18restore [locate_data_file bug23706_c14.draw] c
19set info [proj c $x $y $z]
20
21regexp {parameter 1 += +([-0-9.+eE]+)} $info full pp1
22regexp {parameter 2 += +([-0-9.+eE]+)} $info full pp2
23regexp {parameter 3 += +([-0-9.+eE]+)} $info full pp3
24regexp {parameter 4 += +([-0-9.+eE]+)} $info full pp4
25regexp {parameter 5 += +([-0-9.+eE]+)} $info full pp5
26if { $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}