 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
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,
214 std::function<
float(
const agx::Vec3i&)> getCompression,
215 std::function<
bool(
const agx::Vec2i&)> canRemoveIndex,
219 bool useParticleFreeDeformers) = 0;
225 std::function<
float(
const agx::Vec3i& )> getCompression,
226 std::function<
bool(
const agx::Vec2i& )> canRemoveIndex,
agx::Vector< MeshIntersectionTestData > ActiveZoneShapes
Mesh is a common base class for triangle meshes, such as Mesh or HeightField.
agx::Vector< std::array< agx::Vec3, 3 > > TriangleVector
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.
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Extended pure virtual interface for Grid storage classes.
virtual void sizeHint(size_t)
Provide the implementation with a hint about the estimated number of voxels that are needed.
A HeightField is a collision shape that can be created from a grid structure, like an image.
agx::Bound3i indicesInActiveZone
#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.
Vector containing 'raw' data.
A BoundT represents a range defined by a minimum and a maximum value.
virtual bool hasIterateSupport() const
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...
Class representing the mathematical concept of a plane, also called a half- space.
agx::Real32Vector removedOccupancy
virtual void iterateVoxels(GridFunction) const
The geometry representation used by the collision detection engine.
Pure virtual interface class for the data storage grid classes we have.
Class for writing serialized data in binary format to a stream.
agx::Vec3iVector removedIndices
std::tuple< const agxCollide::Mesh *, agx::AffineMatrix4x4, agxCollide::BoundingAABB > MeshIntersectionTestData
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXTERRAIN_EXPORT
A convex class for geometric intersection tests.
std::tuple< const agxCollide::Shape *, agx::AffineMatrix4x4, agxCollide::BoundingAABB > ShapeIntersectionTestData
std::function< void(GridCoord, float)> GridFunction