]> OCCT Git - occt-copy.git/commitdiff
Bnd_Range - add missing method GetBounds() CR0-ipdm-OIT
authorkgv <kgv@opencascade.com>
Sat, 17 Mar 2018 12:49:10 +0000 (15:49 +0300)
committerkgv <kgv@opencascade.com>
Sat, 17 Mar 2018 12:49:10 +0000 (15:49 +0300)
src/Bnd/Bnd_Range.hxx

index 439008f1f8b0be2458e09fa7b45d83c1d75b0365..845868c342e5835aa0cd50c30e773b420cc35d44 100644 (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
   {