diff --git a/src/Extrema/Extrema_ExtSS.hxx b/src/Extrema/Extrema_ExtSS.hxx index 64956956c7..da4785d671 100644 --- a/src/Extrema/Extrema_ExtSS.hxx +++ b/src/Extrema/Extrema_ExtSS.hxx @@ -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. diff --git a/src/GeomAPI/GeomAPI_ExtremaCurveCurve.hxx b/src/GeomAPI/GeomAPI_ExtremaCurveCurve.hxx index 9aa545c0f9..20c3d6d601 100644 --- a/src/GeomAPI/GeomAPI_ExtremaCurveCurve.hxx +++ b/src/GeomAPI/GeomAPI_ExtremaCurveCurve.hxx @@ -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 diff --git a/src/GeomAPI/GeomAPI_ExtremaCurveSurface.hxx b/src/GeomAPI/GeomAPI_ExtremaCurveSurface.hxx index 6e08b14d75..8841367ee7 100644 --- a/src/GeomAPI/GeomAPI_ExtremaCurveSurface.hxx +++ b/src/GeomAPI/GeomAPI_ExtremaCurveSurface.hxx @@ -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. diff --git a/src/GeomAPI/GeomAPI_ExtremaSurfaceSurface.hxx b/src/GeomAPI/GeomAPI_ExtremaSurfaceSurface.hxx index 894dc85f9e..86e9f90af0 100644 --- a/src/GeomAPI/GeomAPI_ExtremaSurfaceSurface.hxx +++ b/src/GeomAPI/GeomAPI_ExtremaSurfaceSurface.hxx @@ -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