1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00
Files
occt/tests/bugs/modalg_6/bug26619
emv e49dc1e054 0031662: Modeling Algorithms - Incomplete result of section operation
BOPAlgo_PaveFiller: Add method for forced Edge/Face intersection to look for additional cases of coincidence.
BOPAlgo_BuilderSolid: Avoid creating solids from unclassified faces as such solids will be useless. Just warn user about unclassified faces.
2020-09-23 20:18:07 +03:00

38 lines
1.1 KiB
Plaintext

puts "============"
puts "OCC26619"
puts "============"
puts ""
#######################################################################
# Tolerances of operands are modified using bop
#######################################################################
restore [locate_data_file bug26619_shell_ft81_h0.brep] h0
restore [locate_data_file bug26619_the_face.brep] f0
regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance h0] full MaxTolerance1
tolerance f0
#turn on non-destructive mode of BOP
#setflags h0 locked
#setflags f0 locked
bnondestructive 1
bop h0 f0
bopsection result
checkprops result -l 150.232
checknbshapes result -vertex 45 -edge 45 -t -m "result"
regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance h0] full MaxTolerance2
set expected_MaxTolerance ${MaxTolerance1}
set tol_abs_MaxTolerance 0.0001
set tol_rel_MaxTolerance 0.0001
checkreal "MaxTolerance" ${MaxTolerance2} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
checkview -display result -2d -path ${imagedir}/${test_image}.png
if {[regexp "alone_1" [checksection result]]} {
puts "Error: the section is not closed"
}