44 AvalancheController(Terrain* terrain);
51 AvalancheController();
63 void setAvalancheDecayFraction(
agx::Real avalancheDecayFraction);
65 agx::Real getAvalancheDecayFraction()
const;
67 void setAvalancheMaxHeightGrowth(
agx::Real maxHeightGrowth);
69 agx::Real getAvalancheMaxHeightGrowth()
const;
83 virtual ~AvalancheController();
89 SurfaceHeightTable m_surfaceHeights;
91 void applyGrowthMap();
102 class AvalancheIterationMap
119 return m_avalancheIterationVector[toIndex(k)];
125 size_t vectorIndex = toIndex(k);
126 if (!m_avalancheIterationVector[vectorIndex].contains(index))
128 m_avalancheIterationVector[vectorIndex].push_back(index,index);
134 size_t vectorIndex = toIndex(k);
135 if (vectorIndex > m_avalancheIterationVector.size() - 1)
138 return m_avalancheIterationVector[vectorIndex].contains(index);
153 size_t vectorIndex = toIndex(k);
154 if (vectorIndex > m_avalancheIterationVector.size() - 1)
156 m_avalancheIterationVector.resize(vectorIndex + 1);
173 m_avalancheIterationVector.clear();
178 return m_avalancheIterationVector.size();
201 AGX_FORCE_INLINE const AvalancheController::TerrainIndexSet& AvalancheController::getModifiedVertices()
const
203 return m_modifiedTerrainVertices;
206 AGX_FORCE_INLINE const AvalancheController::TerrainIndexSet& AvalancheController::getAvalanchedVertices()
const
208 return m_avalanchedTerrainVertices;
213 return m_touchedTerrainIndices;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXTERRAIN_STORE_RESTORE_INTERFACE
#define AGXTERRAIN_EXPORT
Inheritance with partial specialization due to bug with ref_ptr containers.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Inheritance with partial specialization due to bug with ref_ptr containers.
Templated stack array class.
Vector containing 'raw' data.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXTERRAIN_EXPORT void clear()
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
agx::HashSet< agx::Vec2i > TerrainIndexSet
The agx namespace contains the dynamics/math part of the AGX Dynamics API.