Salome HOME
Fix error in test case for issue #1779
[modules/shaper.git] / src / GeomAPI / GeomAPI_Edge.h
index ce0f7b559d18e0f1b9d830af6e6d3d5d94879970..a375b100ee5586f887442cad012059c43c5a3c93 100644 (file)
@@ -90,9 +90,16 @@ public:
   void getRange(double& theFirst, double& theLast) const;
 
   /// Returns true, if the edge is fully placed in the specified plane
+  /// \param thePlane a plane for intersection
   GEOMAPI_EXPORT
   bool isInPlane(const std::shared_ptr<GeomAPI_Pln> thePlane) const;
 
+  /// Returns list of intersection points if the edge has intersections with the given plane
+  /// \param thePlane a plane for intersection
+  GEOMAPI_EXPORT
+  void intersectWithPlane(const std::shared_ptr<GeomAPI_Pln> thePlane,
+                          std::list<std::shared_ptr<GeomAPI_Pnt> >& theResult) const;
+
   /// Returns edge length.
   GEOMAPI_EXPORT
   double length() const;
@@ -104,6 +111,16 @@ public:
   /// Returns true if the edge is degenerated (has no 3D curve)
   GEOMAPI_EXPORT
   bool isDegenerated() const;
+
+  GEOMAPI_EXPORT
+  void setFirstPointTolerance(const double theTolerance);
+
+  GEOMAPI_EXPORT
+  void setLastPointTolerance(const double theTolerance);
+
+  /// Return middle point on the edge
+  GEOMAPI_EXPORT
+  virtual std::shared_ptr<GeomAPI_Pnt> middlePoint() const;
 };
 
 //! Pointer on attribute object