1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

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.
This commit is contained in:
msv
2016-03-22 15:23:00 +03:00
committed by bugmaster
parent 6220ba10a3
commit fe1a6e4e54
10 changed files with 215 additions and 37 deletions

View File

@@ -65,9 +65,6 @@ tcopy w w1
tmirror w1 -6 0 0 0 1 0
wire w w w1
mkface w p w
shape wsh Sh
add w wsh
renamevar wsh w
donly w
# construct complete snowflake
@@ -86,6 +83,10 @@ bfuse w w w2
bfuse w w w3
bfuse w w w4
bfuse w w w5
shape wsh Sh
foreach f [explode w f] {add $f wsh}
renamevar wsh w
save w w.brep
unifysamedom r w
# keep only wires in compound
@@ -137,7 +138,7 @@ vfit
# add dimension
explode snowflake v
vdimension length -length -shapes snowflake_64 snowflake_140 -plane xoy -value 0.001 -dispunits mm -showunits -flyout 70 -label above -color black -text 5 3d sh
vdimension length -length -shapes snowflake_89 snowflake_15 -plane xoy -value 0.001 -dispunits mm -showunits -flyout 70 -label above -color black -text 5 3d sh
if { [regexp HAVE_GL2PS [dversion]] } {
puts "You can use command vexport to generate PDF: vexport your_file_path.pdf"