Computes the volume of supported model data objects.
Volume can be computed for an entire model, a model element, a body, a solid B-Rep shape, or a closed indexed triangle mesh shape. Depending on object contents, the volume may not be computable. For example, sheet bodies, wireframe geometry, open meshes, and non-triangle mesh shapes do not contribute a measurable volume.
Returns -1 if no measurable volume is found.
new Volume():
Volume
Volume
Computes the volume of a supported object.
Object to analyze.
staticcompute(model):number
Computes the volume of a model.
Model to analyze.
number
staticcompute(modelElement):number
Computes the volume of a model element.
Model element to analyze.
number
staticcompute(body):number
Computes the volume of a body.
Body to analyze.
number
staticcompute(shape):number
Computes the volume of a B-Rep shape.
Shape to analyze.
number
staticcompute(meshShape):number
Computes the volume of a mesh shape.
Mesh shape to analyze.
number