17 #ifndef AGXMODEL_DEFORMABLE_MINE_FACE_H 18 #define AGXMODEL_DEFORMABLE_MINE_FACE_H 59 void resetDeformedVolume();
65 void resetDeepestDepthReached();
68 void setMinDeformableIndices(
size_t x,
size_t y);
71 void setMaxDeformableIndices(
size_t x,
size_t y);
87 void deformHeightFieldFromGeometry(
agxCollide::Geometry* geometry,
bool recordDeformStats=
true );
101 bool getConvexHullFromRemovedVolume(
agx::Vec3Vector& convexHull )
const;
119 void addForbiddenIndex(
size_t x,
size_t y );
129 void clearForbiddenIndices();
138 bool recordDeformStats );
140 bool isAllowedIndex(
size_t x,
size_t y )
const;
163 return m_deformedVolume;
169 m_deformedVolume = 0;
175 return m_deepestDepthReached;
181 m_deepestDepthReachedOffset += m_deepestDepthReached;
182 m_deepestDepthReached = 0;
200 return m_minDeformableIndices;
206 return m_maxDeformableIndices;
211 return m_volumeDifferences;
242 agx::Real getSummedUpDeformedVolume()
const;
249 void setSwellFactor(
agx::Real swellFactor);
agx::Physics::GranularBodySystemRef m_system
Derive from this class to implement a listener for simulation step events.
friend class DistributionTable
#define AGX_DECLARE_POINTER_TYPES(type)
agx::Real m_summedUpDeformedVolume
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
The geometry representation used by the collision detection engine.
agxModel::DeformableMineFaceRef m_deformableMineFace
agx::ref_ptr< DistributionTable > DistributionTableRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::Real m_totalCreatedVolume
agx::ref_ptr< DeformableMineFace > DeformableMineFaceRef
agx::UInt m_numberOfBodiesCreated
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
agx::ParticleEmitter::DistributionTableRef m_table
#define AGX_DECLARE_VECTOR_TYPES(type)
DeformableParticleCreator is a class used to generate granular material given the deformed volume in ...
A HeightField is a collision shape that can be created from a grid structure, like an image...