Struct MeshMassProperties
Stores deterministic closed-volume mass properties for an immutable mesh topology.
public readonly struct MeshMassProperties
- Inherited Members
Constructors
MeshMassProperties(Fixed64, Vector3d, Vector3d, Fixed3x3)
Creates deterministic closed-volume mass properties.
public MeshMassProperties(Fixed64 volume, Vector3d centerOfMass, Vector3d inertiaReferencePoint, Fixed3x3 unitMassInertiaTensor)
Parameters
volumeFixed64centerOfMassVector3dinertiaReferencePointVector3dunitMassInertiaTensorFixed3x3
Properties
CenterOfMass
Homogeneous center of mass in local mesh coordinates.
public Vector3d CenterOfMass { get; }
Property Value
- Vector3d
InertiaReferencePoint
Local reference point about which UnitMassInertiaTensor was computed.
public Vector3d InertiaReferencePoint { get; }
Property Value
- Vector3d
UnitMassInertiaTensor
Solid-volume inertia tensor for unit mass about InertiaReferencePoint.
public Fixed3x3 UnitMassInertiaTensor { get; }
Property Value
- Fixed3x3
Volume
Absolute solid volume in local mesh units.
public Fixed64 Volume { get; }
Property Value
- Fixed64
Methods
CalculateInertiaTensor(Fixed64, Vector3d)
Calculates an inertia tensor for the supplied mass about a local point parallel to the mesh center-of-mass axes.
public Fixed3x3 CalculateInertiaTensor(Fixed64 mass, Vector3d localReferencePoint)
Parameters
massFixed64localReferencePointVector3d
Returns
- Fixed3x3