Hide menu
Loading...
Searching...
No Matches
SurfaceArea

Computes the surface area of supported model data objects.

Surface area can be computed for an entire model, a model element, a body, a B-Rep shape, or an indexed triangle mesh shape. Depending on object contents, the surface area may not be computable. For example, wireframe geometry and non-triangle mesh shapes do not contribute a measurable area.

Returns -1 if no measurable surface area is found.

Constructors

Constructor

new SurfaceArea(): SurfaceArea

Returns

SurfaceArea

Methods

compute()

Computes the surface area of a supported object.

Param

Object to analyze.

Call Signature

static compute(model): number

Computes the surface area of a model.

Parameters

model

Model

Model to analyze.

Returns

number

Call Signature

static compute(modelElement): number

Computes the surface area of a model element.

Parameters

modelElement

ModelElement

Model element to analyze.

Returns

number

Call Signature

static compute(body): number

Computes the surface area of a body.

Parameters

body

Body

Body to analyze.

Returns

number

Call Signature

static compute(shape): number

Computes the surface area of a B-Rep shape.

Parameters

shape

Shape

Shape to analyze.

Returns

number

Call Signature

static compute(meshShape): number

Computes the surface area of a mesh shape.

Parameters

meshShape

MeshShape

Mesh shape to analyze.

Returns

number