Salome HOME
Correct case when the weak-named attribute is dumped in Geom mode: geometrical repres...
[modules/shaper.git] / src / GeomAPI / GeomAPI_Edge.h
index 2827c2f0dbd0b96a4530196094cc4526dfbed245..a375b100ee5586f887442cad012059c43c5a3c93 100644 (file)
@@ -97,8 +97,8 @@ public:
   /// Returns list of intersection points if the edge has intersections with the given plane
   /// \param thePlane a plane for intersection
   GEOMAPI_EXPORT
-  std::list<std::shared_ptr<GeomAPI_Pnt>>
-    intersectWithPlane(const std::shared_ptr<GeomAPI_Pln> thePlane) const;
+  void intersectWithPlane(const std::shared_ptr<GeomAPI_Pln> thePlane,
+                          std::list<std::shared_ptr<GeomAPI_Pnt> >& theResult) const;
 
   /// Returns edge length.
   GEOMAPI_EXPORT
@@ -117,6 +117,10 @@ public:
 
   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