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.
new ValidationPropertyData():
ValidationPropertyData
ValidationPropertyData
get centroid():
Point
Mutable stored center of mass.
The returned point is the stored object, not a copy.
get firstAxisOfInertia():
Direction
Mutable stored first axis of inertia.
The returned direction is the stored object, not a copy.
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.
boolean
get secondAxisOfInertia():
Direction
Mutable stored second axis of inertia.
The returned direction is the stored object, not a copy.
get surfaceArea():
number
Surface area.
number
get thirdAxisOfInertia():
Direction
Mutable stored third axis of inertia.
The returned direction is the stored object, not a copy.
get volume():
number
Volume.
number
clone():
ValidationPropertyData
Creates a copy of this validation property data.
ValidationPropertyData
copy(
other):this
Copies validation property values from another object.
Stored point and direction values are copied without replacing the existing internal objects.
ValidationPropertyData
Validation property data to copy from.
this