67 float getOccupancy(
const agx::Vec2i& terrainIndex,
int z)
const;
74 float getOccupancy(
const agx::Vec3i& voxelIndex)
const;
82 float getMass(
const agx::Vec2i& terrainIndex,
int z)
const;
89 float getMass(
const agx::Vec3i& voxelIndex)
const;
98 float getCompaction(
const agx::Vec2i& terrainIndex,
int z)
const;
105 float getCompaction(
const agx::Vec3i& terrainIndex)
const;
112 float getSurfaceOccupancy(
const agx::Vec2i& terrainIndex)
const;
119 float getSurfaceCompaction(
const agx::Vec2i& terrainIndex)
const;
135 void setSurfaceCompaction(
136 const agx::Vec2i& terrainIndex,
float compaction,
bool compressOccupancy =
false,
bool compressToBottom =
false);
149 void setSurfaceCompactionToDepth(
const agx::Vec2i& terrainIndex,
float compaction,
float depth);
165 void setCompaction(
const agx::Vec2i& terrainIndex,
int z,
float compaction,
bool compressOccupancy =
false);
178 void setCompaction(
const agx::Vec3i& terrainIndex,
float compaction,
bool compressOccupancy =
false);
203 float addSolidOccupancyInColumn(
204 const agx::Vec2i& terrainIndex,
float mass,
float compaction,
bool shouldAvalanche =
true);
214 void addSolidOccupancyInColumns(
agx::HashTable<
agx::Vec2i, std::pair<float, float>> table,
bool shouldAvalanche =
true);
224 float removeSolidOccupancyInColumn(
const agx::Vec2i& terrainIndex,
float occupancy,
bool shouldAvalanche =
true);
239 float addSolidOccupancyLayerInColum(
const agx::Vec2i& terrainIndex,
agx::Real layerHeight,
float compaction,
bool shouldAvalanche =
true);
254 float addSolidOccupancyInColumnToHeight(
const agx::Vec2i& terrainIndex,
agx::Real height,
float compaction,
bool shouldAvalanche =
true);
262 float removeFluidOccupancy(
const agx::Vec3i& terrainIndex,
float fluidOccupancy);
317 bool isIndexValid(
const agx::Vec3i& terrainIndex)
const;
378 int findSurfaceIndex(
const agx::Vec2i& terrainIndex)
const;
391 int getLowestAllowableDepthIndex()
const;
396 agx::Real convertOccupancyToMassKg(
float occupancy)
const;
401 agx::Real convertFluidMassKgToOccupancy(
float mass)
const;
#define AGXTERRAIN_STORE_RESTORE_INTERFACE
Interface class for accessing and manipulating the underlying 3D grid data in the terrain using terra...
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes...
#define AGX_DECLARE_POINTER_TYPES(type)
This class is used to describe the general material properties of the Terrain.
Base class providing referencing counted objects.
#define AGXTERRAIN_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
Inheritance with partial specialization due to bug with ref_ptr containers.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()