1
0
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:
MSV 2011-04-28 15:33:33 +00:00 committed by bugmaster
parent 86b3805f0b
commit 44fb70f22e

View File

@ -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;
}