1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0030927: Modeling Algorithms - UnifySameDom looses the Closed flag for wires

Add setting the Closed flag for a new wire
This commit is contained in:
jgv 2019-08-29 19:02:25 +03:00 committed by apn
parent 990d032c90
commit a22151d83c
2 changed files with 16 additions and 0 deletions

View File

@ -2567,6 +2567,7 @@ void ShapeUpgrade_UnifySameDomain::IntUnifyFaces(const TopoDS_Shape& theInpShape
RemoveEdgeFromMap(CurEdge, VEmap);
}
} //for (;;)
aNewWire.Closed(Standard_True);
UsedEdges.Add(StartEdge);
//Remove used edges from sequence

View File

@ -0,0 +1,15 @@
puts "============================================================================"
puts "0030927: Modeling Algorithms - UnifySameDom looses the Closed flag for wires"
puts "============================================================================"
puts ""
box b1 10 10 10
box b2 5 0 -5 10 10 20
bfuse s b1 b2
unifysamedom result s
foreach w [explode result w] {
if {![regexp "Closed" [whatis $w]]} {
puts "Error: Wire $w is not closed"
}
}