Finding Volume & Surface Area

Hello,

I am attempting to use Open CASCADE to create volumes from simple primitives (sphere, cube, cone, etc.) which are combined via boolean operations. The desired output is the surface area and volume of the composite volume. What is the preferred way to do this? I began by creating a sphere and box with the BRepPrimAPI calls *_MakeSphere() and *_MakeBox(). Is there a way to calculate the volume and surface area of the TopoDS_Solid that results?

C R Johnson's picture

You can use BRepGProp. this page of documentation is quite good: http://www.opencascade.org/doc/ModelingData/gprop.htm

cliff