0023464: Projection algorithm produces wrong results.
[occt.git] / tests / bugs / moddata / bug23464_3
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
12restore [locate_data_file bug23464_c57.brep] c57
13restore [locate_data_file bug23464_s37.brep] s37
14
15project result c57 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