Salome HOME
Coincidence to rectangle macro feature: 1. Get point of sub-feature to set coincidenc...
[modules/shaper.git] / src / GeomAPI / GeomAPI_Edge.cpp
index b5736f4b618d70b52ad2e8c786c8db1ba4d20ff6..2edd787d94d9333de94d9ede8eaa99081c756b36 100644 (file)
@@ -166,3 +166,9 @@ bool GeomAPI_Edge::isEqual(const std::shared_ptr<GeomAPI_Shape> theEdge) const
 
   return true;
 }
+
+void GeomAPI_Edge::getRange(double& theFirst, double& theLast) const
+{
+  const TopoDS_Shape& aShape = const_cast<GeomAPI_Edge*>(this)->impl<TopoDS_Shape>();
+  Handle(Geom_Curve) aCurve = BRep_Tool::Curve((const TopoDS_Edge&)aShape, theFirst, theLast);
+}