Hide menu
Loading...
Searching...
No Matches
ValidationPropertyData

Aggregates validation properties computed for model data objects.

Stores volume, surface area, center of mass, and principal axes of inertia. The data is marked valid only when the corresponding computation succeeds.

Constructors

Constructor

new ValidationPropertyData(): ValidationPropertyData

Returns

ValidationPropertyData

Accessors

centroid

Get Signature

get centroid(): Point

Mutable stored center of mass.

The returned point is the stored object, not a copy.

Returns

Point


firstAxisOfInertia

Get Signature

get firstAxisOfInertia(): Direction

Mutable stored first axis of inertia.

The returned direction is the stored object, not a copy.

Returns

Direction


isValid

Get Signature

get isValid(): boolean

Whether the validation property computation completed without ignored invalid entities.

This can be false even when the stored property values look valid. It means that invalid entities were found during computation and were not included in the resulting values.

Returns

boolean


secondAxisOfInertia

Get Signature

get secondAxisOfInertia(): Direction

Mutable stored second axis of inertia.

The returned direction is the stored object, not a copy.

Returns

Direction


surfaceArea

Get Signature

get surfaceArea(): number

Surface area.

Returns

number


thirdAxisOfInertia

Get Signature

get thirdAxisOfInertia(): Direction

Mutable stored third axis of inertia.

The returned direction is the stored object, not a copy.

Returns

Direction


volume

Get Signature

get volume(): number

Volume.

Returns

number

Methods

clone()

clone(): ValidationPropertyData

Creates a copy of this validation property data.

Returns

ValidationPropertyData


copy()

copy(other): this

Copies validation property values from another object.

Stored point and direction values are copied without replacing the existing internal objects.

Parameters

other

ValidationPropertyData

Validation property data to copy from.

Returns

this