|
AGX Dynamics
2.37.3.2
|
#include <WindAndWaterAlgorithms.h>
Inheritance diagram for agxModel::CenterOfBuoyancyAlgorithm:Public Member Functions | |
| CenterOfBuoyancyAlgorithm () | |
| void | calculate (const agxModel::TriangleData &tData, agxModel::WindAndWaterController::ObjectData &objectData, agx::Vec3 &force, agx::Vec3 &torque) |
| virtual void | updateInteraction (agxModel::WindAndWaterController::ObjectData &objectData, const GlobalTriangleData::Container &container) override |
Protected Member Functions | |
| virtual | ~CenterOfBuoyancyAlgorithm () |
| void | calculateLocalCenterOfBuoyancy (const TriangleData &tData, const agx::Vec3 &up, agx::Real &vol, agx::Vec3 &pos) |
| void | calculatePyramidCenterOfBuoyancy (agx::Vec3 *basePoints, agx::Vec3 *shiftedPoints, agx::Real &vol, agx::Vec3 &pos) |
| agx::Real | calculateTetrahedronVolume (const agx::Vec3 &edge0, const agx::Vec3 &edge1, const agx::Vec3 &edge2) const |
Protected Attributes | |
| agx::Vec3 | m_center |
| bool | m_enabled |
| agx::Real | m_waterVolume |
Definition at line 162 of file WindAndWaterAlgorithms.h.
| agxModel::CenterOfBuoyancyAlgorithm::CenterOfBuoyancyAlgorithm | ( | ) |
|
protectedvirtual |
| void agxModel::CenterOfBuoyancyAlgorithm::calculate | ( | const agxModel::TriangleData & | tData, |
| agxModel::WindAndWaterController::ObjectData & | objectData, | ||
| agx::Vec3 & | force, | ||
| agx::Vec3 & | torque | ||
| ) |
|
protected |
|
protected |
|
protected |
|
overridevirtual |
|
protected |
Definition at line 184 of file WindAndWaterAlgorithms.h.
|
protected |
Definition at line 186 of file WindAndWaterAlgorithms.h.
|
protected |
Definition at line 185 of file WindAndWaterAlgorithms.h.