For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Finding Volume & Surface Area

Robert Boehne's picture
Forums: 

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