mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 09:20:35 +05:00
IPAL52557: TC7.5.0: default value in Hypothesis is different in new and saved studies
In PreciseBoundingBox(), allow an empty bnd box as input
This commit is contained in:
parent
cee59108f8
commit
a86e38643d
@ -812,8 +812,9 @@ TopoDS_Shape GEOMUtils::GetEdgeNearPoint (const TopoDS_Shape& theShape,
|
||||
Standard_Boolean GEOMUtils::PreciseBoundingBox
|
||||
(const TopoDS_Shape &theShape, Bnd_Box &theBox)
|
||||
{
|
||||
Standard_Real aBound[6];
|
||||
if ( theBox.IsVoid() ) BRepBndLib::Add( theShape, theBox );
|
||||
|
||||
Standard_Real aBound[6];
|
||||
theBox.Get(aBound[0], aBound[2], aBound[4], aBound[1], aBound[3], aBound[5]);
|
||||
|
||||
Standard_Integer i;
|
||||
|
Loading…
Reference in New Issue
Block a user