1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

Bnd_Range - add missing method GetBounds()

This commit is contained in:
kgv
2018-03-17 15:49:10 +03:00
parent b09d5d97e2
commit 30466b9cb9

View File

@@ -82,6 +82,21 @@ public:
return Standard_True;
}
//! Obtain first and last boundary of <this>.
//! If <this> is VOID the method returns false.
Standard_Boolean GetBounds(Standard_Real& theFirstPar,
Standard_Real& theLastPar) const
{
if(IsVoid())
{
return Standard_False;
}
theFirstPar = myFirst;
theLastPar = myLast;
return Standard_True;
}
//! Returns range value (MAX-MIN). Returns negative value for VOID range.
Standard_Real Delta() const
{