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/bug27082_2i
msv fe1a6e4e54 0027082: UnifySameDomain must add internal edges where appropriate to resolve self-intersections
The new option AllowInternalEdges has been added in the class ShapeUpgrade_UnifySameDomain. It determines how the algorithm treats the situation when two faces can be merged together but they have connection with another face via the common edge.

With this option turned on, merging of such faces is not stopped, but the multiconnected edges are added to the merged face as INTERNAL edges.

By default it is false. In this mode such merging is forbidden, so the result shape will not contain any new INTERNAL edges.

The behavior of the algorithm has been changed so that it does not merge faces from different shells.
2016-04-08 11:42:26 +03:00

18 lines
426 B
Plaintext

puts "============"
puts "OCC27082"
puts "============"
puts ""
###############################
## UnifySameDomain must add internal edges where appropriate to resolve self-intersections
###############################
restore [locate_data_file bug27082_shapes2.brep] a
explode a
bfuse r a_1 a_2
unifysamedom result r +i
don result
smallview; l; fit
bopcheck result
checknbshapes result -m UnifySameDomain -face 33 -edge 86