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

Compare commits

...

1 Commits

Author SHA1 Message Date
gka
4968cc7f07 0030250: Obtained shape is invalid due to presence of the loop containing two separate edges lying on the seam of the closed surface
Holes with null area is excluded from result in the ShapeFix_Face::FixMissingSeam in order to avoid cut by seam of the surface
2019-08-05 15:56:06 +03:00

View File

@@ -1707,6 +1707,11 @@ Standard_Boolean ShapeFix_Face::FixMissingSeam()
else if ( wire.IsSame ( w2 ) ) wire = w21;
else
{
Handle(ShapeAnalysis_Wire) anAnalyzer = new ShapeAnalysis_Wire(wire, myFace, Precision());
//To avoid addition of holes with null area (OCCT issue 0030250)
if (anAnalyzer->CheckSmallArea(wire))
continue;
// other wires (not boundary) are considered as holes; make sure to have them oriented accordingly
TopoDS_Shape curface = tmpF.EmptyCopied();
B.Add(curface,wire);