Salome HOME
Issue #1369: Added "SubShapes" feature.
[modules/shaper.git] / src / GeomAPI / GeomAPI_Edge.cpp
index 63761a0317b65c5a040d45132a313753115df0ba..594829f8cbb90c0af9422be90d989aa6770f2e18 100644 (file)
@@ -14,6 +14,7 @@
 #include <TopoDS_Shape.hxx>
 #include <TopoDS_Edge.hxx>
 #include <TopoDS.hxx>
+#include <BRep_Builder.hxx>
 #include <BRep_Tool.hxx>
 #include <Geom_Curve.hxx>
 #include <Geom_Line.hxx>
 #include <gp_Pln.hxx>
 
 GeomAPI_Edge::GeomAPI_Edge()
-  : GeomAPI_Shape()
 {
+  TopoDS_Edge* anEdge = new TopoDS_Edge;
+
+  BRep_Builder aBuilder;
+  aBuilder.MakeEdge(*anEdge);
+
+  setImpl(anEdge);
 }
 
 GeomAPI_Edge::GeomAPI_Edge(const std::shared_ptr<GeomAPI_Shape>& theShape)