return (aChecker.IsValid() == Standard_True);
}
-//==================================================================================================
-bool GeomAlgoAPI_MakeShape::hasVolume() const
-{
- bool hasVolume = false;
- if(isValid()) {
- const TopoDS_Shape& aRShape = myShape->impl<TopoDS_Shape>();
- GProp_GProps aGProp;
- BRepGProp::VolumeProperties(aRShape, aGProp);
- if(aGProp.Mass() > Precision::Confusion())
- hasVolume = true;
- }
- return hasVolume;
-}
-
//==================================================================================================
std::shared_ptr<GeomAPI_DataMapOfShapeShape> GeomAlgoAPI_MakeShape::mapOfSubShapes() const
{
/// \return true if resulting shape is valid.
GEOMALGOAPI_EXPORT bool isValid() const;
- /// \return true if resulting shape has volume.
- GEOMALGOAPI_EXPORT bool hasVolume() const;
-
/// \return map of sub-shapes of the result. To be used for History keeping.
GEOMALGOAPI_EXPORT std::shared_ptr<GeomAPI_DataMapOfShapeShape> mapOfSubShapes() const;