mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025202: Incorrect value of IsClosed flag in shapes produced by some algorithms
Method BRep_Tool::IsClosed() extended to analyze closure of wires in addition to shells and solids. External and Internal edges and vertices are ignored in this check. Analysis of compounds is disabled. Update of flag Closed according to actual state is added in most places where new shells are constructed. Draw-command and test case for issue CR25202
This commit is contained in:
@@ -465,6 +465,7 @@ static TopoDS_Shape ShapeWithType(const TopoDS_Shape theShape,
|
||||
TopoDS_Shell aShell;
|
||||
aShellBuilder.MakeShell(aShell);
|
||||
for(;aListIter.More();aListIter.Next()) aShellBuilder.Add(aShell,TopoDS::Face(aListIter.Value()));
|
||||
aShell.Closed (BRep_Tool::IsClosed (aShell));
|
||||
if (theType == TopAbs_SHELL) return aShell;
|
||||
aShapes.Clear(); // don't break: we can do something more of it
|
||||
aShapes.Append(aShell);
|
||||
|
Reference in New Issue
Block a user