Hide menu
Loading...
Searching...
No Matches
Volume

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.

Constructors

Constructor

new Volume(): Volume

Returns

Volume

Methods

compute()

Computes the volume of a supported object.

Param

Object to analyze.

Call Signature

static compute(model): number

Computes the volume of a model.

Parameters

model

Model

Model to analyze.

Returns

number

Call Signature

static compute(modelElement): number

Computes the volume of a model element.

Parameters

modelElement

ModelElement

Model element to analyze.

Returns

number

Call Signature

static compute(body): number

Computes the volume of a body.

Parameters

body

Body

Body to analyze.

Returns

number

Call Signature

static compute(shape): number

Computes the volume of a B-Rep shape.

Parameters

shape

Shape

Shape to analyze.

Returns

number

Call Signature

static compute(meshShape): number

Computes the volume of a mesh shape.

Parameters

meshShape

MeshShape

Mesh shape to analyze.

Returns

number