mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
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.
25 lines
553 B
Plaintext
25 lines
553 B
Plaintext
puts "========"
|
|
puts "OCC28211"
|
|
puts "========"
|
|
puts ""
|
|
#################################################
|
|
# Modeling Algorithms - Boolean fuse operation produces incorrect result
|
|
#################################################
|
|
|
|
restore [locate_data_file bug28211_DDJ_BLD1_B_Pos3.brep] a
|
|
|
|
explode a so
|
|
bclearobjects
|
|
bcleartools
|
|
baddobjects a_1
|
|
baddtools a_2
|
|
bfillds
|
|
|
|
# FUSE
|
|
bbop result 1
|
|
|
|
checkshape result
|
|
checknbshapes result -solid 1 -shell 1
|
|
checkprops result -v 13953.1 -s 4096.56
|
|
|
|
checkview -display result -2d -path ${imagedir}/${test_image}.png |