1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-05 11:24:17 +03:00
occt/tests/bugs/modalg_6/bug26627
abv 1925eae948 0026627: [Regression] Shape Healing hangs as of OCC 6.8.0
Check for orientation of the solid corrected to ensure that cycle always finishes.

Test case added: bugs modalg_6 bug26627
Tests boolean volumemaker A3, B5, B7 corrected (improvements)
2015-09-11 17:30:30 +03:00

20 lines
584 B
Plaintext

puts "##################################################"
puts "0026627: Shape Healing hangs as of OCC 6.8.0"
puts "##################################################"
# load and check shape
restore [locate_data_file bug26627_fixed.brep] a
tolerance a
checkshape a
# call fixshape -- it should finish in fraction of second
cpulimit 10
fixshape result a 1e-6
# result should have positive volume
if { [regexp {Mass\s*:\s*([0-9.e+-]*)} [vprops result] dummy volume] } {
checkreal "Volume of the solid" $volume 4332.63 0.1 0.
} else {
puts "Error: cannot get volume of result!"
}