19 #include <agx/config/AGX_USE_AGXTERRAIN.h> 55 void setFluidOccupancy(
const agx::Vec3i& voxelIndex,
float fluidMass);
63 float addFluidOccupancy(
const agx::Vec3i& voxelIndex,
float fluidMass);
71 float removeFluidOccupancy(
const agx::Vec3i& voxelIndex,
float fluidMass);
78 float getFluidOccupancy(
const agx::Vec3i& voxelIndex)
const;
90 float addSolidOccupancy(
const agx::Vec3i& voxelIndex,
float solidOccupancy,
float compaction,
float occupancyLimit = 1.0);
99 float removeSolidOccupancy(
const agx::Vec3i& voxelIndex,
float solidMass);
106 float getSolidOccupancy(
const agx::Vec3i& voxelIndex)
const;
116 void setCompaction(
const agx::Vec3i& voxelIndex,
float compaction,
bool scaleMass=
false);
123 float getCompaction(
const agx::Vec3i& voxelIndex)
const;
125 float getOccupancyModifier(
agx::Vec3i voxelIndex)
const;
132 float getParticleOccupancy(
const agx::Vec3i& voxelIndex)
const;
139 void setParticleOccupancy(
const agx::Vec3i& voxelIndex,
float particleMass);
147 float getCompactedSolidOccupancy(
const agx::Vec3i& voxelIndex)
const;
155 float addFluidOccupancyToColumn(
const agx::Vec2i& terrainIndex,
float mass);
163 float removeFluidOccupancyFromColumn(
const agx::Vec2i& terrainIndex,
float mass);
173 float addSolidOccupancyToColumn(
const agx::Vec2i& terrainIndex,
float occupancy,
float compaction);
184 float addSolidOccupancyToColumn(
const agx::Vec3i& surfaceVoxelIndex,
float occupancy,
float compaction);
193 float removeSolidOccupancyFromColumn(
const agx::Vec2i& terrainIndex,
float mass);
203 float removeSolidOccupancyFromColumn(
const agx::Vec3i& surfaceVoxelIndex,
float mass);
220 float convertCompactedSolidOccupancyToNominal(
const agx::Vec3i& voxelIndex,
float compactedOccupancy)
const;
227 bool isTotalOccupancyOverNominalThreshold(
const agx::Vec3i& voxelIndex)
const;
236 bool verifyOccupancyColumnIntegrity(
const agx::Vec2i& terrainIndex )
const;
244 void setGridColumnOccupancy(
const agx::Vec2i terrainIndex,
int voxelZ,
float occupancy);
251 void setOccupancyInSurfaceVoxel(
const agx::Vec2i terrainIndex,
float occupancy);
258 int getSurfaceHeightIndex(
const agx::Vec2i terrainIndex)
const;
265 agx::Real getOccupancyInTerrain( TerrainDataAtlas::MassType massType )
const;
268 std::pair<int, float> getVoxelZAndOccupancyFromLocalHeight(
agx::Real height,
agx::Real voxelSize);
279 TerrainDataAtlas* getData()
const;
#define AGXTERRAIN_STORE_RESTORE_INTERFACE
Class that handles and sanity checks the mass logic in the terrain.
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)
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()