0023331: EDF 13477 - Problem with Fuse. Avoid application crush.

This commit is contained in:
jfa 2018-03-23 14:18:12 +03:00
parent 8422ddce7f
commit 08869a9687

View File

@ -665,9 +665,10 @@ TopoDS_Shape BlockFix_UnionFaces::Perform(const TopoDS_Shape& Shape)
} }
sawo.Add(c2d->Value(f).XY(),c2d->Value(l).XY()); sawo.Add(c2d->Value(f).XY(),c2d->Value(l).XY());
} }
if (aLastEdge > 0) {
sawo.Perform(); sawo.Perform();
// constructind one degenerative edge // constructing one degenerative edge
gp_XY aStart, anEnd, tmp; gp_XY aStart, anEnd, tmp;
Standard_Integer nbFirst = sawo.Ordered(1); Standard_Integer nbFirst = sawo.Ordered(1);
TopoDS_Edge anOrigE = TopoDS::Edge(sbwd->Edge(nbFirst).Oriented(TopAbs_FORWARD)); TopoDS_Edge anOrigE = TopoDS::Edge(sbwd->Edge(nbFirst).Oriented(TopAbs_FORWARD));
@ -691,6 +692,7 @@ TopoDS_Shape BlockFix_UnionFaces::Perform(const TopoDS_Shape& Shape)
B.Add(aResult,aW); B.Add(aResult,aW);
} }
} }
}
// perform substitution of face // perform substitution of face
aContext->Replace(aContext->Apply(aFace),aResult); aContext->Replace(aContext->Apply(aFace),aResult);