Restoring test cases removed by last commit.
[occt.git] / tests / bugs / moddata / bug104
CommitLineData
0e94a94e 1puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
2puts "TODO OCC12345 ALL: Tcl Exception: Error: file OCC104-2.brep could not be found"
3puts "TODO OCC12345 ALL: TEST INCOMPLETE"
4
5puts "================"
6puts "BUC61007"
7puts "OCC104"
8puts "================"
9puts ""
10################################################################
11## These shapes are valid and seems that they have one size, but they volumes of the shapes are
12## quite different. This looks like a regression in comparing to C31.
13################################################################
14
15cpulimit 3000
16
17restore [locate_data_file OCC104-1.brep] sh1
18puts [checkshape sh1]
19regexp {Mass +: +([-0-9.+eE]+)} [vprops result] full l1
20
21restore [locate_data_file OCC104-2.brep] sh2
22puts [checkshape sh2]
23regexp {Mass +: +([-0-9.+eE]+)} [vprops result] full l2
24
25set diff [expr abs([expr $l2 - $l1])]
26
27if { $diff > 0.001} {
28 puts "Error : volume of OCC104-1.brep and OCC104-2.brep differ on the value $diff while the shape almost coinsident"
29} else {
30 puts "Volumes of OCC104-1.brep and OCC104-2.brep are right calculated (almost coinsident)"
31}
32