19 #include <agx/config/AGX_USE_AGXTERRAIN.h> 27 class TerrainDataAtlas;
55 void setFluidMass(
const agx::Vec3i& voxelIndex,
float fluidMass);
63 float addFluidMass(
const agx::Vec3i& voxelIndex,
float fluidMass);
71 float removeFluidMass(
const agx::Vec3i& voxelIndex,
float fluidMass);
78 float getFluidMass(
const agx::Vec3i& voxelIndex)
const;
90 float addSolidMass(
const agx::Vec3i& voxelIndex,
float solidMass,
float compaction,
float occupancyLimit = 1.0);
99 float removeSolidMass(
const agx::Vec3i& voxelIndex,
float solidMass);
107 void setSolidMass(
const agx::Vec3i& voxelIndex,
float solidMass,
float compaction);
114 float getSolidMass(
const agx::Vec3i& voxelIndex)
const;
124 void setCompaction(
const agx::Vec3i& voxelIndex,
float compaction,
bool scaleMass=
false);
131 float getCompaction(
const agx::Vec3i& voxelIndex)
const;
138 float getParticleMass(
const agx::Vec3i& voxelIndex)
const;
145 void setParticleMass(
const agx::Vec3i& voxelIndex,
float particleMass);
153 float getCompactedSolidMass(
const agx::Vec3i& voxelIndex)
const;
161 float addFluidMassToColumn(
const agx::Vec2i& voxelIndexXY,
float mass);
169 float removeFluidMassFromColumn(
const agx::Vec2i& voxelIndexXY,
float mass);
180 float addSolidMassToColumn(
const agx::Vec2i& voxelIndexXY,
float mass,
float compaction,
agx::Vec3i& newSurfaceVoxel);
192 float addSolidMassToColumn(
const agx::Vec3i& surfaceVoxelIndex,
float mass,
float compaction,
agx::Vec3i& newSurfaceVoxel);
202 float removeSolidMassFromColumn(
const agx::Vec2i& voxelIndexXY,
float mass,
agx::Vec3i& newSurfaceVoxel);
213 float removeSolidMassFromColumn(
const agx::Vec3i& surfaceVoxelIndex,
float mass,
agx::Vec3i& newSurfaceVoxel);
230 float convertCompactedSolidMassToNominal(
const agx::Vec3i& voxelIndex,
float compactedOccupancy)
const;
237 bool isTotalMassOverNominalThreshold(
const agx::Vec3i& voxelIndex);
246 bool verifyMassColumnIntegrity(
const agx::Vec2i& voxelIndexXY);
#define AGXTERRAIN_STORE_RESTORE_INTERFACE
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
#define AGX_DECLARE_POINTER_TYPES(type)
Base class providing referencing counted objects.
Class that handles and sanity checks the mass logic in the terrain.
#define AGXTERRAIN_EXPORT
AGX_DECLARE_VECTOR_TYPES(ActiveZone)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()