mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-05 11:24:17 +03:00
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)
20 lines
584 B
Plaintext
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!"
|
|
}
|