mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0027894: Crash when calling ShapeUpgrade_UnifySameDomain
- Avoid getting pcurve of edge on not connected face. - Avoid building wire of empty set of edges. Small correction of test case for issue CR27894
This commit is contained in:
@@ -1374,7 +1374,7 @@ void ShapeUpgrade_UnifySameDomain::IntUnifyFaces(const TopoDS_Shape& theInpShape
|
||||
if (IsSameDomain(aFace,anCheckedFace, myLinTol, myAngTol)) {
|
||||
|
||||
// hotfix for 27271: prevent merging along periodic direction.
|
||||
if (IsLikeSeam(edge, aFace, aBaseSurface))
|
||||
if (IsLikeSeam(edge, anCheckedFace, aBaseSurface))
|
||||
continue;
|
||||
|
||||
// replacing pcurves
|
||||
@@ -1574,6 +1574,8 @@ void ShapeUpgrade_UnifySameDomain::IntUnifyFaces(const TopoDS_Shape& theInpShape
|
||||
}
|
||||
sawo.Add(c2d->Value(f).XY(),c2d->Value(l).XY());
|
||||
}
|
||||
if (sawo.NbEdges() == 0)
|
||||
continue;
|
||||
sawo.Perform();
|
||||
|
||||
// constructind one degenerative edge
|
||||
|
Reference in New Issue
Block a user