]> OCCT Git - occt.git/commitdiff
0029792: Add ::IsParallel method to GeomAPI_Extrema* classes IR-2021-09-03
authorasuraven <asuraven@opencascade.com>
Wed, 18 Aug 2021 13:54:40 +0000 (16:54 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 3 Sep 2021 17:20:20 +0000 (20:20 +0300)
Add IsParallel() methods for classes:
- GeomAPI_ExtremaCurveCurve
- GeomAPI_ExtremaCurveSurface
- GeomAPI_ExtremaSurfaceSurface

src/Extrema/Extrema_ExtSS.hxx
src/GeomAPI/GeomAPI_ExtremaCurveCurve.hxx
src/GeomAPI/GeomAPI_ExtremaCurveSurface.hxx
src/GeomAPI/GeomAPI_ExtremaSurfaceSurface.hxx

index 64956956c74e4c806d029b9dc98066d88c031c97..da4785d6713e151b9bb434ca9279073e04963581 100644 (file)
@@ -63,7 +63,7 @@ public:
   //! Returns True if the distances are found.
   Standard_EXPORT Standard_Boolean IsDone() const;
   
-  //! Returns True if the curve is on a parallel surface.
+  //! Returns True if the surfaces are parallel
   Standard_EXPORT Standard_Boolean IsParallel() const;
   
   //! Returns the number of extremum distances.
index 9aa545c0f9f4e72474fdcf6762ec6e14c416f713..20c3d6d60100fa77b5da874658fe4a18cf76cb58 100644 (file)
@@ -125,6 +125,12 @@ Standard_EXPORT operator Standard_Integer() const;
   //! 1,NbExtrema ], where NbExtrema is the
   //! number of extrema computed by this algorithm.
   Standard_EXPORT Standard_Real Distance (const Standard_Integer Index) const;
+
+  //! Returns True if the two curves are parallel.
+  Standard_Boolean IsParallel() const
+  {
+    return myExtCC.IsParallel();
+  }
   
   //! Returns the points P1 on the first curve and P2 on
   //! the second curve, which are the ends of the shortest
index 6e08b14d754c9a38e2a803de8d1575ca01aec49e..8841367ee729857265086a14d6914019f725ba81 100644 (file)
@@ -127,6 +127,12 @@ Standard_EXPORT operator Standard_Integer() const;
   //! 1,NbExtrema ], where NbExtrema is the
   //! number of extrema computed by this algorithm.
   Standard_EXPORT Standard_Real Distance (const Standard_Integer Index) const;
+
+  //! Returns True if the curve is on a parallel surface.
+  Standard_Boolean IsParallel() const
+  {
+    return myExtCS.IsParallel();
+  }
   
   //! Returns the points PC on the curve and PS on the
   //! surface, which are the ends of the shortest extremum computed by this algorithm.
index 894dc85f9e6ca69811d6acc9feb41efcee385fb8..86e9f90af0a8749eaf80c07085a7959ec759492b 100644 (file)
@@ -128,6 +128,12 @@ Standard_EXPORT operator Standard_Integer() const;
   //! 1,NbExtrema ], where NbExtrema is the
   //! number of extrema computed by this algorithm.
   Standard_EXPORT Standard_Real Distance (const Standard_Integer Index) const;
+
+  //! Returns True if the surfaces are parallel
+  Standard_Boolean IsParallel() const
+  {
+    return myExtSS.IsParallel();
+  }
   
   //! Returns the points P1 on the first surface and P2 on
   //! the second surface, which are the ends of the