0027082: UnifySameDomain must add internal edges where appropriate to resolve self...
authormsv <msv@opencascade.com>
Tue, 22 Mar 2016 12:23:00 +0000 (15:23 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 8 Apr 2016 08:42:26 +0000 (11:42 +0300)
commitfe1a6e4e5400d698b7b6cc160338c0ed82765d95
tree62435bf69cd11ce942c944517239ef204773b609
parent6220ba10a3d6085a7fd6c6f002de5300403d18a3
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.
samples/tcl/snowflake.tcl
src/SWDRAW/SWDRAW_ShapeUpgrade.cxx
src/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx
src/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.hxx
tests/bugs/modalg_6/bug27082_1 [new file with mode: 0644]
tests/bugs/modalg_6/bug27082_1i [new file with mode: 0644]
tests/bugs/modalg_6/bug27082_2 [new file with mode: 0644]
tests/bugs/modalg_6/bug27082_2i [new file with mode: 0644]
tests/bugs/modalg_6/bug27082_3 [new file with mode: 0644]
tests/bugs/modalg_6/bug27082_3i [new file with mode: 0644]