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:
@@ -82,6 +82,21 @@ public:
|
|||||||
return Standard_True;
|
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.
|
//! Returns range value (MAX-MIN). Returns negative value for VOID range.
|
||||||
Standard_Real Delta() const
|
Standard_Real Delta() const
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user