A terrain model based a 3D grid model with overlapping height field that can be deformed by interacting shovels objects performing digging motions, converting solid mass to dynamic mass which can be moved.
More...
|
| | Terrain (size_t resolutionX, size_t resolutionY, agx::Real elementSize, agx::Real maximumDepth) |
| | Constructor. More...
|
| |
| | Terrain (size_t resolutionX, size_t resolutionY, agx::Real elementSize, const agx::RealVector &heights, bool flipY, agx::Real maximumDepth) |
| | Constructor. More...
|
| |
| bool | add (Shovel *shovel) |
| | Adds a shovel object in the terrain. More...
|
| |
| bool | addNoMergeZoneToGeometry (agxCollide::Geometry *geometry, agx::Real extensionDistance) |
| | Add disable merge and avalanche inside geometry bound with added extension distance. More...
|
| |
| agx::Real | calculateTotalDynamicMass () const |
| |
| agx::Real | calculateTotalFluidMass () const |
| |
| agx::Real | calculateTotalMass () const |
| |
| agx::Real | calculateTotalSolidMass () const |
| |
| agx::Real | calculateVolume () |
| |
| bool | contains (const Shovel *shovel) const |
| | Check is a shovel object is registered in the terrain. More...
|
| |
| void | convertToDynamicMassInShape (agxCollide::ConvexRef shape) |
| | Converts the terrain occupancy that overlaps the specified convex into dynamic mass. More...
|
| |
| agx::StringVector | getAvailableLibraryMaterials () const |
| | Get the available TerrainMaterial presets from the TerrainMaterialLibrary that contains calibrated bulk and contact properties for a predefined material archetype. More...
|
| |
| agx::Vec2i | getClosestGridPoint (const agx::Vec3 &worldPosition, bool clampToBound=false) const |
| | Finds the closes terrain grid point given any point in world. More...
|
| |
| agx::Vec3 | getContactForce (const Shovel *shovel) const |
| | Given geometry contacts exists and the solver has solved them - calculates total shovel contact force between this terrain and the given shovel. More...
|
| |
| agx::ContactMaterial * | getContactMaterial (Terrain::MaterialType type1, Terrain::MaterialType type2) |
| | Returns one of the internal contact materials in agxTerrain. More...
|
| |
| bool | getDeformable () const |
| | Gets whether or not deformations are enabled for this terrain. More...
|
| |
| agx::Vec3 | getDeformationContactForce (const Shovel *shovel) const |
| | Given geometry contacts exists and the solver has solved them - calculates total contact force between the terrain deformation soil aggregate and the given shovel. More...
|
| |
| agx::Real | getDynamicMass (const Shovel *shovel) const |
| |
| agx::Real | getElementSize () const |
| | Returns the element size of a cell in agxTerrain, which is incidentally the distance between the center of each grid point in the surface height field. More...
|
| |
| bool | getEnable () const |
| |
| agx::Vec3 | getExcavationModeContactForce (const Shovel *shovel, Shovel::ExcavationMode excavationMode) const |
| | calculates total contact force between the soil aggregate associated with the specified excavation mode and the given shovel. More...
|
| |
| virtual agxCollide::Geometry * | getGeometry () const override |
| |
| agx::Real | getHeight (const agx::Vec2i &terrainIndex, bool includeSurfaceParticles=false) const |
| | Gets the terrain height at a specific terrain grid node. More...
|
| |
| const agxCollide::HeightField * | getHeightField () const |
| |
| agx::Real | getInnerVolume (const Shovel *shovel) const |
| |
| bool | getIntersectingActiveGridElements (agxCollide::Geometry *geometry, agx::Vec3iVector &gridPoints, MassType massType) const |
| | Get intersecting 3D grid element with specified geometry that is active/occupied with a specified mass type. More...
|
| |
| bool | getIntersectingGridElements (agxCollide::Geometry *geometry, agx::Vec3iVector &gridPoints) const |
| | Get intersecting 3D grid element with specified geometry. More...
|
| |
| agx::AffineMatrix4x4 | getInverseTransform () const |
| |
| agx::Real | getLastDeadLoadFraction (const Shovel *shovel) const |
| | Get the last computed dead load fraction of the shovel, i.e how much of it's inner volume that is filled with dynamic soil. More...
|
| |
| agx::Real | getLastExcavatedVolume () const |
| |
| agx::Material * | getMaterial (Terrain::MaterialType type=Terrain::MaterialType::TERRAIN) const |
| | Returns one of the internal materials in agxTerrain. More...
|
| |
| size_t | getMemoryUsage () |
| | Returns the memory usage in bytes in agxTerrain. More...
|
| |
| agx::Real | getMinimumAllowedHeight () const |
| |
| const ModifiedVerticesVector & | getModifiedParticleVertices () const |
| | Returns the modified terrain height field (including particles) vertices during the last time step. More...
|
| |
| const ModifiedVerticesVector & | getModifiedVertices () const |
| | Returns the modified terrain height field vertices during the last time step. More...
|
| |
| const ModifiedVerticesVector & | getModifiedVoxelColumns () const |
| | Returns the terrain vertices which voxel columns has modified compaction during the last time step. More...
|
| |
| bool | getNoMerge () |
| | Return whether this terrain is prevented from merging dynamic mass to it. More...
|
| |
| size_t | getNumCreatedParticles () const |
| | Return the number of soil particles created during excavation this time step. More...
|
| |
| size_t | getNumSoilParticles () const |
| | Return the number of soil particles active in the simulation. More...
|
| |
| float | getParticleNominalRadius () |
| | Get the soil particle nominal radius from the simulation. More...
|
| |
| const ModifiedVerticesVector & | getParticleVertices () const |
| | Returns the terrain vertices that contains soil particles during the last time step. More...
|
| |
| bool | getPenetrationForce (const Shovel *shovel, agx::Vec3 &force, agx::Vec3 &torque) const |
| | The result includes the active force and torque from the penetration resistance from the terrain on the shovel if the shovel is digging in the terrain. More...
|
| |
| agx::Vec3 | getPosition () const |
| |
| TerrainProperties * | getProperties () const |
| |
| agx::RealVector | getResizedHeightField (size_t factorX, size_t factorY) const |
| | Calculate a reduced version of the height field structure. More...
|
| |
| size_t | getResolutionX () const |
| | Returns the element resolution of the terrain in the local X-axis. More...
|
| |
| size_t | getResolutionY () const |
| | Returns the element resolution of the terrain in the local Y-axis. More...
|
| |
| agx::Quat | getRotation () const |
| |
| agx::Vec3 | getSeparationContactForce (const Shovel *shovel) const |
| | Given geometry contacts exists and the solver has solved them - calculates total contact force between the terrain soil particle aggregate and the given shovel. More...
|
| |
| agx::ContactMaterial * | getShovelAggregateContactMaterial (const Shovel *shovel, Shovel::ExcavationMode mode=Shovel::ExcavationMode::PRIMARY) const |
| | Get the explicitly set contact material in a shovel-aggregate contact corresponding to a specified excavation mode for a specific shovel-terrain pair. More...
|
| |
| agxCollide::GeometryContactPtrVector | getShovelAggregateContacts (const Shovel *shovel, Shovel::ExcavationMode excavationMode) const |
| | Get the shovel <-> aggregate contacts with the terrain given an excavation mode and a shovel. More...
|
| |
| ShovelRefVector | getShovels () const |
| | Return the shovels currently added in the terrain. More...
|
| |
| agx::Vec2 | getSize () const |
| | Returns the total surface size of he terrain in X Y coordinate system. More...
|
| |
| agx::Real | getSoilAggregateMass (const Shovel *shovel, Shovel::ExcavationMode excavationMode) const |
| | Returns the total soil aggregate mass in a terrain given a shovel and a specific excavation mode. More...
|
| |
| const agxCollide::HeightField * | getSoilParticleBoundedHeightField () const |
| | Get the soil particle height field consisting of the highest point of either the terrain surface or the highest particle position in each terrain index. More...
|
| |
| SoilParticleStatistics | getSoilParticleStatistics () const |
| | Get basic statistics of the soil particles active in the simulation. More...
|
| |
| SoilSimulationInterface * | getSoilSimulationInterface () const |
| | Get the soil particle system interface used to represent the dynamic mass in the terrain. More...
|
| |
| agx::Vec3 | getSurfacePosition (const agx::Vec2i &terrainIndex, bool includeSurfaceParticles=false) const |
| | Finds the terrain surface position, given in local coordinate frame, for a specified terrain index. More...
|
| |
| agx::Vec3 | getSurfacePositionWorld (const agx::Vec2i &terrainIndex, bool includeSurfaceParticles=false) const |
| | Finds the terrain surface world position for a specified terrain index. More...
|
| |
| const TerrainContactRefVector & | getTerrainContacts () const |
| |
| TerrainGridControl * | getTerrainGridControl () const |
| | Get control interface of the terrain grid data. More...
|
| |
| TerrainMaterial * | getTerrainMaterial () const |
| | Returns the terrain material which is used to derive material and contact material parameters. More...
|
| |
| TerrainToolCollection * | getToolCollection (const Shovel *shovel) const |
| |
| const TerrainToolCollectionRefVector & | getToolCollections () const |
| |
| agx::Real | getTotalSoilParticleMass () const |
| | Get the total mass (kg) of the active soil particles in the simulation. More...
|
| |
| agx::AffineMatrix4x4 | getTransform () const |
| |
| agx::Vec3 | getUpDirection () const |
| | Returns the world up direction of the terrain. More...
|
| |
| agx::Real | getVoxelArea () const |
| |
| agx::Real | getVoxelVolume () const |
| |
| bool | hasOverlap (const agxCollide::Geometry *geometry) const |
| | Return true if the specified geometry bounding volume overlaps the terrain geometry bounding volume. More...
|
| |
| bool | isBorderIndex (const agx::Vec2i &terrainIndex) const |
| | Checks if the specified index is at the border of the terrain. More...
|
| |
| bool | isDigging (const Shovel *shovel) const |
| | Check if the specified shovel is currently in digging mode with the terrain, i.e if the cutting edge is submerged. More...
|
| |
| bool | isGeometryShovel (const agxCollide::Geometry *geometry) const |
| | Checks if the specified geometry's rigid body is contained in any of the terrain object's registered shovels. More...
|
| |
| bool | isIndexWithinBounds (const agx::Vec2i &terrainIndex) const |
| | Checks if the specified index is within bound of the terrain [(0,0) -> (resolutionX, resolutionY)]. More...
|
| |
| bool | isLocalPositionWithinBounds (const agx::Vec3 &position) const |
| | Checks whether the position is within terrain (x,y) position bounds in local space. More...
|
| |
| bool | isRigidBodyShovel (const agx::RigidBody *body) const |
| | Checks if a specified rigid body is contained in any of the terrain object's registered shovels. More...
|
| |
| bool | isWorldPositionWithinBounds (const agx::Vec3 &position) const |
| | Checks whether the position is within terrain (x,y) position bounds in world space. More...
|
| |
| bool | loadLibraryMaterial (const agx::String materialName) |
| | Loads a TerrainMaterial preset in the TerrainMaterialLibrary that contains calibrated bulk and contact properties for a predefined material archetype. More...
|
| |
| bool | loadMaterialFile (const agx::String &filename) |
| | Load a TerrainMaterial from a specification file in JSON data format. More...
|
| |
| agx::Bool | projectPointToSurface (const agx::Vec3 &worldPosition, agx::Vec3 &result) const |
| | Project a world point to the grid surface. More...
|
| |
| bool | remove (Shovel *shovel) |
| | Removes a shovel object in the terrain, if it exists. More...
|
| |
| float | removeFluidMassInGeometry (agxCollide::Geometry *geometry, float fluidMass) |
| | Remove fluid mass (in kg, NOT occupancy) in the intersecting 3D grid element with specified geometry. More...
|
| |
| void | removeModifiedParticleVertice (agx::Vec2i terrainIndex) |
| | Removes a vertex from the vector with vertices that were modified during the last time step. More...
|
| |
| bool | removeNoMergeZoneToGeometry (agxCollide::Geometry *geometry) |
| | remove disable merge and avalanche inside geometry bound with added extension distance More...
|
| |
| void | setCompaction (agx::Real compaction, bool replaceCompactedSoil=true) const |
| | Set a compaction for all current active solid grid elements in the Terrain object. More...
|
| |
| void | setDeformable (bool deformable) |
| | Sets if deformation should be enabled on this terrain. More...
|
| |
| void | setEnable (bool enable) |
| | Set if terrain computations should be enabled. More...
|
| |
| void | setHeight (const agx::Vec2i &terrainIndex, agx::Real height) |
| | Sets Terrain height at a specific terrain grid node. More...
|
| |
| bool | setHeights (const agx::RealVector &heights, bool flipY=false, bool resetCompaction=true) |
| | Set height values of all sampled points. More...
|
| |
| void | setMaterial (agx::Material *material, Terrain::MaterialType type=Terrain::MaterialType::TERRAIN) |
| | Assign new material to this terrain. More...
|
| |
| void | setNoMerge (bool noMerge) |
| | Prevent merge of dynamic mass to this terrain. More...
|
| |
| void | setNoMergeEdgeMargin (size_t noMergeEdgeMargin) |
| | Add disable merge and avalanche a number of indices from the terrain edge. More...
|
| |
| void | setPosition (const agx::Vec3 &position) |
| | Set the position of this terrain. More...
|
| |
| void | setRotation (const agx::Quat &rotation) |
| | Set the rotation of this terrain. More...
|
| |
| bool | setShovelAggregateContactMaterial (const Shovel *shovel, agx::ContactMaterial *contactMaterial, Shovel::ExcavationMode mode=Shovel::ExcavationMode::PRIMARY) |
| | Explicitly set contact material properties in a shovel-aggregate contact for a specific excavation mode for a specific shovel-terrain pair. More...
|
| |
| void | setTerrainMaterial (TerrainMaterial *terrainMaterial) |
| | Set the material for the bulk of the terrain which is used to derive material and contact material parameters. More...
|
| |
| void | setTransform (const agx::AffineMatrix4x4 &transform) |
| | Set the transform of this terrain. More...
|
| |
| agx::Vec3 | transformPointToTerrain (const agx::Vec3 point) const |
| | Transform point given in world coordinate frame to local coordinate frame of this terrain. More...
|
| |
| agx::Vec3 | transformPointToWorld (const agx::Vec3 point) const |
| | Transform point given in local coordinate frame of this terrain, to world coordinate frame. More...
|
| |
| agx::Vec3 | transformVectorToTerrain (const agx::Vec3 vector) const |
| | Transform vector given in world coordinate frame to local coordinate frame of this terrain. More...
|
| |
| agx::Vec3 | transformVectorToWorld (const agx::Vec3 vector) const |
| | Transform vector given in local coordinate frame of this terrain, to world coordinate frame. More...
|
| |
| void | triggerForceAvalancheAll () |
| | Triggers initial avalanching on all indices in the terrain. More...
|
| |
| agxSDK::Simulation * | getSimulation () const |
| |
| | Component (const agx::Name &name=agx::Name(), agx::Model *model=agx::Component::ClassModel(), agx::Device *device=nullptr) |
| |
| virtual void | addObject (agx::Object *object, bool assignContext=true) |
| | Add an object to the component. More...
|
| |
| virtual String | autoComplete (const String &partialName, StringVector &matchingNames) const |
| |
| virtual void | buildNavigationTree (agxJson::Value &eNode) const override |
| |
| void | configure (Model *model) |
| |
| virtual void | configure (TiXmlElement *eComponent) override |
| |
| agx::Device * | getDevice () |
| |
| template<typename T > |
| T * | getDevice () |
| |
| const agx::Device * | getDevice () const |
| |
| template<typename T > |
| const T * | getDevice () const |
| |
| size_t | getNumObjects (const agx::Name &name) const |
| |
| agx::Object * | getObject (const agx::Name &name, agx::Model *model, size_t index=0) |
| |
| const agx::Object * | getObject (const agx::Name &name, agx::Model *model, size_t index=0) const |
| |
| agx::Object * | getObject (const agx::Name &name, size_t index=0) |
| |
| template<typename T > |
| T * | getObject (const agx::Name &name, size_t index=0) |
| |
| const agx::Object * | getObject (const agx::Name &name, size_t index=0) const |
| |
| template<typename T > |
| const T * | getObject (const agx::Name &name, size_t index=0) const |
| |
| const agx::ObjectRefVector & | getObjects () const |
| |
| template<typename T > |
| void | getObjects (agx::ObjectPtrVector &result, bool recursive=false) const |
| |
| void | getObjects (agx::ObjectPtrVector &result, const agx::Model *model, bool recursive=false) const |
| |
| virtual Object * | getResourceImpl (const Path &path, agx::Model *model) override |
| |
| virtual void | printSubtree () const override |
| |
| void | printSubtree (std::ostream &stream, int depth=0) const |
| |
| virtual void | rebind () override |
| |
| void | removeAllObjects () |
| | Remove all components. More...
|
| |
| virtual void | removeObject (agx::Object *object) |
| | Remove an object from the component. More...
|
| |
| void | removeObject (const agx::Name &name, size_t index=0) |
| | Remove an object with a specified name (and optional index) from the component. More...
|
| |
| virtual void | snapshot (TiXmlNode *eParent, const String &directory) const override |
| |
| void | traverse (ComponentVisitor *) |
| |
| void | traverse (const TraverseCallback &callback) |
| |
| | Object (const Name &name=Name(), Model *model=Object::ClassModel()) |
| |
| void | addListener (EventListener *listener) |
| |
| agx::String | fullName () const |
| |
| agx::String | fullPath () const |
| |
| agx::String | fullPath (const agx::Object *root) const |
| |
| template<typename T > |
| T * | getAutoScopedResource (const agx::Path &path) |
| |
| template<typename T > |
| const T * | getAutoScopedResource (const agx::Path &path) const |
| |
| agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) |
| |
| const agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const |
| |
| agx::Object * | getContext () |
| |
| template<typename T > |
| T * | getContext () |
| |
| const agx::Object * | getContext () const |
| |
| template<typename T > |
| const T * | getContext () const |
| |
| agx::UInt32 | getId () const |
| |
| const agx::Name & | getImplementationName () const |
| |
| agx::Model * | getModel () |
| |
| const agx::Model * | getModel () const |
| |
| const agx::Name & | getName () const |
| |
| agx::Object * | getNextSibling () |
| |
| const agx::Object * | getNextSibling () const |
| |
| agx::Path | getPath () const |
| |
| agx::Path | getPath (const agx::Object *root) const |
| |
| template<typename T > |
| T * | getResource (const agx::Path &path) |
| |
| template<typename T > |
| const T * | getResource (const agx::Path &path) const |
| |
| agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) |
| |
| const agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) const |
| |
| agx::Object * | getRootContext () |
| |
| const agx::Object * | getRootContext () const |
| |
| bool | hasListener (EventListener *listener) |
| |
| bool | hasParent (const agx::Object *node) const |
| |
| bool | isUnique () const |
| |
| void | removeListener (EventListener *listener) |
| |
| virtual void | save (TiXmlElement *) const |
| |
| virtual void | setContext (agx::Object *context) |
| |
| void | setId (UInt32 id) |
| |
| void | setModel (agx::Model *model) |
| | Set the object model (handled automatically). More...
|
| |
| void | setName (const agx::Name &name) |
| | Set the name of the object. More...
|
| |
| | Referenced () |
| | Default constructor. More...
|
| |
| | Referenced (const Referenced &) |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting. More...
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match. More...
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| int | getReferenceCount () const |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test. More...
|
| |
| Referenced & | operator= (const Referenced &) |
| | Assignment operator. Will increment the number of references to the referenced object. More...
|
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
|
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
|
| |
| virtual | ~Serializable () |
| | Destructor for normal C++ use but hidden from SWIG bindings. More...
|
| |
| virtual const char * | getClassName () const |
| |
| bool | getEnableSerialization () const |
| |
| bool | getEnableUuidGeneration () |
| |
| agx::UInt32 | getIndex () const |
| | This index is given at creation of this object. More...
|
| |
| virtual StorageAgent * | getStorageAgent () const =0 |
| |
| agx::Uuid | getUuid () const |
| |
| bool | isFinished () const |
| |
| void | setEnableSerialization (bool flag) |
| | Set to false to disable serialization of this object. More...
|
| |
| void | setFinished () |
| | Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More...
|
| |
| void | setUuid (const agx::Uuid &uuid) |
| | Explicitly set a Uuid on a serializable object. More...
|
| |
|
| | Terrain () |
| | Default constructor used in serialization. More...
|
| |
| | Terrain (agxCollide::HeightField *heightField, agx::Real maximumDepth) |
| |
| virtual | ~Terrain () |
| |
| bool | _getIntersectingGridElements (BasicGrid *grid, agxCollide::Geometry *geometry, agx::Vec3iVector &gridPoints, bool isOccupied=true) const |
| |
| const agx::AffineMatrix4x4 & | _getInverseTransform () const |
| |
| const agx::AffineMatrix4x4 & | _getTransform () const |
| |
| void | addDirtyVoxelsToAvalanche () |
| |
| void | addModifiedParticleTerrainIndex (const agx::Vec2i &terrainIndex) |
| |
| void | addNeighbours (agxData::LocalVector< agx::Vec3i > &indexQueue, agx::Vec3i index) |
| |
| virtual void | addNotification () override |
| | Add notification executed when terrain is added to a simulation. More...
|
| |
| void | applyFluidMassChanges (agx::HashTable< agx::Vec3i, float > &fluidMassTable) |
| |
| void | avalanche () |
| |
| void | calculateFluidMassTransport (agx::HashTable< agx::Vec3i, float > &fluidMassTable) |
| |
| SoilParticlePtrVector | calculateParticlesInContactWithSurfaceGraph () |
| |
| void | calculateShovelVoxelIntersection () |
| |
| agx::Real | calculateSurfaceHeightFromVoxelIndex (const agx::Vec3i &voxelIndex) |
| |
| void | computeForbiddenBounds () |
| |
| void | computeParticleGrowthTables (const agx::UInt64Vector &particleIndices, ParticleDeltaVector &particles) |
| |
| agx::Real | convertMassToOccupancy (agx::Real mass) const |
| |
| agx::Real | convertOccupancyToMass (agx::Real occupnacy) const |
| |
| float | convertOccupancyToParticleRadius (float occupancy) const |
| |
| float | convertParticleRadiusToOccupancy (float radius) const |
| |
| float | convertParticlesToSolidMass (agx::Vec3i voxel, ParticleWeightPairVector particles, float massToRemove, agx::Vec3iVector &changedIndices) |
| |
| void | convertRemovedOccupancyToDynamicMass () |
| |
| void | convertVoxelsInActiveZonesToDynamicMass () |
| |
| void | createFluidMassInVoxel (const agx::Vec3i &voxelIndex, agx::Real32 amount) |
| |
| void | createFluidMassOnTerrainSurface (const agx::Vec2i &terrainIndex, int surfaceVoxelOffset, agx::Real32 amount) |
| |
| void | createParticleIslands (ParticleIslandVector &particleIslands) |
| |
| void | createSoilParticles () |
| |
| agx::TaskGroupRef | createTask_preCollide () |
| |
| void | debugRenderForbiddenBounds () |
| |
| void | debugRenderGeometryContactVoxels () const |
| |
| void | debugRenderShovelForbiddenBounds () |
| |
| void | enforceIncompressibilityColumnwise () |
| |
| agx::Real | findNewHeightFromVoxelIndex (const agx::Vec3i &index) |
| |
| bool | findPathToSurfaceVoxel (const agx::Vec3i &startVoxel, std::deque< agx::Vec3i > &result) |
| |
| bool | findSurfaceVoxel (const agx::Vec3i &index, agx::Vec3i &result) const |
| |
| agx::Real | generateRandomNumber () |
| |
| agx::Vec3 | generateRandomSoilParticlePositionPerturbation (agx::Real maxDelta) |
| |
| agx::Quat | generateRandomSoilParticleRotation () |
| |
| AvalancheController * | getAvalancheController () const |
| |
| float | getDynamicMassCompaction () const |
| |
| agx::Real | getMergeSpeedSquared () const |
| |
| agx::HashVector< agx::Vec2i, agx::Int > | getShovelHeightPerColumn () |
| |
| bool | getSurfaceVoxel (const agx::Vec3i &voxelIndex, agx::Vec3i &result) const |
| |
| agx::Vec3 | getValidParticlePosition (const agx::Real radius, const agx::Vec3i &index, const agx::Vec3 &pos) |
| |
| agx::Vec3f | getVoxelVelocity (const agx::Vec3i &voxelIndex, agx::HashTable< agx::Vec3i, size_t > &shovelVoxels) |
| |
| agx::Vec3i | goToBoundaryVoxel (const agx::Vec3i &start) const |
| |
| agx::Vec3i | goToSurfaceVoxel (const agx::Vec3i &start) const |
| |
| agx::Vec3i | goToVoxelKernel (const agx::Vec3i &start, const GoToStopCondition &stopCondition) const |
| |
| void | growLargeParticlesFromParticleMass (ParticleDeltaVector &particles, float particleRadiusUpperLimit) |
| |
| void | growParticlesFromFluidMass (agx::Vec3i binIndex, int binVoxels, float availableFluidMass, ParticleDeltaVector &particles) |
| |
| void | growSmallParticlesFromParticleMass (ParticleDeltaVector &particles, float particleRadiusUpperLimit) |
| |
| bool | hasVoxelCompaction (const agx::Vec3i &index) const |
| |
| void | initBuildIslandTask () |
| |
| void | initializeFromHeightField () |
| |
| void | initializeSurfaceHeightFieldFromVoxelGrid () |
| |
| void | initVoxelStructureFromHeightField (bool adjustForCompaction=false) |
| |
| bool | isActiveSolidVoxel (const agx::Vec3i &index) const |
| |
| bool | isDirty () |
| |
| bool | isFilledSolidVoxel (const agx::Vec3i &index) const |
| |
| agx::Bool | isIndexWithinBoundsIssueWarning (const agx::Vec2i &terrainIndex) const |
| |
| bool | isSolidBoundaryVoxel (const agx::Vec3i &index) const |
| |
| bool | isSolidVoxel (const agx::Vec3i &index) const |
| |
| bool | isSubmergedVoxel (const agx::Vec3i &index) const |
| |
| bool | isSurfaceVoxel (const agx::Vec3i &index) const |
| | Surface voxel functions. More...
|
| |
| bool | isVoxelWithinTerrainIndexBounds (const agx::Vec3i &index) const |
| |
| virtual void | last () override |
| | Callback to be executed at the end of the time step. More...
|
| |
| void | markVoxelToAvalanche (const agx::Vec3i &changedVoxel) |
| |
| agx::Vec3iVector | mergeCuttingEdgeColumn (agx::Vec3i voxel, size_t numVoxelsToSurfaceThreshold, agx::Plane cuttingPlane) |
| |
| bool | mergeFluidMass () |
| |
| void | mergeParticleIslands (const ParticleIslandVector &particleIslands, agxData::LocalVector< agx::Vec3i > &mergedParticleIndices) |
| |
| void | mergeSoilParticlesAndFluidMass () |
| |
| void | mergeSoilToCuttingEdge () |
| |
| void | moveEntityDataToCurrentThread () |
| |
| void | moveParticlesToSurface (agx::Vec3iVector changedVoxelIndices) |
| |
| bool | particleIslandShouldMerge (const agx::Vector< std::pair< agx::Vec3i, offsetIndexInfo >> &island) |
| |
| virtual void | post () override |
| | Executes post-step events for agxTerrain in the simulation. More...
|
| |
| void | postSolveShovels () |
| |
| void | postSortSynchronizeParticleHeightField () |
| |
| void | postUpdateCompaction () |
| |
| virtual void | pre () override |
| | Executes pre-step events for agxTerrain in the simulation. More...
|
| |
| virtual void | preCollide () override |
| | Executes pre-collide events for agxTerrain in the simulation. More...
|
| |
| void | preSortSynchronizeParticleHeightField () |
| |
| void | preUpdateTerrainContacts () |
| |
| virtual void | removeNotification () override |
| | Remove notification executed when terrain is removed to a simulation. More...
|
| |
| void | removeSoilParticlesOutsideTerrainBounds () |
| |
| void | renderVoxelAABB (agx::Vec3i index, agx::Vec4f color) |
| |
| void | resizeOrRemoveParticles (const agx::HashTable< SoilParticlePtr, std::array< agx::Real, 2 >> &particlesToUpdate) |
| |
| void | resizeSoilParticles () |
| |
| void | sampleParticleMassVelocity () |
| |
| void | sanitizeMaxDepthData (agx::Real maximumDepth) |
| |
| void | sanityCheckHeightFieldAgainstMaxDepth () |
| |
| bool | shouldDeformerActiveZoneRemoveMass (TerrainToolCollection *toolCollection, DeformerCollection *deformerCollection) |
| |
| bool | shouldPrimaryActiveZoneRemoveMass (TerrainToolCollection *toolCollection) |
| |
| bool | soilParticleShouldMerge (SoilParticlePtr &ptr) const |
| |
| agx::HashTable< agx::Vec3i, agx::UInt64Vector > | sortParticlesIntoBins (int binVoxels) |
| |
| void | sortParticlesIntoColumns () |
| |
| void | sortParticlesIntoVoxels () |
| |
| void | stepFluidMass () |
| |
| void | storeModifiedTerrainIndex (const agx::Vec2i &terrainVertex) |
| |
| void | storeParticleGeometryContact (agx::Physics::ParticleGeometryContactPtr contact) |
| |
| void | storeVoxelContactHeight (const agx::Vec2i &voxelXY, agx::Real currentHeight) |
| |
| void | toolCollectionsPreCollide () |
| |
| agx::Real | traceGridSurfaceHeightFromVoxelIndex (const agx::Vec3i &index) |
| |
| void | traceGridSurfaceVoxel (const agx::Vec2i &voxelIndexXY, agx::Vec3i &surfaceVoxel) const |
| |
| void | updateIndicesForAvalanche (TerrainIndexSet &forbiddenVertices) |
| |
| void | updateOccupancyFromHeightChange (const agx::Vec2i &heightFieldIndex) |
| |
| void | updateSurfaceHeightFieldFromDirtyVoxels () |
| |
| void | updateSurfaceHeightFieldFromHeightsTable (agx::HashTable< agx::Vec2i, std::pair< agx::Vec3i, agx::Real > > &table) |
| |
| void | updateSurfaceHeightFieldFromVoxelIndex (const agx::Vec3i &voxelIndex) |
| |
| void | updateSurfaceHeightFieldFromVoxelIndices (const agx::Vec3iVector &updateIndices) |
| |
| void | updateSurfaceHeightFieldFromVoxelIndices (const agxData::LocalVector< agx::Vec3i > &updateIndices) |
| |
| void | updateTransformationFromParentBody () |
| |
| bool | voxelColumnHasParticles (const agx::Vec2i &vertex) const |
| |
| | TerrainInstance () |
| | Default constructor. More...
|
| |
| virtual | ~TerrainInstance () |
| | Reference counted object - protected destructor. More...
|
| |
| virtual void | runBuildIslandsTask () |
| |
| virtual | ~Component () |
| |
| String | expandAutoCompletionMatch (const String &query, const StringVector &matchingNames) const |
| |
| void | setDevice (Device *device) |
| |
| virtual | ~Object () |
| |
| virtual | ~Referenced () |
| | Destructor. More...
|
| |
| void | allocateObserverVector () const |
| |
| void | deleteUsingDeleteHandler () const |
| |
| | Serializable () |
| | Default constructor. More...
|
| |
| | Serializable (const Serializable &other) |
| | Copy constructor. More...
|
| |
| void | generateUuid () |
| |
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacting shovels objects performing digging motions, converting solid mass to dynamic mass which can be moved.
The underlying terrain data model consists of a hierarchical sparse 3D grid of cells, containing terrain data such as mass. The terrain surface is represented as a 2D height field that is updated when the underlying grid structure is changed. Mass is moved in the terrain via interacting shovels that converts solid cells to dynamic mass. Each shovel has an "Active Zone" which is defined by specifying two edges on the shovel's constructor, a top edge and a cutting edge. These edges should be perpendicular to the shovel's digging direction and parallel to the shovel's cross section. When the active zone intersects the terrain, dynamics mass is created in the overlapping area.
/
openvdb, which is a library for representing large sparse 3D hierarchal voxel structures, is used for cell storage and representation.
Definition at line 85 of file agxTerrain/Terrain.h.