X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Shape.cpp;h=a957eb3b6219ca18468d13cdc280234c189cdbcd;hb=69ff21c1bc1af665be9419918f64f5a7d1878cbd;hp=bbd1de77b3eff2152a5313bdc6bfa2b95bf867c3;hpb=27fbd6131dcfe0618582edc25222e0506e138a2d;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Shape.cpp b/src/GeomAPI/GeomAPI_Shape.cpp index bbd1de77b..a957eb3b6 100644 --- a/src/GeomAPI/GeomAPI_Shape.cpp +++ b/src/GeomAPI/GeomAPI_Shape.cpp @@ -82,6 +82,12 @@ bool GeomAPI_Shape::isSolid() const return !aShape.IsNull() && aShape.ShapeType() == TopAbs_SOLID; } +GeomAPI_Shape::ShapeType GeomAPI_Shape::shapeType() const +{ + const TopoDS_Shape& aShape = impl(); + return (ShapeType)aShape.ShapeType(); +} + bool GeomAPI_Shape::computeSize(double& theXmin, double& theYmin, double& theZmin, double& theXmax, double& theYmax, double& theZmax) const {