mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-02 17:46:22 +03:00
OCC22400 BndLib_Add3dCurve::Add - protect against void bounding box
This commit is contained in:
parent
86b3805f0b
commit
44fb70f22e
@ -150,11 +150,14 @@ void BndLib_Add3dCurve::Add( const Adaptor3d_Curve& C,
|
||||
tol = Max(FillBox(B1,GACurve,first,last,N), tol);
|
||||
first = last;
|
||||
}
|
||||
B1.Enlarge(weakness*tol);
|
||||
Standard_Real x, y, z, X, Y, Z;
|
||||
B1.Get(x, y, z, X, Y, Z);
|
||||
B.Update(x, y, z, X, Y, Z);
|
||||
B.Enlarge(Tol);
|
||||
if (!B1.IsVoid())
|
||||
{
|
||||
B1.Enlarge(weakness*tol);
|
||||
Standard_Real x, y, z, X, Y, Z;
|
||||
B1.Get(x, y, z, X, Y, Z);
|
||||
B.Update(x, y, z, X, Y, Z);
|
||||
B.Enlarge(Tol);
|
||||
}
|
||||
//<-OCC566(apo)
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user