79e9ce0e |
1 | puts "##################################################" |
2 | puts "0026627: Shape Healing hangs as of OCC 6.8.0" |
3 | puts "##################################################" |
4 | |
5 | # load and check shape |
6 | restore [locate_data_file bug26627_fixed.brep] a |
7 | tolerance a |
8 | checkshape a |
9 | |
10 | # call fixshape -- it should finish in fraction of second |
11 | cpulimit 10 |
12 | fixshape result a 1e-6 |
13 | |
14 | # result should have positive volume |
15 | if { [regexp {Mass\s*:\s*([0-9.e+-]*)} [vprops result] dummy volume] } { |
16 | checkreal "Volume of the solid" $volume 4332.63 0.1 0. |
17 | } else { |
18 | puts "Error: cannot get volume of result!" |
19 | } |