 |
AGXDynamics
2.35.0.2
|
Go to the documentation of this file.
17 #ifndef AGXMODEL_WINDANDWATERALGORITHMS_H
18 #define AGXMODEL_WINDANDWATERALGORITHMS_H
23 template<
typename T >
33 for(
size_t k = job.range().begin(); k < job.range().end(); ++k ) {
38 obj->calculate( tData.
clipped[ j ], objectData, force, torque );
40 obj->calculate( tData, objectData, force, torque );
43 objectData.
force() += force;
44 objectData.
torque() += torque;
48 auto sizeCallback = [ & ] ()
59 triangleUpdate( range );
80 class VolumeScalingDataContainer {
85 void garbageCollect();
92 : volumeScaling( volumeScaling ), modifiedCount( modifiedCount ), tessellation( tessellation ), shape( shape )
109 mutable VolumeScalingDataContainer m_volumeScaling;
163 #endif // AGXMODEL_WINDANDWATERALGORITHMS_H
virtual void updateInteraction(agxModel::WindAndWaterController::ObjectData &objectData, const GlobalTriangleData::Container &container) override
agx::UInt getStartIndexT() const
void execute()
Execute the task.
const agx::RigidBody * getRigidBody() const
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
#define DOXYGEN_END_INTERNAL_BLOCK()
virtual void updateInteraction(agxModel::WindAndWaterController::ObjectData &objectData, const GlobalTriangleData::Container &container) override
#define DOXYGEN_START_INTERNAL_BLOCK()
Global triangle data (mapped with agxCollide::Mesh object) holding vertex indices.
void unLock() const
Perform a mutex unlock for this ObjectData.
Controller that collects relevant data and executes algorithms (probably mostly aero- and hydrodynami...
void init(const RangeCallback &callback, const IndexRange &range, agx::UInt32 costPerElement=1)
agx::Vec3 & force()
Access force vector (in world coordinate system).
A range job executes a kernel implementation on a subset of the data.
agx::UInt getNumTriangles() const
ShapeTessellation
Tessellation levels of native, non-mesh shapes, e.g, sphere, capsule and cylinder.
agx::Bool isClipped() const
void triangleIterator(const T *obj, WindAndWaterController::ObjectData &objectData, const GlobalTriangleData::Container &trianglePool)
void lock() const
Perform a mutex lock for this ObjectData.
virtual void updateInteraction(agxModel::WindAndWaterController::ObjectData &objectData, const GlobalTriangleData::Container &container) override
Triangle data for a normal or a clipped triangle.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
agxModel::TriangleData::Container clipped
Container with clipped triangles if this global triangle has been clipped.
virtual void updateInteraction(agxModel::WindAndWaterController::ObjectData &objectData, const GlobalTriangleData::Container &container) override
agx::Vec3 & torque()
Access torque vector (in world coordinate system).