Salome HOME
Filling operation: create a face from a set of edges/wires
[modules/shaper.git] / src / GeomAPI / GeomAPI_Wire.cpp
index 039be40a873ffb450f9b7ad609a0b1bffd9c2453..e750f3ac59270b32f64ac6c65de31e72a9ec8bfa 100644 (file)
@@ -33,3 +33,11 @@ GeomAPI_Wire::GeomAPI_Wire()
 
   this->setImpl(aWire);
 }
+
+//==================================================================================================
+GeomAPI_Wire::GeomAPI_Wire(const std::shared_ptr<GeomAPI_Shape>& theShape)
+{
+  if (!theShape->isNull() && theShape->isWire()) {
+    setImpl(new TopoDS_Shape(theShape->impl<TopoDS_Shape>()));
+  }
+}