0025624: Visualization - selection is incorrect in perspective mode in a specific...
[occt.git] / tests / bugs / modalg_5 / bug23706_51
CommitLineData
32ca7a51 1puts "========"
2puts "OCC23706"
3puts "========"
4puts ""
5####################################
6## Cannot project point on curve
7####################################
8
9set x 5.0
10set y 7.0
11set z 8.0
12set pp_ch1 2.8126840147763663
13set pp_ch2 3.5195936992321926
14set pp_ch3 3.9600115496393977
15set pp_ch4 5.4999999987220543
16set pp_ch5 7.2883607799598096
17set pp_ch6 1
18
19restore [locate_data_file bug23706_c11.draw] c
20set info [proj c $x $y $z]
21
22regexp {parameter 1 += +([-0-9.+eE]+)} $info full pp1
23regexp {parameter 2 += +([-0-9.+eE]+)} $info full pp2
24regexp {parameter 3 += +([-0-9.+eE]+)} $info full pp3
25regexp {parameter 4 += +([-0-9.+eE]+)} $info full pp4
26regexp {parameter 5 += +([-0-9.+eE]+)} $info full pp5
27regexp {parameter 6 += +([-0-9.+eE]+)} $info full pp6
28if { $pp1 != $pp_ch1 || $pp2 != $pp_ch2 ||
29 $pp3 != $pp_ch3 || $pp4 != $pp_ch4 ||
30 $pp5 != $pp_ch5 || $pp6 != $pp_ch6} {
31 puts "Error : Projection is not correct"
32} else {
33 puts "OK: Projection is correct"
34}