1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/modalg_7/bug28211_2
msv 2651bb324e 0028211: Modeling Algorithms - Boolean fuse operation produces incorrect result
Correct procedure of initialization of BRepTopAdaptor_FClass2d and IntTools_FClass2d classifiers so as to produce more tight polygon in the case of self-intersections on very thin faces.

The idea is concluded in checking the condition:
defl < 2 * S / P, where S - is the surface area computed on produced polygon, P - its perimeter, defl - deflection computed on it.
If the condition is not true the polygon is discretized again using QuasiUniformDeflection tool.
2018-01-12 14:54:59 +03:00

26 lines
682 B
Plaintext

puts "========"
puts "OCC28211"
puts "========"
puts ""
#################################################
# Modeling Algorithms - Boolean fuse operation produces incorrect result
#################################################
restore [locate_data_file bug28211_MHX_VKT_WS_Pos3_source.brep] s
restore [locate_data_file bug28211_MHX_VKT_WS_Pos3_tool.brep] t
explode s f
explode t f
bnondestructive 1
# Before the fix, exception in bsection algo was thrown.
bsection r s_91 t_4
bcut result s t
checkshape result
checknbshapes result -solid 4 -shell 4 -face 105 -wire 105
checkprops result -v 226838 -s 36317.7
checkview -display result -2d -path ${imagedir}/${test_image}.png