0026342: No materials are read from STEP
[occt.git] / tests / bugs / moddata_2 / bug23464_2
CommitLineData
bd82d4b2 1puts "============"
2puts "CR23464"
3puts "============"
4puts ""
5##########################################################################################################
6# Projection algorithm produces wrong results
7##########################################################################################################
8
9set int_check 3
10set fract_check 1415927
11
351bbcba 12restore [locate_data_file bug23464_c50.draw] c50
13restore [locate_data_file bug23464_s37.draw] s37
bd82d4b2 14
15project result c50 s37
16set info [length result]
17regexp {is +([-0-9.+eE]+)} $info full num
18
19set int_part [expr round($num)]
20set y [expr $num - round($num)]
21set z [expr $y*10000000]
22set fract_part [expr round($z)]
23
24if { ${int_check} != ${int_part} } {
25 puts "Error : Integer part of result is incorrect"
26}
27
28if { ${fract_check} != ${fract_part} } {
29 puts "Error : Fractional part of result is incorrect"
30}
31
32
33
34
35