0025175: avoid unsafe 3D curve usages
[occt.git] / tests / bugs / modalg_5 / bug23706_36
CommitLineData
32ca7a51 1puts "========"
2puts "OCC23706"
3puts "========"
4puts ""
5####################################
6## Cannot project point on curve
7####################################
8
9set x 11.0
10set y -6.0
11set z 5.0
12set pp_ch1 0.22894170490369881
13set pp_ch2 1.7205732840814361
14
15restore [locate_data_file bug23706_c05.draw] c
16set info [proj c $x $y $z]
17
18regexp {parameter 1 += +([-0-9.+eE]+)} $info full pp1
19regexp {parameter 2 += +([-0-9.+eE]+)} $info full pp2
20if { $pp1 != $pp_ch1 || $pp2 != $pp_ch2 } {
21 puts "Error : Projection is not correct"
22} else {
23 puts "OK: Projection is correct"
24}
25