86 virtual agx::Vec3 getElementSize()
const = 0;
91 virtual size_t getMemoryUsage()
const = 0;
96 virtual bool empty() = 0;
101 virtual void clearGrid() = 0;
106 virtual void setFloatValue(
const GridCoord& ijk,
float value) = 0;
111 virtual float getFloatValue(
const GridCoord& ijk)
const = 0;
116 virtual bool isActiveVoxel(
const GridCoord& )
const = 0;
121 virtual size_t getNumActiveVoxels()
const = 0;
128 virtual std::tuple<float, float> getTotalAndLargest()
const = 0;
157 bool onlyOccupiedVoxels =
true )
const = 0;
182 virtual void setValuesBelowHeightField(
185 int lowestAllowedVoxelIndex,
202 const TriangleVector& triangles,
209 const ActiveZoneShapes& activeZoneShapes,
210 const MeshIntersectionTestData& innerShape,
214 std::function<
float(
const agx::Vec3i&)> getCompression,
215 std::function<
bool(
const agx::Vec2i&)> canRemoveIndex,
219 bool useParticleFreeDeformers) = 0;
224 const ShapeIntersectionTestData& shape,
225 std::function<
float(
const agx::Vec3i& )> getCompression,
226 std::function<
bool(
const agx::Vec2i& )> canRemoveIndex,
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
A BoundT represents a range defined by a minimum and a maximum value.
Mesh is a common base class for triangle meshes, such as Mesh or HeightField.
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive...
std::tuple< const agxCollide::Mesh *, agx::AffineMatrix4x4, agxCollide::BoundingAABB > MeshIntersectionTestData
Pure virtual interface class for the data storage grid classes we have.
agx::Bound3i indicesInActiveZone
virtual void sizeHint(size_t)
Provide the implementation with a hint about the estimated number of voxels that are needed...
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes...
agx::Real32Vector removedOccupancy
A convex class for geometric intersection tests.
#define AGX_DECLARE_POINTER_TYPES(type)
virtual bool hasIterateSupport() const
Class representing the mathematical concept of a plane, also called a half- space.
Extended pure virtual interface for Grid storage classes.
virtual void iterateVoxels(GridFunction) const
agx::Vec3iVector removedIndices
Base class providing referencing counted objects.
The geometry representation used by the collision detection engine.
Vector containing 'raw' data.
std::tuple< const agxCollide::Shape *, agx::AffineMatrix4x4, agxCollide::BoundingAABB > ShapeIntersectionTestData
agx::Vector< MeshIntersectionTestData > ActiveZoneShapes
#define AGXTERRAIN_EXPORT
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Class for writing serialized data in binary format to a stream.
std::function< void(GridCoord, float)> GridFunction
agx::Vector< std::array< agx::Vec3, 3 > > TriangleVector
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Axis aligned bounding box implementation.
A HeightField is a collision shape that can be created from a grid structure, like an image...