Class VolumeIntegration
Defined in File VolumeIntegration.h
Class Documentation
-
class VolumeIntegration
Public Functions
-
VolumeIntegration(const unsigned int nVertices, const unsigned int nFaces, Vector3r *const vertices, const unsigned int *indices)
-
void compute_inertia_tensor(Real density)
Compute inertia tensor for given geometry and given density.
-
inline Real getMass() const
Return mass of body.
-
inline Real getVolume() const
Return volume of body.
-
inline Matrix3r const &getInertia() const
Return inertia tensor of body.
-
inline Vector3r const &getCenterOfMass() const
Return center of mass.
-
VolumeIntegration(const unsigned int nVertices, const unsigned int nFaces, Vector3r *const vertices, const unsigned int *indices)