35 static constexpr
float MAX_MASS = 1.0;
165 void fillGridVector();
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXTERRAIN_STORE_RESTORE_INTERFACE
#define AGXTERRAIN_EXPORT
Pure virtual interface class for the data storage grid classes we have.
Extended pure virtual interface for Grid storage classes.
TerrainDataAtlas(agx::Real voxelSize, size_t resolutionX, size_t resolutionY, agx::Int depth)
Basic Constructor.
void setVelocity(const Grid::GridCoord &coord, const agx::Vec3f &value)
BasicGrid * getCompactionGridData() const
bool isActiveVoxel(const Grid::GridCoord &coord, MassType massType) const
Checks if a voxel is active in data grid of a specific mass type.
VoxelToVelocityTable & getVelocityTable()
float addMass(const Grid::GridCoord &coord, MassType massType, float value)
Adds occupancy mass of specific mass type in a voxel with specified 3D-coordinate in voxel index spac...
float getCompaction(const Grid::GridCoord &coord) const
Gets the compression data from a voxel in the grid.
size_t getTotalActiveVoxels() const
Grid * getSolidGridMassData() const
void setMass(const Grid::GridCoord &coord, MassType massType, float value)
Sets the occupancy mass of specific mass type in a voxel with specified 3D-coordinate in voxel index ...
agx::Vec3f getVelocity(const Grid::GridCoord &coord) const
float getCompactedSolidMass(const Grid::GridCoord &coord) const
Get the occupancy mass in a voxel modified by the compaction grid with specified 3D-coordinate in vox...
size_t getTotalGridMemoryUsage() const
float getTotalMassInVoxel(const Grid::GridCoord &coord) const
void setCompaction(const Grid::GridCoord &coord, float value)
Sets compression data in a voxel in the grid.
float getMass(const Grid::GridCoord &coord, MassType massType) const
Get the occupancy mass of specific mass type in a voxel with specified 3D-coordinate in voxel index s...
agx::Vec3iVector getIndicesWithMass(MassType massType) const
Returns the active indices in voxel index space which contains occupancy mass of a specific mass type...
float getMaximumAllowedSolidMassInVoxel(const Grid::GridCoord &coord) const
Returns the maximum allowed solid mass in the voxel.
agx::Real getMassInTerrain(MassType massType) const
BasicGrid * getGridMassData(MassType massType) const
void clearMassGrid(MassType massType)
Inheritance with partial specialization due to bug with ref_ptr containers.
Base class providing referencing counted objects.
Vector containing 'raw' data.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
agx::HashTable< agx::Vec3i, agx::Vec3f > VoxelToVelocityTable
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT UInt32 hash(const T &key)
agx::UInt32 operator()(TerrainDataAtlas::MassType key) const