1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00
occt/tests/bugs/modalg_5/bug25432

25 lines
761 B
Plaintext

puts "============"
puts "OCC25432"
puts "============"
puts ""
#########################################################################
# Wrong result obtained by MakerVolume operator.
#########################################################################
restore [locate_data_file bug25432_qz.brep] q
explode q f
mkvolume result q_1 q_2 q_3 q_4 q_5 q_6 q_7 q_8 q_9 q_10 q_11 -ni
regexp {Mass +: +([-0-9.+eE]+)} [vprops result] full volume
set expected_volume 0.26776
set tol_abs_volume 1.0e-4
set tol_rel_volume 0.0001
checkreal "Volume" ${volume} ${expected_volume} ${tol_abs_volume} ${tol_rel_volume}
set square 3.59972
checknbshapes result -vertex 12 -edge 20 -wire 11 -face 11 -shell 2 -solid 2 -compsolid 0 -compound 1 -shape 59
set 2dviewer 1