0024105: ShapeFix algorithm produces not correct result.
[occt.git] / tests / bugs / xde / bug169
CommitLineData
0e94a94e 1puts "========"
2puts "OCC169"
3puts "========"
4puts ""
5
6restore [locate_data_file OCC169.brep] a
7
8fixshape result a 1e-7
352ffd73 9checkshape result
0e94a94e 10
11set square 6.27959
12
13set prop "square"
14set mass $square
15regexp {Mass +: +([-0-9.+eE]+)} [sprops result] full m
16
17if { [string compare "$mass" "empty"] != 0 } {
18 if { $m == 0 } {
19 puts "Error : The command is not valid. The $prop is 0."
20 }
21 if { $mass > 0 } {
22 puts "The expected $prop is $mass"
23 }
24 #check of change of square is < 1%
25 if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
26 puts "Error : The $prop of result shape is $m"
27 }
28} else {
29 if { $m != 0 } {
30 puts "Error : The command is not valid. The $prop is $m"
31 }
32}
33
34set 2dviewer 0
35