Hide menu
Loading...
Searching...
No Matches
ValidationProperties

Computes validation properties of supported model data objects.

Validation properties include volume, surface area, center of mass, and principal axes of inertia. Depending on object contents, some properties may not be computable; for example, volume is unavailable for sheet and wireframe data, while surface area is unavailable for pure wireframe data. Invalid entities are skipped when possible and reported through ValidationPropertyData.isValid.

Constructors

Constructor

new ValidationProperties(): ValidationProperties

Returns

ValidationProperties

Methods

compute()

Computes validation properties of a supported object.

Param

Object to analyze.

Call Signature

static compute(model): ValidationPropertyData

Computes validation properties of a model.

Parameters

model

Model

Model to analyze.

Returns

ValidationPropertyData

Call Signature

static compute(modelElement): ValidationPropertyData

Computes validation properties of a model element.

Parameters

modelElement

ModelElement

Model element to analyze.

Returns

ValidationPropertyData

Call Signature

static compute(body): ValidationPropertyData

Computes validation properties of a body.

Parameters

body

Body

Body to analyze.

Returns

ValidationPropertyData

Call Signature

static compute(shape): ValidationPropertyData

Computes validation properties of a B-Rep shape.

Parameters

shape

Shape

Shape to analyze.

Returns

ValidationPropertyData

Call Signature

static compute(meshShape): ValidationPropertyData

Computes validation properties of a mesh shape.

Parameters

meshShape

MeshShape

Mesh shape to analyze.

Returns

ValidationPropertyData


computeCentroid()

Computes the center of mass of a supported object.

Returns Point.origin when the centroid cannot be computed.

Param

Object to analyze.

Call Signature

static computeCentroid(model): Point

Computes the center of mass of a model.

Parameters

model

Model

Model to analyze.

Returns

Point

Call Signature

static computeCentroid(modelElement): Point

Computes the center of mass of a model element.

Parameters

modelElement

ModelElement

Model element to analyze.

Returns

Point

Call Signature

static computeCentroid(body): Point

Computes the center of mass of a body.

Parameters

body

Body

Body to analyze.

Returns

Point

Call Signature

static computeCentroid(shape): Point

Computes the center of mass of a B-Rep shape.

Parameters

shape

Shape

Shape to analyze.

Returns

Point

Call Signature

static computeCentroid(meshShape): Point

Computes the center of mass of a mesh shape.

Parameters

meshShape

MeshShape

Mesh shape to analyze.

Returns

Point