0024242: Hang-up during classification a 3D point relative to a solid
[occt.git] / tests / bugs / modalg_5 / bug23706_28
CommitLineData
32ca7a51 1puts "========"
2puts "OCC23706"
3puts "========"
4puts ""
5####################################
6## Cannot project point on curve
7####################################
8
9set x 5.0
10set y 8.0
11set z -2.0
12set pp_ch1 1
13set pp_ch2 1
14set pp_ch3 1.1865241781930462
15
16restore [locate_data_file bug23706_c03.draw] c
17set info [proj c $x $y $z]
18
19regexp {parameter 1 += +([-0-9.+eE]+)} $info full pp1
20regexp {parameter 2 += +([-0-9.+eE]+)} $info full pp2
21regexp {parameter 3 += +([-0-9.+eE]+)} $info full pp3
22if { $pp1 != $pp_ch1 || $pp2 != $pp_ch2 || $pp3 != $pp_ch3 } {
23 puts "Error : Projection is not correct"
24} else {
25 puts "OK: Projection is correct"
26}