X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Shape.cpp;h=0e5bcb010afce528fa68654ab66f867f918af232;hb=93310e00f0ac95395137c842108790bf62e6425e;hp=e51d30ca6bc6c75ecc79b3563163af554fb76c79;hpb=b387349b46c9051801052944c821f3cbc4b81204;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Shape.cpp b/src/GeomAPI/GeomAPI_Shape.cpp index e51d30ca6..0e5bcb010 100644 --- a/src/GeomAPI/GeomAPI_Shape.cpp +++ b/src/GeomAPI/GeomAPI_Shape.cpp @@ -13,11 +13,21 @@ GeomAPI_Shape::GeomAPI_Shape() { } -bool GeomAPI_Shape::isNull() +bool GeomAPI_Shape::isNull() const { return MY_SHAPE->IsNull() == Standard_True; } +bool GeomAPI_Shape::isEqual(const boost::shared_ptr theShape) const +{ + if (isNull()) + return theShape->isNull(); + if (theShape->isNull()) + return false; + + return MY_SHAPE->IsEqual(theShape->impl()) == Standard_True; +} + bool GeomAPI_Shape::isVertex() const { const TopoDS_Shape& aShape = const_cast(this)->impl();