]> OCCT Git - occt-copy.git/commit
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>
Thu, 7 Apr 2016 16:34:41 +0000 (19:34 +0300)
commit84cd6c22863c48a9f7e626b77f600fe985513a6b
treea5aab0668368d4f6b156554b75a298be6690ecc9
parent93c2cfbee518be4b419fd858a41707cb27813853
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]