API Documentation > Interface Classes > Class pfcMassProperty
Class pfcMassProperty

# include <pfcSolid.h>

class
pfcMassProperty
: public virtual
xobject
{
xdeclare(pfcMassProperty)
...
};
This is a
COMPACT class.

Description
This class represents solid model mass property data.
User Guide References:
Method Summary
Create (xreal Volume, xreal SurfaceArea, xreal Density, xreal Mass, pfcPoint3D_ptr GravityCenter, pfcInertia_ptr CoordSysInertia, pfcInertia_ptr CoordSysInertiaTensor, pfcInertia_ptr CenterGravityInertiaTensor, pfcVector3D_ptr PrincipalMoments, pfcPrincipalAxes_ptr PrincipalAxes)
Creates a new object with mass property information.
void
The inertia tensor translated to center of gravity
void
The inertia matrix with respect to coordinate frame:(element ij is the integral of x_i x_j over the object)
void
The inertia tensor with respect to coordinate frame:CoordSysInertiaTensor = trace(CoordSysInertia) * identity - CoordSysInertia
void
The density of the model.
void
The center of gravity with respect to coordinate frame
void
SetMass (xreal value)
The model mass.
void
The principal axes (the eigenvectors of CenterGravityInertiaTensor);The vectors are stored in columns.
void
The principal moments of inertia (eigenvalues of CenterGravityInertiaTensor)
void
The model's surface area.
void
The model's volume.
Method Detail
GetVolume
()
void
SetVolume
(xreal value)
The model's volume.
GetSurfaceArea
()
void
SetSurfaceArea
(xreal value)
The model's surface area.
GetDensity
()
void
SetDensity
(xreal value)
The density of the model.
GetMass
()
void
SetMass
(xreal value)
The model mass.
GetGravityCenter
()
void
SetGravityCenter
(pfcPoint3D_ptr value)
The center of gravity with respect to coordinate frame
GetCoordSysInertia
()
void
SetCoordSysInertia
(pfcInertia_ptr value)
The inertia matrix with respect to coordinate frame:(element ij is the integral of x_i x_j over the object)
GetCoordSysInertiaTensor
()
void
SetCoordSysInertiaTensor
(pfcInertia_ptr value)
The inertia tensor with respect to coordinate frame:CoordSysInertiaTensor = trace(CoordSysInertia) * identity - CoordSysInertia
GetCenterGravityInertiaTensor
()
void
SetCenterGravityInertiaTensor
(pfcInertia_ptr value)
The inertia tensor translated to center of gravity
GetPrincipalMoments
()
void
SetPrincipalMoments
(pfcVector3D_ptr value)
The principal moments of inertia (eigenvalues of CenterGravityInertiaTensor)
GetPrincipalAxes
()
void
SetPrincipalAxes
The principal axes (the eigenvectors of CenterGravityInertiaTensor);The vectors are stored in columns.
Create
(xreal Volume, xreal SurfaceArea, xreal Density, xreal Mass, pfcPoint3D_ptr GravityCenter, pfcInertia_ptr CoordSysInertia, pfcInertia_ptr CoordSysInertiaTensor, pfcInertia_ptr CenterGravityInertiaTensor, pfcVector3D_ptr PrincipalMoments, pfcPrincipalAxes_ptr PrincipalAxes)
Creates a new object with mass property information.
Parameters:
Volume
SurfaceArea
Density
Mass
GravityCenter
The center of gravity with respect to coordinate frame
CoordSysInertia
The inertia matrix with respect to coordinate frame:(element ij is the integral of x_i x_j over the object)
CoordSysInertiaTensor
The inertia tensor with respect to coordinate frame:inertia_tensor = trace(inertia) * identity - inertia
CenterGravityInertiaTensor
The inertia tensor translated to center of gravity
PrincipalMoments
The principal moments of inertia (eigenvalues of cg_inertia_tensor)
PrincipalAxes
The principal axes (the eigenvectors of cg_inertia_tensor);The vectors are stored in columns.
Returns:
Was this helpful?