#include <ConvexPolyhedron.h>
Public Member Functions | |
ConvexPolyhedron (const mesh::TriangleMesh &) | |
ConvexPolyhedron () | |
void | updateMassAndInertia (const real_t) override |
Updates mass and inertia according to the actual shape. More... | |
real_t | getVolume () const override |
Vec3 | support (const Vec3 &) const override |
void | pack (walberla::mpi::SendBuffer &) override |
void | unpack (walberla::mpi::RecvBuffer &) override |
Public Member Functions inherited from walberla::mesa_pd::data::BaseShape | |
BaseShape ()=default | |
BaseShape (const int shapeType) | |
virtual | ~BaseShape ()=default |
const real_t & | getMass () const |
const real_t & | getInvMass () const |
const Mat3 & | getInertiaBF () const |
const Mat3 & | getInvInertiaBF () const |
const ShapeTypeT & | getShapeType () const |
Static Public Attributes | |
constexpr static int | IS_AVAILABLE = false |
constexpr static int | SHAPE_TYPE = 5 |
Unique shape type identifier for convex polyhedrons. More... | |
Static Public Attributes inherited from walberla::mesa_pd::data::BaseShape | |
static const int | INVALID_SHAPE = -1 |
Unique invalid shape type identifier. More... | |
Additional Inherited Members | |
Public Types inherited from walberla::mesa_pd::data::BaseShape | |
using | ShapeTypeT = int |
Protected Attributes inherited from walberla::mesa_pd::data::BaseShape | |
real_t | mass_ = real_t(0) |
mass More... | |
real_t | invMass_ = real_t(0) |
inverse mass More... | |
Mat3 | inertiaBF_ = Mat3(real_t(0)) |
inertia matrix in the body frame More... | |
Mat3 | invInertiaBF_ = Mat3(real_t(0)) |
inverse inertia matrix in the body frame More... | |
ShapeTypeT | shapeType_ = INVALID_SHAPE |
|
inlineexplicit |
|
inline |
|
inlineoverridevirtual |
Reimplemented from walberla::mesa_pd::data::BaseShape.
|
inlineoverridevirtual |
Reimplemented from walberla::mesa_pd::data::BaseShape.
|
inlineoverridevirtual |
Reimplemented from walberla::mesa_pd::data::BaseShape.
|
inlineoverridevirtual |
Reimplemented from walberla::mesa_pd::data::BaseShape.
|
inlineoverridevirtual |
Updates mass and inertia according to the actual shape.
Reimplemented from walberla::mesa_pd::data::BaseShape.
|
staticconstexpr |