0024463: BRepAlgo_Section::Build hangs
[occt.git] / tests / bugs / modalg_5 / bug23706_50
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 2.261838779028444
13set pp_ch2 2.7514388736312116
14set pp_ch3 3.5195936992321921
15set pp_ch4 3.9600115496393977
16set pp_ch5 5.4999999987220543
17set pp_ch6 6.8388132447593541
18set pp_ch7 7.8261046366621292
19
20restore [locate_data_file bug23706_c11.draw] c
21set info [proj c $x $y $z]
22
23regexp {parameter 1 += +([-0-9.+eE]+)} $info full pp1
24regexp {parameter 2 += +([-0-9.+eE]+)} $info full pp2
25regexp {parameter 3 += +([-0-9.+eE]+)} $info full pp3
26regexp {parameter 4 += +([-0-9.+eE]+)} $info full pp4
27regexp {parameter 5 += +([-0-9.+eE]+)} $info full pp5
28regexp {parameter 6 += +([-0-9.+eE]+)} $info full pp6
29regexp {parameter 7 += +([-0-9.+eE]+)} $info full pp7
30if { $pp1 != $pp_ch1 ||
31 $pp2 != $pp_ch2 ||
32 $pp3 != $pp_ch3 ||
33 $pp4 != $pp_ch4 ||
34 $pp5 != $pp_ch5 ||
35 $pp6 != $pp_ch6 ||
36 $pp7 != $pp_ch7} {
37 puts "Error : Projection is not correct"
38} else {
39 puts "OK: Projection is correct"
40}