Salome HOME
Filling operation: create a face from a set of edges/wires
[modules/shaper.git] / src / GeomAPI / GeomAPI_Shape.cpp
index f66a6a1e6f8e9351cfa20cd7e1d0ed40292f488e..b634f3dcc28f17cef09b31e721bfc28ccece0b07 100644 (file)
@@ -103,6 +103,12 @@ bool GeomAPI_Shape::isEdge() const
   return !aShape.IsNull() && aShape.ShapeType() == TopAbs_EDGE;
 }
 
+bool GeomAPI_Shape::isWire() const
+{
+  const TopoDS_Shape& aShape = const_cast<GeomAPI_Shape*>(this)->impl<TopoDS_Shape>();
+  return !aShape.IsNull() && aShape.ShapeType() == TopAbs_WIRE;
+}
+
 bool GeomAPI_Shape::isFace() const
 {
   const TopoDS_Shape& aShape = const_cast<GeomAPI_Shape*>(this)->impl<TopoDS_Shape>();
@@ -408,6 +414,11 @@ void GeomAPI_Shape::setOrientation(const GeomAPI_Shape::Orientation theOrientati
   }
 }
 
+void GeomAPI_Shape::reverse()
+{
+  MY_SHAPE->Reverse();
+}
+
 bool GeomAPI_Shape::isSubShape(const std::shared_ptr<GeomAPI_Shape> theShape,
                                const bool theCheckOrientation) const
 {