mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-22 03:16:39 +08:00
Modeling - Handle void bounding box case in BRepBndLib::AddOptimal #470
In some cases face without natural bound can be not have edges on curve
This commit is contained in:
@@ -619,8 +619,13 @@ void FindExactUVBounds(const TopoDS_Face& FF,
|
||||
BndLib_Add2dCurve::AddOptimal(aC2D, aT1, aT2, TolUV, aBox);
|
||||
//
|
||||
}
|
||||
//
|
||||
aBox.Get(umin, vmin, umax, vmax);
|
||||
|
||||
// In some cases no edges are found
|
||||
if (!aBox.IsVoid())
|
||||
{
|
||||
aBox.Get(umin, vmin, umax, vmax);
|
||||
}
|
||||
|
||||
//
|
||||
TopLoc_Location aLoc;
|
||||
Handle(Geom_Surface) aS = BRep_Tool::Surface(FF, aLoc);
|
||||
|
||||
Reference in New Issue
Block a user