|
AGXDynamics
2.31.1.0
|
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...
#include <Terrain.h>
Inheritance diagram for agxTerrain::Terrain:Classes | |
| struct | offsetIndexInfo |
Public Types | |
| typedef agx::observer_ptr< const Event > | EventConstObserver |
| typedef agx::ref_ptr< const Event > | EventConstRef |
| typedef agx::observer_ptr< Event > | EventObserver |
| typedef agx::ref_ptr< Event > | EventRef |
| enum | MassType { MassType::SOLID, MassType::PARTICLE, MassType::FLUID } |
| enum | MaterialType { MaterialType::TERRAIN, MaterialType::PARTICLE, MaterialType::AGGREGATE } |
| typedef Event2< Component *, Object * > | ObjectEvent |
| Event when adding removing child objects. More... | |
| typedef Callback1< Object * > | TraverseCallback |
Public Member Functions | |
| 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... | |
| void | addListener (EventListener *listener) |
| bool | addNoMergeZoneToGeometry (agxCollide::Geometry *geometry, agx::Real extensionDistance) |
| Add disable merge and avalanche inside geometry bound with added extension distance. More... | |
| virtual void | addObject (agx::Object *object, bool assignContext=true) |
| Add an object to the component. More... | |
| AGX_DECLARE_VECTOR_TYPES (Event) | |
| 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 |
| virtual String | autoComplete (const String &partialName, StringVector &matchingNames) const |
| virtual void | buildNavigationTree (agxJson::Value &eNode) const override |
| agx::Real | calculateTotalDynamicMass () const |
| agx::Real | calculateTotalFluidMass () const |
| agx::Real | calculateTotalMass () const |
| agx::Real | calculateTotalSolidMass () const |
| agx::Real | calculateVolume () |
| virtual void | configure (TiXmlElement *eComponent) override |
| void | configure (Model *model) |
| bool | contains (const Shovel *shovel) const |
| Check is a shovel object is registered in the terrain. More... | |
| agx::String | fullName () const |
| agx::String | fullPath () const |
| agx::String | fullPath (const agx::Object *root) 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 |
| template<typename T > | |
| T * | getAutoScopedResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getAutoScopedResource (const agx::Path &path) const |
| 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... | |
| virtual const char * | getClassName () const |
| 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... | |
| agx::Object * | getContext () |
| const agx::Object * | getContext () const |
| template<typename T > | |
| T * | getContext () |
| template<typename T > | |
| const T * | getContext () const |
| 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::Device * | getDevice () |
| const agx::Device * | getDevice () const |
| template<typename T > | |
| T * | getDevice () |
| template<typename T > | |
| const T * | getDevice () const |
| 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 |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| 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::UInt32 | getId () const |
| const agx::Name & | getImplementationName () const |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| 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 |
| agx::Model * | getModel () |
| const agx::Model * | getModel () 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... | |
| const agx::Name & | getName () const |
| agx::Object * | getNextSibling () |
| const agx::Object * | getNextSibling () const |
| 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 | getNumObjects (const agx::Name &name) const |
| size_t | getNumSoilParticles () const |
| Return the number of soil particles active in the simulation. More... | |
| agx::Object * | getObject (const agx::Name &name, size_t index=0) |
| const agx::Object * | getObject (const agx::Name &name, 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, agx::Model *model, size_t index=0) const |
| template<typename T > | |
| T * | getObject (const agx::Name &name, size_t index=0) |
| 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 |
| template<typename T > | |
| void | getObjects (ObjectPtrVector &result, bool recursive) const |
| 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... | |
| agx::Path | getPath () const |
| agx::Path | getPath (const agx::Object *root) const |
| 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 |
| int | getReferenceCount () 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::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getResource (const agx::Path &path) const |
| virtual Object * | getResourceImpl (const Path &path, agx::Model *model) override |
| agx::Object * | getRootContext () |
| const agx::Object * | getRootContext () const |
| 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... | |
| agxSDK::Simulation * | getSimulation () const |
| 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... | |
| virtual StorageAgent * | getStorageAgent () const =0 |
| 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::Uuid | getUuid () const |
| agx::Real | getVoxelArea () const |
| agx::Real | getVoxelVolume () const |
| bool | hasListener (EventListener *listener) |
| bool | hasOverlap (const agxCollide::Geometry *geometry) const |
| Return true if the specified geometry bounding volume overlaps the terrain geometry bounding volume. More... | |
| bool | hasParent (const agx::Object *node) const |
| template<typename T > | |
| bool | is () const |
| Subclass test. 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 | isFinished () const |
| 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 | isUnique () const |
| 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... | |
| virtual void | printSubtree () const override |
| void | printSubtree (std::ostream &stream, int depth=0) const |
| agx::Bool | projectPointToSurface (const agx::Vec3 &worldPosition, agx::Vec3 &result) const |
| Project a world point to the grid surface. More... | |
| virtual void | rebind () override |
| 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... | |
| bool | remove (Shovel *shovel) |
| Removes a shovel object in the terrain, if it exists. More... | |
| void | removeAllObjects () |
| Remove all components. 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 | removeListener (EventListener *listener) |
| 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... | |
| 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 | save (TiXmlElement *) const |
| void | setCompaction (agx::Real compaction, bool replaceCompactedSoil=true) const |
| Set a compaction for all current active solid grid elements in the Terrain object. More... | |
| virtual void | setContext (agx::Object *context) |
| void | setEnable (bool enable) |
| Set if terrain computations should be enabled. More... | |
| 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 | 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 | setId (UInt32 id) |
| void | setMaterial (agx::Material *material) |
| Assign new material to this terrain. More... | |
| 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... | |
| 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... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| virtual void | snapshot (TiXmlNode *eParent, const String &directory) const override |
| 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 | traverse (const TraverseCallback &callback) |
| void | traverse (ComponentVisitor *) |
| void | triggerForceAvalancheAll () |
| Triggers initial avalanching on all indices in the terrain. 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... | |
Static Public Member Functions | |
| static Component * | _load (TiXmlElement *eComponent, Device *device) |
| static agx::Model * | ClassModel () |
| static Terrain * | createFromHeightField (const agxCollide::HeightField *heightField, agx::Real maximumDepth) |
| Creates a terrain object by using an existing height field as a basis. More... | |
| static Terrain * | find (const agxSDK::Simulation *simulation, const agx::Name &name) |
| Find first terrain with given name. More... | |
| static Terrain * | find (const agxSDK::Simulation *simulation, const agx::Uuid &uuid) |
| Find terrain with given UUID. More... | |
| static TerrainPtrVector | findAll (const agxSDK::Simulation *simulation, const agx::Name &name) |
| Find all terrains with given name. More... | |
| static TerrainPtrVector | findAll (const agxSDK::Simulation *simulation) |
| Finds all terrains in the given simulation. More... | |
| static agx::String | generateName (const agx::String &bindPath) |
| static const HashSet< Object * > & | getActiveObjects () |
| static agx::Bool | getEnableKinematicForParticles (const agx::RigidBody *rb) |
| static bool | getEnableRebind () |
| Should rebinding be allowed? Right now a global setting. More... | |
| static Component * | load (const String &path, const Path &_namespace=Path()) |
| static Component * | load (const String &path, Device *device, const Path &_namespace=Path()) |
| static Component * | load (const Path &path, const Name &implementation, Device *device, const Path &_namespace=Path()) |
| static Component * | load (TiXmlElement *eComponent, Device *device) |
| static Object * | load (const String &path, Device *device, const String &type="", size_t instance=0) |
| static Object * | load (const String &path, Device *device, const String &type, const String &attribute, const String &value) |
| static void | load (const String &path, Device *device, ObjectPtrVector &loadedObjects) |
| static TiXmlDocument | openDocument (const String &path) |
| static void | setEnableKinematicForParticles (agx::RigidBody *rb, agx::Bool enable) |
| Enable/disable particles to see this rigid body as kinematic regardless of current motion control. More... | |
| static void | setEnableRebind (bool flag) |
| Sets if rebinding of objects should be allowed (Right now a global setting). More... | |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Public Attributes | |
| ObjectEvent | addObjectEvent |
| ObjectEvent | removeObjectEvent |
Protected Types | |
| using | GoToStopCondition = std::function< bool(const agx::Vec3i &index)> |
| typedef struct agxTerrain::Terrain::offsetIndexInfo | offsetIndexInfo |
| using | ParticleIslandVector = agx::Vector< agx::Vector< std::pair< agx::Vec3i, offsetIndexInfo > >> |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
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 84 of file agxTerrain/Terrain.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protected |
Definition at line 1181 of file agxTerrain/Terrain.h.
|
inherited |
Event when adding removing child objects.
NOTE: Events are triggered recursively up the parent structure Example: B is added to root node A, one event is triggered (A.addObjectEvent(A, B)). Then when C is added to B two events are triggered (B.addObjectEvent(B, C), and A.addObjectEvent(B,C))
Definition at line 61 of file Component.h.
|
protected |
|
protected |
Definition at line 1182 of file agxTerrain/Terrain.h.
|
inherited |
Definition at line 141 of file Component.h.
|
strong |
| Enumerator | |
|---|---|
| SOLID | |
| PARTICLE | |
| FLUID | |
Definition at line 94 of file agxTerrain/Terrain.h.
|
strong |
| Enumerator | |
|---|---|
| TERRAIN | |
| PARTICLE | |
| AGGREGATE | |
Definition at line 87 of file agxTerrain/Terrain.h.
| agxTerrain::Terrain::Terrain | ( | size_t | resolutionX, |
| size_t | resolutionY, | ||
| agx::Real | elementSize, | ||
| agx::Real | maximumDepth | ||
| ) |
Constructor.
Creates a terrain object with a specific resolution of 2D grid points with elementSize as the length between them. The terrain length in each direction thus becomes (resolution - 1) * elementSize.
| resolutionX | - The number of height points to use in the Terrain in the X-direction. |
| resolutionY | - The number of height points to use in the Terrain in the Y-direction. |
| elementSize | - The distance between the height points in the terrain. |
| maximumDepth | - The maximum depth that the terrain can have. |
| agxTerrain::Terrain::Terrain | ( | size_t | resolutionX, |
| size_t | resolutionY, | ||
| agx::Real | elementSize, | ||
| const agx::RealVector & | heights, | ||
| bool | flipY, | ||
| agx::Real | maximumDepth | ||
| ) |
Constructor.
Creates a terrain object with a specific resolution of 2D grid points with elementSize as the length between them. The terrain length in each direction thus becomes (resolution - 1) * elementSize.
| resolutionX | - The number of height points to use in the Terrain in the X-direction. |
| resolutionY | - The number of height points to use in the Terrain in the Y-direction. |
| elementSize | - The distance between the height points in the terrain. |
| heights | - A row major matrix, containing the specified heights, with dimensions (resolutionX, resolutionY). |
| flipY | - set to true if y decreases with increasing indices in heights. |
| maximumDepth | - The maximum depth that the terrain can have. |
|
protected |
Default constructor used in serialization.
|
protectedvirtual |
|
protected |
|
protected |
|
inlineprotected |
Definition at line 1487 of file agxTerrain/Terrain.h.
|
inlineprotected |
Definition at line 1480 of file agxTerrain/Terrain.h.
|
staticinherited |
| bool agxTerrain::Terrain::add | ( | Shovel * | shovel | ) |
Adds a shovel object in the terrain.
The shovel objects interacts with the terrain by converting solid soil to dynamic soil in it's active zone.
| shovel | - The specified shovel object. |
|
protected |
|
inherited |
|
protected |
|
protected |
| bool agxTerrain::Terrain::addNoMergeZoneToGeometry | ( | agxCollide::Geometry * | geometry, |
| agx::Real | extensionDistance | ||
| ) |
Add disable merge and avalanche inside geometry bound with added extension distance.
|
overrideprotectedvirtual |
Add notification executed when terrain is added to a simulation.
Reimplemented from agxSDK::TerrainInstance.
|
virtualinherited |
Add an object to the component.
| object | The object to be added |
| assignContext | True if the child get the component as the context, set to false to allow 'weak' coupled children |
Referenced by agxSDK::StatisticsListenerData< agx::Real >::StatisticsListenerData().
|
inherited |
|
protectedinherited |
|
protected |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
virtualinherited |
Reimplemented in agx::Namespace.
|
protected |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agxData::Buffer, and agx::Model.
|
protected |
|
protected |
|
protected |
|
protected |
| agx::Real agxTerrain::Terrain::calculateTotalDynamicMass | ( | ) | const |
| agx::Real agxTerrain::Terrain::calculateTotalFluidMass | ( | ) | const |
| agx::Real agxTerrain::Terrain::calculateTotalMass | ( | ) | const |
| agx::Real agxTerrain::Terrain::calculateTotalSolidMass | ( | ) | const |
| agx::Real agxTerrain::Terrain::calculateVolume | ( | ) |
|
staticinherited |
|
protected |
|
protected |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Clock, agx::Task, agx::Kernel, agx::UnresolvedTask, and agx::Clock.
| bool agxTerrain::Terrain::contains | ( | const Shovel * | shovel | ) | const |
Check is a shovel object is registered in the terrain.
| shovel | - the shovel object that is checked against the terrain. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
Creates a terrain object by using an existing height field as a basis.
The height field data is copied into the internal terrain structure. The existing height field MUST have uniform scale in X and Y axis, otherwise the function returns nullptr.
| heightField | - The height field object that will be used as a basis for creating |
| maximumDepth | - The maximum depth of the terrain. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
static |
Find first terrain with given name.
| simulation | - simulation the terrain is part of |
| name | - name of the terrain |
|
static |
Find terrain with given UUID.
| simulation | - simulation the terrain is part of |
| uuid | - UUID of the terrain |
|
static |
Find all terrains with given name.
| simulation | - simulation the terrain is part of |
| name | - name of the terrain |
|
static |
Finds all terrains in the given simulation.
| simulation | - simulation with terrains. |
|
protected |
|
protected |
|
protected |
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 428 of file Object.h.
References agx::Referenced::is().
|
inherited |
| agx::StringVector agxTerrain::Terrain::getAvailableLibraryMaterials | ( | ) | const |
Get the available TerrainMaterial presets from the TerrainMaterialLibrary that contains calibrated bulk and contact properties for a predefined material archetype.
|
protected |
|
virtualinherited |
Reimplemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxModel::Deformable1DNodeRoute, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agx::UniformGravityField, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxModel::PlasticityComponent, and agxCable::GeometryFactory.
Referenced by agxStream::InputArchive::readRef().
| agx::Vec2i agxTerrain::Terrain::getClosestGridPoint | ( | const agx::Vec3 & | worldPosition, |
| bool | clampToBound = false |
||
| ) | const |
Finds the closes terrain grid point given any point in world.
| worldPosition | - position in world |
| clampToBound | - true if the grid point should be clamped to border if position is outside bounds |
Given geometry contacts exists and the solver has solved them - calculates total shovel contact force between this terrain and the given shovel.
This is the contact force that prevents the shovel from falling through the terrain when not in excavation mode, where contact feedback is generated from the soil aggregates.
| shovel | - interacting shovel |
| agx::ContactMaterial* agxTerrain::Terrain::getContactMaterial | ( | Terrain::MaterialType | type1, |
| Terrain::MaterialType | type2 | ||
| ) |
Returns one of the internal contact materials in agxTerrain.
TODO fix this.
Contact materials exist between MaterialType::TERRAIN - MaterialType::PARTICLE MaterialType::PARTICLE - MaterialType::PARTICLE MaterialType::TERRAIN - MaterialType::AGGREGATE
|
inherited |
|
inherited |
|
inherited |
Given geometry contacts exists and the solver has solved them - calculates total contact force between the terrain deformation soil aggregate and the given shovel.
This represents the deformation force that is required to move soil via shovel deformation instead of excavation, i.e not excavation or digging. Examples of this would be side movement and backwards grading of the soil.
| shovel | - interacting shovel |
|
staticprotectedinherited |
|
inherited |
Definition at line 222 of file Component.h.
|
inherited |
Definition at line 223 of file Component.h.
|
inherited |
Definition at line 226 of file Component.h.
References agxAssert.
|
inherited |
Definition at line 233 of file Component.h.
References agxAssert.
| shovel | - interacting shovel |
|
protected |
|
inline |
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.
Definition at line 1462 of file agxTerrain/Terrain.h.
| bool agxTerrain::Terrain::getEnable | ( | ) | const |
|
static |
|
staticinherited |
Should rebinding be allowed? Right now a global setting.
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
| agx::Vec3 agxTerrain::Terrain::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.
This represents the deformation force that is required to move soil via shovel deformation instead of excavation, i.e not excavation or digging. Examples of this would be side movement and backwards grading of the soil.
| shovel | - interacting shovel |
| excavationMode | - the excavation mode that the specified soil aggregate belongs to |
|
overridevirtual |
Reimplemented from agxSDK::TerrainInstance.
| agx::Real agxTerrain::Terrain::getHeight | ( | const agx::Vec2i & | terrainIndex, |
| bool | includeSurfaceParticles = false |
||
| ) | const |
Gets the terrain height at a specific terrain grid node.
| terrainIndex | An (x,y) index specifying the grid point. |
| includeSurfaceParticles | - Also consider particles when returning height. Default false. |
| const agxCollide::HeightField* agxTerrain::Terrain::getHeightField | ( | ) | const |
|
inherited |
Definition at line 370 of file Object.h.
Referenced by agxData::EntityStorage::indexToId().
|
inherited |
|
inherited |
This index is given at creation of this object.
It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.
Definition at line 247 of file Serializable.h.
| bool agxTerrain::Terrain::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.
The x,y coordinate of the returned 3D points is the terrain index while the z coordinate is a depth index. See the 'TerrainDataGridInterface' class for further explanation.
| geometry | - The geometry to test intersection with the terrain grid. |
| gridPoints | - Reference to the container where the intersecting terrain grid elements will be put. |
| massType | - The specific mass type (SOLID, FLUID or PARTICLE) that is active/occupied in grid points that will be extracted. |
| bool agxTerrain::Terrain::getIntersectingGridElements | ( | agxCollide::Geometry * | geometry, |
| agx::Vec3iVector & | gridPoints | ||
| ) | const |
Get intersecting 3D grid element with specified geometry.
The x,y coordinate of the returned 3D points is the terrain index while the z coordinate is a depth index. See the 'TerrainDataGridInterface' class for further explanation.
| geometry | - The geometry to test intersection with the terrain grid. |
| gridPoints | - Reference to the container where the intersecting terrain grid elements will be put. |
| agx::AffineMatrix4x4 agxTerrain::Terrain::getInverseTransform | ( | ) | 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.
The dead load fraction ranges from 0.0 (empty), to 1.0 (full).
| shovel | - interacting shovel |
| agx::Real agxTerrain::Terrain::getLastExcavatedVolume | ( | ) | const |
| agx::Material* agxTerrain::Terrain::getMaterial | ( | Terrain::MaterialType | type = Terrain::MaterialType::TERRAIN | ) | const |
Returns one of the internal materials in agxTerrain.
TODO fix this. MaterialType::TERRAIN - The internal material used on the terrain surface height field structure. MaterialType::PARTICLE - The internal material used on the terrain particles. MaterialType::AGGREGATE - The internal material used on aggregate used to represent the particle mass.
These materials can be used to configure contact materials with objects interacting with the terrain.
| size_t agxTerrain::Terrain::getMemoryUsage | ( | ) |
Returns the memory usage in bytes in agxTerrain.
|
protected |
| agx::Real agxTerrain::Terrain::getMinimumAllowedHeight | ( | ) | const |
|
inherited |
| const ModifiedVerticesVector& agxTerrain::Terrain::getModifiedParticleVertices | ( | ) | const |
Returns the modified terrain height field (including particles) vertices during the last time step.
| const ModifiedVerticesVector& agxTerrain::Terrain::getModifiedVertices | ( | ) | const |
Returns the modified terrain height field vertices during the last time step.
| const ModifiedVerticesVector& agxTerrain::Terrain::getModifiedVoxelColumns | ( | ) | const |
Returns the terrain vertices which voxel columns has modified compaction during the last time step.
The method getCompactionController()->getCompressedTerrainIndices only returns terrain vertices that has been compressed by terrain contacts. This method takes vertices that has modified compaction by avalanching and dynamic mass mergeing back into the terrain into account aswell.
|
inherited |
Definition at line 369 of file Object.h.
Referenced by agxData::EntityStorage::get(), agxData::FormatBinding< T >::getFormat(), and agxData::EntityPtr::operator()().
|
inherited |
|
inherited |
| bool agxTerrain::Terrain::getNoMerge | ( | ) |
Return whether this terrain is prevented from merging dynamic mass to it.
| size_t agxTerrain::Terrain::getNumCreatedParticles | ( | ) | const |
Return the number of soil particles created during excavation this time step.
|
inherited |
| size_t agxTerrain::Terrain::getNumSoilParticles | ( | ) | const |
Return the number of soil particles active in the simulation.
Definition at line 194 of file Component.h.
|
inherited |
Definition at line 195 of file Component.h.
|
inherited |
Definition at line 197 of file Component.h.
|
inherited |
Definition at line 198 of file Component.h.
|
inherited |
Definition at line 202 of file Component.h.
|
inherited |
Definition at line 216 of file Component.h.
|
inherited |
Definition at line 192 of file Component.h.
Referenced by agx::Component::getObjects().
|
inherited |
|
inherited |
|
inherited |
Definition at line 241 of file Component.h.
References agx::Component::getObjects().
| float agxTerrain::Terrain::getParticleNominalRadius | ( | ) |
Get the soil particle nominal radius from the simulation.
The nominal radius is the particle radius that the terrain algorithm will aim for during the dynamic resizing of particles that occur during terrain interaction. This is calculated from the resulting element size upon construction of the terrain object.
| const ModifiedVerticesVector& agxTerrain::Terrain::getParticleVertices | ( | ) | const |
Returns the terrain vertices that contains soil particles during the last time step.
|
inherited |
Referenced by agxData::EntityStorage::dereferenceMultipliedAttribute(), and agxData::EntityInstance::verifyIndex().
|
inherited |
| root | A node along the parent path from this object. |
| bool agxTerrain::Terrain::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.
| shovel | - interacting shovel |
| force | - the penetration force |
| torque | - the penetration torque |
force and torque - otherwise false | agx::Vec3 agxTerrain::Terrain::getPosition | ( | ) | const |
| TerrainProperties* agxTerrain::Terrain::getProperties | ( | ) | const |
|
inherited |
| agx::RealVector agxTerrain::Terrain::getResizedHeightField | ( | size_t | factorX, |
| size_t | factorY | ||
| ) | const |
Calculate a reduced version of the height field structure.
Heights in terrain index segments with dimensions [factorX, factorY] are averaged and put into a reduced structure with dimensions [resolutionX/factorX, resolutionY/factorY].
| factorX | - The factor to resize the height field in the X dimension. |
| factorY | - The factor to resize the height field in the Y dimension. |
|
inline |
Returns the element resolution of the terrain in the local X-axis.
Definition at line 1450 of file agxTerrain/Terrain.h.
|
inline |
Returns the element resolution of the terrain in the local Y-axis.
Definition at line 1456 of file agxTerrain/Terrain.h.
|
inherited |
|
inherited |
|
inherited |
Definition at line 414 of file Object.h.
References agx::Referenced::is().
|
inherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Task, and agxData::EntityStorage.
|
inherited |
|
inherited |
| agx::Quat agxTerrain::Terrain::getRotation | ( | ) | 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.
This represents the separation force that is required to move the excavated soil in the shovel active zone.
| shovel | - interacting shovel |
| agx::ContactMaterial* agxTerrain::Terrain::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.
This overrides the shovel-terrain contact material properties that are used in the default case.
| shovel | - The specified shovel. |
| mode | - The specified excavation mode that corresponds to the aggregate. |
| agxCollide::GeometryContactPtrVector agxTerrain::Terrain::getShovelAggregateContacts | ( | const Shovel * | shovel, |
| Shovel::ExcavationMode | excavationMode | ||
| ) | const |
Get the shovel <-> aggregate contacts with the terrain given an excavation mode and a shovel.
| shovel | - the specified shovel |
| excavationMode | - the excavation mode that the soil aggregate belongs too ( PRIMARY, DEFORM_BACK, DEFORM_RIGHT, DEFORM_LEFT ) |
|
protected |
| ShovelRefVector agxTerrain::Terrain::getShovels | ( | ) | const |
Return the shovels currently added in the terrain.
|
inherited |
| agx::Vec2 agxTerrain::Terrain::getSize | ( | ) | const |
Returns the total surface size of he terrain in X Y coordinate system.
| agx::Real agxTerrain::Terrain::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.
This function can be used to extract the active mass that the shovel is trying to displace in the failure zones during digging and deformation.
| shovel | - interacting shovel |
| excavationMode | - The excavation mode of the aggregate that will be used to extract the mass. |
| const agxCollide::HeightField* agxTerrain::Terrain::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.
| SoilParticleStatistics agxTerrain::Terrain::getSoilParticleStatistics | ( | ) | const |
Get basic statistics of the soil particles active in the simulation.
| SoilSimulationInterface* agxTerrain::Terrain::getSoilSimulationInterface | ( | ) | const |
Get the soil particle system interface used to represent the dynamic mass in the terrain.
This can be used to access and modify soil particle data.
|
pure virtualinherited |
Implemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxModel::Deformable1DNodeRoute, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agx::UniformGravityField, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxModel::PlasticityComponent, and agxCable::GeometryFactory.
| agx::Vec3 agxTerrain::Terrain::getSurfacePosition | ( | const agx::Vec2i & | terrainIndex, |
| bool | includeSurfaceParticles = false |
||
| ) | const |
Finds the terrain surface position, given in local coordinate frame, for a specified terrain index.
| - | terrainIndex - the terrain index, going from (0,0) -> (resolutionX-1, resolutionY-1) |
| includeSurfaceParticles | - Also consider surface particles when calculating the height, default false. |
| agx::Vec3 agxTerrain::Terrain::getSurfacePositionWorld | ( | const agx::Vec2i & | terrainIndex, |
| bool | includeSurfaceParticles = false |
||
| ) | const |
Finds the terrain surface world position for a specified terrain index.
| - | terrainIndex - the terrain index, going from (0,0) -> (resolutionX-1, resolutionY-1) |
| includeSurfaceParticles | - Also consider surface particles when calculating the height, default false. |
|
protected |
| const TerrainContactRefVector& agxTerrain::Terrain::getTerrainContacts | ( | ) | const |
| TerrainGridControl* agxTerrain::Terrain::getTerrainGridControl | ( | ) | const |
Get control interface of the terrain grid data.
This interface can modify and extract data from the terrain in grid cell level, properties such as mass and compaction.
|
inline |
Returns the terrain material which is used to derive material and contact material parameters.
Definition at line 1444 of file agxTerrain/Terrain.h.
| TerrainToolCollection* agxTerrain::Terrain::getToolCollection | ( | const Shovel * | shovel | ) | const |
| shovel | - shovel instance |
| const TerrainToolCollectionRefVector& agxTerrain::Terrain::getToolCollections | ( | ) | const |
| agx::Real agxTerrain::Terrain::getTotalSoilParticleMass | ( | ) | const |
Get the total mass (kg) of the active soil particles in the simulation.
| agx::AffineMatrix4x4 agxTerrain::Terrain::getTransform | ( | ) | const |
| agx::Vec3 agxTerrain::Terrain::getUpDirection | ( | ) | const |
Returns the world up direction of the terrain.
|
inherited |
Definition at line 268 of file Serializable.h.
Referenced by agxSDK::UuidHashCollisionFilter::match().
|
protected |
| agx::Real agxTerrain::Terrain::getVoxelArea | ( | ) | const |
|
protected |
| agx::Real agxTerrain::Terrain::getVoxelVolume | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inherited |
| bool agxTerrain::Terrain::hasOverlap | ( | const agxCollide::Geometry * | geometry | ) | const |
Return true if the specified geometry bounding volume overlaps the terrain geometry bounding volume.
|
inherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
protected |
| bool agxTerrain::Terrain::isBorderIndex | ( | const agx::Vec2i & | terrainIndex | ) | const |
Checks if the specified index is at the border of the terrain.
| terrainIndex | - the terrain index to check |
| bool agxTerrain::Terrain::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.
| shovel | - interacting shovel |
|
protected |
|
inherited |
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
| bool agxTerrain::Terrain::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.
| geometry | - the specified geometry for which its body should be checked against the registered shovels. |
| bool agxTerrain::Terrain::isIndexWithinBounds | ( | const agx::Vec2i & | terrainIndex | ) | const |
Checks if the specified index is within bound of the terrain [(0,0) -> (resolutionX, resolutionY)].
| terrainIndex | - the terrain index to check |
|
protected |
| bool agxTerrain::Terrain::isLocalPositionWithinBounds | ( | const agx::Vec3 & | position | ) | const |
Checks whether the position is within terrain (x,y) position bounds in local space.
| position | - the position to be checked against the terrain bound. |
| bool agxTerrain::Terrain::isRigidBodyShovel | ( | const agx::RigidBody * | body | ) | const |
Checks if a specified rigid body is contained in any of the terrain object's registered shovels.
| body | - the specified body to check against the registered shovels. |
|
protected |
|
protected |
|
protected |
|
protected |
Surface voxel functions.
|
protected |
| bool agxTerrain::Terrain::isWorldPositionWithinBounds | ( | const agx::Vec3 & | position | ) | const |
Checks whether the position is within terrain (x,y) position bounds in world space.
| position | - the position to be checked against the terrain bound. |
|
overrideprotectedvirtual |
Callback to be executed at the end of the time step.
Reimplemented from agxSDK::TerrainInstance.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
| bool agxTerrain::Terrain::loadLibraryMaterial | ( | const agx::String | materialName | ) |
Loads a TerrainMaterial preset in the TerrainMaterialLibrary that contains calibrated bulk and contact properties for a predefined material archetype.
Note - This method uses the convenience enum MaterialPreset that points to existing preset files.
| materialName | - The name of the material preset that should be loaded. |
| bool agxTerrain::Terrain::loadMaterialFile | ( | const agx::String & | filename | ) |
Load a TerrainMaterial from a specification file in JSON data format.
| filename | - the name of the JSON file containing the specified material data. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticinherited |
|
protected |
|
overrideprotectedvirtual |
Executes post-step events for agxTerrain in the simulation.
Reimplemented from agxSDK::TerrainInstance.
|
protected |
|
protected |
|
protected |
|
overrideprotectedvirtual |
Executes pre-step events for agxTerrain in the simulation.
Reimplemented from agxSDK::TerrainInstance.
|
overrideprotectedvirtual |
Executes pre-collide events for agxTerrain in the simulation.
Reimplemented from agxSDK::TerrainInstance.
|
protected |
|
protected |
|
overridevirtualinherited |
Reimplemented from agx::Object.
|
inherited |
| agx::Bool agxTerrain::Terrain::projectPointToSurface | ( | const agx::Vec3 & | worldPosition, |
| agx::Vec3 & | result | ||
| ) | const |
Project a world point to the grid surface.
| worldPosition | - position in world |
| result | - position on this terrain, given in world coordinates |
worldPosition successfully projected onto this terrain, false if worldPosition is outside
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Task, and agx::Clock.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
| bool agxTerrain::Terrain::remove | ( | Shovel * | shovel | ) |
Removes a shovel object in the terrain, if it exists.
| shovel | - The specified shovel object. |
|
inherited |
Remove all components.
| float agxTerrain::Terrain::removeFluidMassInGeometry | ( | agxCollide::Geometry * | geometry, |
| float | fluidMass | ||
| ) |
Remove fluid mass (in kg, NOT occupancy) in the intersecting 3D grid element with specified geometry.
The x,y coordinate of the returned 3D points is the terrain index while the z coordinate is a depth index. See the 'TerrainDataGridInterface' class for further explanation.
| geometry | - The geometry to test intersection with the terrain grid. |
| fluidMass | - Amount of mass to be removed |
|
inherited |
| void agxTerrain::Terrain::removeModifiedParticleVertice | ( | agx::Vec2i | terrainIndex | ) |
Removes a vertex from the vector with vertices that were modified during the last time step.
| bool agxTerrain::Terrain::removeNoMergeZoneToGeometry | ( | agxCollide::Geometry * | geometry | ) |
remove disable merge and avalanche inside geometry bound with added extension distance
|
overrideprotectedvirtual |
Remove notification executed when terrain is removed to a simulation.
Reimplemented from agxSDK::TerrainInstance.
|
virtualinherited |
Remove an object from the component.
Remove an object with a specified name (and optional index) from the component.
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtualinherited |
|
protected |
|
inlinevirtualinherited |
Reimplemented in agx::Clock.
| void agxTerrain::Terrain::setCompaction | ( | agx::Real | compaction, |
| bool | replaceCompactedSoil = true |
||
| ) | const |
Set a compaction for all current active solid grid elements in the Terrain object.
| compaction | - The compaction value to set to every voxel in the terrain (Default: 1.0) |
| replaceCompactedSoil | - True if all voxels which already have a compaction value (compaction != 1.0) should get overwritten. |
|
virtualinherited |
Reimplemented in agx::Task, and agxData::FunctionValue.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| void agxTerrain::Terrain::setEnable | ( | bool | enable | ) |
Set if terrain computations should be enabled.
| enable | - true if terrain computations should be enabled, false otherwise. |
|
static |
Enable/disable particles to see this rigid body as kinematic regardless of current motion control.
| rb | - rigid body |
| enable | - true to enable this feature, false to disable |
|
staticinherited |
Sets if rebinding of objects should be allowed (Right now a global setting).
Allowing it when adding larger parts to the system tree might hit performance, so it might be smarter to disable it first, then add, and then enable again.
|
inherited |
Set to false to disable serialization of this object.
It will just be ignored during serialization (writing). It is still possible to restore TO this object.
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
| void agxTerrain::Terrain::setHeight | ( | const agx::Vec2i & | terrainIndex, |
| agx::Real | height | ||
| ) |
Sets Terrain height at a specific terrain grid node.
| terrainIndex | An (x,y) index specifying the grid point to set the height to |
| height | the new height in the height field. |
| bool agxTerrain::Terrain::setHeights | ( | const agx::RealVector & | heights, |
| bool | flipY = false, |
||
| bool | resetCompaction = true |
||
| ) |
Set height values of all sampled points.
| heights | - must be a row major matrix with dimensions (resolutionX, resolutionY). |
| flipY | - set to true if y decreases with increasing indices in heights. ( Default: false ) |
| resetCompaction | - Set to true if the compaction data should be erased to default compaction, false if compaction data should be preserved. ( Default: true ) |
| void agxTerrain::Terrain::setMaterial | ( | agx::Material * | material | ) |
Assign new material to this terrain.
The material instance will be assigned to the geometry holding the height field (getHeightFieldGeometry()). Internal contact materials terrain <-> particles and terrain <-> soil particle aggregate will be updated.
| material | - new material for this terrain |
|
inherited |
Set the object model (handled automatically).
| void agxTerrain::Terrain::setNoMerge | ( | bool | noMerge | ) |
Prevent merge of dynamic mass to this terrain.
| void agxTerrain::Terrain::setNoMergeEdgeMargin | ( | size_t | noMergeEdgeMargin | ) |
Add disable merge and avalanche a number of indices from the terrain edge.
Set the position of this terrain.
| position | - new position of this terrain, given in world coordinate frame |
Set the rotation of this terrain.
| rotation | - new rotation of this terrain, given in world coordinate frame |
| bool agxTerrain::Terrain::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.
This overrides the shovel-terrain contact material properties that are used in the default case.
| shovel | - The specified shovel. |
| contactMaterial | - The contact material to be set in the aggregate contact. |
| mode | - The specified excavation mode that corresponds to the aggregate. |
| void agxTerrain::Terrain::setTerrainMaterial | ( | TerrainMaterial * | terrainMaterial | ) |
Set the material for the bulk of the terrain which is used to derive material and contact material parameters.
| void agxTerrain::Terrain::setTransform | ( | const agx::AffineMatrix4x4 & | transform | ) |
Set the transform of this terrain.
| transform | - new transform of this terrain, given in world coordinate frame |
Explicitly set a Uuid on a serializable object.
Use this method with great care, as it can result in non-unique identifiers in the system!
|
protected |
|
protected |
|
overridevirtualinherited |
Reimplemented from agx::Object.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Transform point given in world coordinate frame to local coordinate frame of this terrain.
| point | - point in world coordinate frame |
Transform point given in local coordinate frame of this terrain, to world coordinate frame.
| point | - point in local coordinate frame of this terrain |
Transform vector given in world coordinate frame to local coordinate frame of this terrain.
| vector | - vector in world coordinate frame |
Transform vector given in local coordinate frame of this terrain, to world coordinate frame.
| vector | - vector in local coordinate frame of this terrain |
|
inherited |
|
inherited |
| void agxTerrain::Terrain::triggerForceAvalancheAll | ( | ) |
Triggers initial avalanching on all indices in the terrain.
If any height differences in the terrain violates the angle of repose requirement, avalanching will begin on those indices.
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticinherited |
|
protected |
|
inherited |
Definition at line 63 of file Component.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
inherited |
Definition at line 64 of file Component.h.