0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / bugs / moddata_3 / bug27059
CommitLineData
c5a10cf7 1puts "================"
2puts "0027059"
3puts "================"
4puts ""
5##############################################################
6# Point->Curve Projection/Extrema fails.
7# (No extrema found)
8##############################################################
9
10set absTol 1.0e-6
11set relTol 0.001
c5a10cf7 12set exp_x 12.700000
13set exp_y 16.8949999999593
14set exp_z 0.534684851975074
15
16restore [locate_data_file bug27059.brep] aC
17explode aC
18mkcurve curve aC_2
19
20# case 1: Curve
21# existence check
22set info1 [proj curve 12.699999 16.8949999999593 0.534684851975074]
23
24if {![regexp {ext_1} $info1]} {
25 puts "Error: No extrema found in case 1"
26}
27# length check
3ad6d001 28checklength ext_1 -l 1.0e-6
c5a10cf7 29
30# case 2: Curve
31# existence check
32set info2 [proj curve 12.700001 16.8949999999593 0.534684851975074]
33
34if {![regexp {ext_1} $info2]} {
35 puts "Error: No extrema found in case 2"
36}
37# length check
3ad6d001 38checklength ext_1 -l 1.0e-6
c5a10cf7 39
40#case 3: Point
41# existence check
42set info3 [proj curve 12.700000 16.8949999999593 0.534684851975074]
43if {![regexp {ext_1} $info3]} {
44 puts "Error: No extrema found in case 3"
45}
46# point coords check
47set case3Info [dump ext_1]
48regexp {Point : ([-0-9.+eE]+), ([-0-9.+eE]+), ([-0-9.+eE]+)} $case3Info full x y z
49checkreal "case 3 coord X" $x $exp_x $absTol $relTol
50checkreal "case 3 coord Y" $y $exp_y $absTol $relTol
51checkreal "case 3 coord Z" $z $exp_z $absTol $relTol