AGX Dynamics  2.37.2.0
agxTerrain Namespace Reference

The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes. More...

Namespaces

 Profiler
 
 TerrainContactForceCalculator
 Utility namespace for calculating excavation forces in the terrain.
 

Classes

class  ActiveZone
 
struct  ActiveZoneIntersectionData
 
class  AggregateContactDepthModel
 Class used to calculate the contact depth in the soil aggregate <-> terrain contacts to mimic an elasto-plastic contact model. More...
 
class  AggregateContactGenerator
 
class  BasicGrid
 Pure virtual interface class for the data storage grid classes we have. More...
 
class  ColumnHeightGrid
 Class implementing the BasicGrid interface. More...
 
class  CompactionController
 Controller that handles compaction in the terrain from generated terrain contacts in TerrainContactGenerator The controller features two methods that calculate stress depth propagation in the terrain soil: BOUSSINESQ - Two part method that calculates the stress field by combining the calculated surface stress and subsoil stress based on the surface contact point loads. More...
 
class  DeformController
 
class  DeformerActiveZone
 
class  DeformerCollection
 
class  ExternalTerrainDataSource
 This class provides a concrete, serializable base class which classes written in other languages can inherit from to create data sources. More...
 
class  Grid
 Extended pure virtual interface for Grid storage classes. More...
 
class  HashVoxelGrid
 Class implementing the BasicGrid interface. More...
 
class  PrimaryActiveZone
 
class  ScopeTimer
 
class  Shovel
 
class  ShovelAggregateContactMaterialContainer
 Simple container class for storing and handling explicit contact material for shovel-aggregate contacts, indexed by specified excavation mode. More...
 
class  ShovelAggregateFrictionModel
 
class  SoilParticleAggregate
 
struct  SoilParticleStatistics
 
class  SoilPenetrationResistance
 
class  SoilSimulationInterface
 Interface class for accessing data and functions for the internal soil particle simulation used in agxTerrain. More...
 
class  SoilWedge
 
class  Terrain
 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...
 
class  TerrainCache
 The TerrainCache is used internally by the TerrainPager to provide requested terrain tiles. More...
 
class  TerrainContact
 Class that contains information about a terrain contact between an external object and the terrain geometry. More...
 
class  TerrainContactGenerator
 This class has two main responsibilities: More...
 
class  TerrainDataSource
 Abstract interface for requesting height data for a Terrain tile. More...
 
class  TerrainGridControl
 Interface class for accessing and manipulating the underlying 3D grid data in the terrain using terrain index (x,y) as well as depth index (z). More...
 
class  TerrainMassOccupancyController
 Class that handles and sanity checks the mass logic in the terrain. More...
 
class  TerrainMaterial
 This class is used to describe the general material properties of the Terrain. More...
 
class  TerrainMaterialLibrary
 Class that is used for interfacing with different TerrainMaterial presets with calibrated bulk and contact properties of different archetypes of soil, such as dirt, gravel and sand. More...
 
class  TerrainMaterialReaderWriter
 Utility class for reading and writing TerrainMaterial objects to JSON format. More...
 
class  TerrainPager
 A pager that will dynamically handle terrain tiles in a agxSDK::Simulation. More...
 
class  TerrainPhysics
 Utility class where most of the physics calculation used in agxTerrain is gathered. More...
 
class  TerrainProperties
 Class for containing and managing the different agxTerrain::Terrain settings. More...
 
class  TerrainRasterizer
 This class performs raycasting against the source geometry to get height data for tiles. More...
 
struct  TerrainTile
 Struct with data to describe a terrain tile. More...
 
class  TerrainToolCollection
 Collection of terrain tool (currently Shovel) related objects which are terrain instance specific. More...
 
class  TileModification
 TileModifications are used to provide a delta for paged terrain changes. More...
 
class  TileSpecification
 A TileSpecification determines where in the world a 2D TileId is located and contains utility methods for coordinate transforms. More...
 
class  TrajectoryCalculator
 
struct  TrajectorySettings
 

Typedefs

typedef agx::observer_ptr< const ActiveZone > ActiveZoneConstObserver
 
typedef agx::ref_ptr< const ActiveZone > ActiveZoneConstRef
 
typedef agx::observer_ptr< ActiveZone > ActiveZoneObserver
 
typedef agx::Vector< ActiveZoneObserver > ActiveZoneObserverVector
 
typedef agx::VectorPOD< ActiveZone * > ActiveZonePtrVector
 
typedef agx::ref_ptr< ActiveZone > ActiveZoneRef
 
typedef agx::Vector< ActiveZoneRef > ActiveZoneRefVector
 
typedef agx::Vector< MeshIntersectionTestData > ActiveZoneShapes
 
typedef agx::observer_ptr< const AggregateContactGenerator > AggregateContactGeneratorConstObserver
 
typedef agx::ref_ptr< const AggregateContactGenerator > AggregateContactGeneratorConstRef
 
typedef agx::observer_ptr< AggregateContactGenerator > AggregateContactGeneratorObserver
 
typedef agx::ref_ptr< AggregateContactGenerator > AggregateContactGeneratorRef
 
typedef agx::observer_ptr< const BasicGrid > BasicGridConstObserver
 
typedef agx::ref_ptr< const BasicGrid > BasicGridConstRef
 
typedef agx::observer_ptr< BasicGrid > BasicGridObserver
 
typedef agx::ref_ptr< BasicGrid > BasicGridRef
 
typedef agx::observer_ptr< const CompactionController > CompactionControllerConstObserver
 
typedef agx::ref_ptr< const CompactionController > CompactionControllerConstRef
 
typedef agx::observer_ptr< CompactionController > CompactionControllerObserver
 
typedef agx::Vector< CompactionControllerObserver > CompactionControllerObserverVector
 
typedef agx::VectorPOD< CompactionController * > CompactionControllerPtrVector
 
typedef agx::ref_ptr< CompactionController > CompactionControllerRef
 
typedef agx::Vector< CompactionControllerRef > CompactionControllerRefVector
 
typedef agx::observer_ptr< const DeformController > DeformControllerConstObserver
 
typedef agx::ref_ptr< const DeformController > DeformControllerConstRef
 
typedef agx::observer_ptr< DeformController > DeformControllerObserver
 
typedef agx::ref_ptr< DeformController > DeformControllerRef
 
typedef agx::observer_ptr< const DeformerActiveZone > DeformerActiveZoneConstObserver
 
typedef agx::ref_ptr< const DeformerActiveZone > DeformerActiveZoneConstRef
 
typedef agx::observer_ptr< DeformerActiveZone > DeformerActiveZoneObserver
 
typedef agx::ref_ptr< DeformerActiveZone > DeformerActiveZoneRef
 
typedef agx::observer_ptr< const DeformerCollection > DeformerCollectionConstObserver
 
typedef agx::ref_ptr< const DeformerCollection > DeformerCollectionConstRef
 
typedef agx::observer_ptr< DeformerCollection > DeformerCollectionObserver
 
typedef agx::ref_ptr< DeformerCollection > DeformerCollectionRef
 
typedef agx::HashTable< agxCollide::Geometry *, agx::Real > GeometryContactTimeTable
 
typedef agx::HashSet< agxCollide::Geometry * > GeometryHashSet
 
typedef agx::HashVector< agxCollide::Geometry *, agxCollide::LocalGeometryContact > GeometryLocalContactTable
 
typedef agx::observer_ptr< const Grid > GridConstObserver
 
typedef agx::ref_ptr< const Grid > GridConstRef
 
typedef agx::observer_ptr< Grid > GridObserver
 
typedef agx::ref_ptr< Grid > GridRef
 
typedef std::queue< agx::Vec2i > IndexQueue
 
typedef agx::HashTable< agx::Vec3i, ParticleWeightPairVector > IndexToParticleWeightPairVector
 
typedef std::tuple< const agxCollide::Mesh *, agx::AffineMatrix4x4, agxCollide::BoundingAABB > MeshIntersectionTestData
 
typedef std::pair< agxCollide::MeshRef, agx::AffineMatrix4x4 > MeshTransformPair
 
typedef agx::Vector< MeshTransformPair > MeshTransformPairVector
 
typedef agx::VectorPOD< agx::RealVector > modifiedCompactionVector
 
typedef agx::SetVector< agx::Vec2i > ModifiedVerticesSetVector
 
typedef agx::Vector< agx::Vec2i > ModifiedVerticesVector
 
typedef agx::Vector< std::pair< SoilParticlePtr, float > > ParticleDeltaVector
 
typedef std::pair< SoilParticlePtr, agx::Real > ParticleWeightPair
 
typedef agx::Vector< ParticleWeightPair > ParticleWeightPairVector
 
typedef agx::observer_ptr< const PrimaryActiveZone > PrimaryActiveZoneConstObserver
 
typedef agx::ref_ptr< const PrimaryActiveZone > PrimaryActiveZoneConstRef
 
typedef agx::observer_ptr< PrimaryActiveZone > PrimaryActiveZoneObserver
 
typedef agx::ref_ptr< PrimaryActiveZone > PrimaryActiveZoneRef
 
typedef agx::observer_ptr< const ScopeTimer > ScopeTimerConstObserver
 
typedef agx::ref_ptr< const ScopeTimer > ScopeTimerConstRef
 
typedef agx::observer_ptr< ScopeTimer > ScopeTimerObserver
 
typedef agx::ref_ptr< ScopeTimer > ScopeTimerRef
 
typedef std::tuple< const agxCollide::Shape *, agx::AffineMatrix4x4, agxCollide::BoundingAABB > ShapeIntersectionTestData
 
typedef agx::observer_ptr< const ShovelAggregateContactMaterialContainer > ShovelAggregateContactMaterialContainerConstObserver
 
typedef agx::ref_ptr< const ShovelAggregateContactMaterialContainer > ShovelAggregateContactMaterialContainerConstRef
 
typedef agx::observer_ptr< ShovelAggregateContactMaterialContainer > ShovelAggregateContactMaterialContainerObserver
 
typedef agx::Vector< ShovelAggregateContactMaterialContainerObserver > ShovelAggregateContactMaterialContainerObserverVector
 
typedef agx::VectorPOD< ShovelAggregateContactMaterialContainer * > ShovelAggregateContactMaterialContainerPtrVector
 
typedef agx::ref_ptr< ShovelAggregateContactMaterialContainer > ShovelAggregateContactMaterialContainerRef
 
typedef agx::Vector< ShovelAggregateContactMaterialContainerRef > ShovelAggregateContactMaterialContainerRefVector
 
typedef agx::observer_ptr< const ShovelAggregateFrictionModel > ShovelAggregateFrictionModelConstObserver
 
typedef agx::ref_ptr< const ShovelAggregateFrictionModel > ShovelAggregateFrictionModelConstRef
 
typedef agx::observer_ptr< ShovelAggregateFrictionModel > ShovelAggregateFrictionModelObserver
 
typedef agx::ref_ptr< ShovelAggregateFrictionModel > ShovelAggregateFrictionModelRef
 
typedef agx::observer_ptr< const Shovel > ShovelConstObserver
 
typedef agx::ref_ptr< const Shovel > ShovelConstRef
 
typedef agx::observer_ptr< Shovel > ShovelObserver
 
typedef agx::Vector< ShovelObserver > ShovelObserverVector
 
typedef agx::VectorPOD< Shovel * > ShovelPtrVector
 
typedef agx::ref_ptr< Shovel > ShovelRef
 
typedef agx::Vector< ShovelRef > ShovelRefVector
 
typedef agx::observer_ptr< const SoilParticleAggregate > SoilParticleAggregateConstObserver
 
typedef agx::ref_ptr< const SoilParticleAggregate > SoilParticleAggregateConstRef
 
typedef agx::observer_ptr< SoilParticleAggregate > SoilParticleAggregateObserver
 
typedef agx::Vector< SoilParticleAggregateObserver > SoilParticleAggregateObserverVector
 
typedef agx::VectorPOD< SoilParticleAggregate * > SoilParticleAggregatePtrVector
 
typedef agx::ref_ptr< SoilParticleAggregate > SoilParticleAggregateRef
 
typedef agx::Vector< SoilParticleAggregateRef > SoilParticleAggregateRefVector
 
typedef agx::Physics::GranularBodyPtrArray SoilParticleArray
 
typedef agx::Physics::GranularBodyPtr SoilParticlePtr
 
typedef agx::Physics::GranularBodyPtrVector SoilParticlePtrVector
 
typedef agx::Physics::GranularBodyPtrVector SoilParticleVector
 
typedef agx::observer_ptr< const SoilPenetrationResistance > SoilPenetrationResistanceConstObserver
 
typedef agx::ref_ptr< const SoilPenetrationResistance > SoilPenetrationResistanceConstRef
 
typedef agx::observer_ptr< SoilPenetrationResistance > SoilPenetrationResistanceObserver
 
typedef agx::ref_ptr< SoilPenetrationResistance > SoilPenetrationResistanceRef
 
typedef agx::observer_ptr< const SoilSimulationInterface > SoilSimulationInterfaceConstObserver
 
typedef agx::ref_ptr< const SoilSimulationInterface > SoilSimulationInterfaceConstRef
 
typedef agx::observer_ptr< SoilSimulationInterface > SoilSimulationInterfaceObserver
 
typedef agx::ref_ptr< SoilSimulationInterface > SoilSimulationInterfaceRef
 
typedef agx::Vector< SoilWedge > SoilWedgeVector
 
typedef agx::observer_ptr< const Terrain > TerrainConstObserver
 
typedef agx::ref_ptr< const Terrain > TerrainConstRef
 
typedef agx::observer_ptr< const TerrainContact > TerrainContactConstObserver
 
typedef agx::ref_ptr< const TerrainContact > TerrainContactConstRef
 
typedef agx::observer_ptr< const TerrainContactGenerator > TerrainContactGeneratorConstObserver
 
typedef agx::ref_ptr< const TerrainContactGenerator > TerrainContactGeneratorConstRef
 
typedef agx::observer_ptr< TerrainContactGenerator > TerrainContactGeneratorObserver
 
typedef agx::Vector< TerrainContactGeneratorObserver > TerrainContactGeneratorObserverVector
 
typedef agx::VectorPOD< TerrainContactGenerator * > TerrainContactGeneratorPtrVector
 
typedef agx::ref_ptr< TerrainContactGenerator > TerrainContactGeneratorRef
 
typedef agx::Vector< TerrainContactGeneratorRef > TerrainContactGeneratorRefVector
 
typedef agx::observer_ptr< TerrainContact > TerrainContactObserver
 
typedef agx::Vector< TerrainContactObserver > TerrainContactObserverVector
 
typedef agx::VectorPOD< TerrainContact * > TerrainContactPtrVector
 
typedef agx::ref_ptr< TerrainContact > TerrainContactRef
 
typedef agx::Vector< TerrainContactRef > TerrainContactRefVector
 
typedef agx::observer_ptr< const TerrainDataSource > TerrainDataSourceConstObserver
 
typedef agx::ref_ptr< const TerrainDataSource > TerrainDataSourceConstRef
 
typedef agx::observer_ptr< TerrainDataSource > TerrainDataSourceObserver
 
typedef agx::ref_ptr< TerrainDataSource > TerrainDataSourceRef
 
typedef agx::observer_ptr< const TerrainGridControl > TerrainGridControlConstObserver
 
typedef agx::ref_ptr< const TerrainGridControl > TerrainGridControlConstRef
 
typedef agx::observer_ptr< TerrainGridControl > TerrainGridControlObserver
 
typedef agx::Vector< TerrainGridControlObserver > TerrainGridControlObserverVector
 
typedef agx::VectorPOD< TerrainGridControl * > TerrainGridControlPtrVector
 
typedef agx::ref_ptr< TerrainGridControl > TerrainGridControlRef
 
typedef agx::Vector< TerrainGridControlRef > TerrainGridControlRefVector
 
using TerrainIndexSet = agx::HashSet< agx::Vec2i >
 
typedef agx::HashTable< agx::Vec2i, agx::Real > TerrainIndexToDepthTable
 
typedef agx::observer_ptr< const TerrainMassOccupancyController > TerrainMassOccupancyControllerConstObserver
 
typedef agx::ref_ptr< const TerrainMassOccupancyController > TerrainMassOccupancyControllerConstRef
 
typedef agx::observer_ptr< TerrainMassOccupancyController > TerrainMassOccupancyControllerObserver
 
typedef agx::Vector< TerrainMassOccupancyControllerObserver > TerrainMassOccupancyControllerObserverVector
 
typedef agx::VectorPOD< TerrainMassOccupancyController * > TerrainMassOccupancyControllerPtrVector
 
typedef agx::ref_ptr< TerrainMassOccupancyController > TerrainMassOccupancyControllerRef
 
typedef agx::Vector< TerrainMassOccupancyControllerRef > TerrainMassOccupancyControllerRefVector
 
typedef agx::observer_ptr< const TerrainMaterial > TerrainMaterialConstObserver
 
typedef agx::ref_ptr< const TerrainMaterial > TerrainMaterialConstRef
 
typedef agx::observer_ptr< TerrainMaterial > TerrainMaterialObserver
 
typedef agx::ref_ptr< TerrainMaterial > TerrainMaterialRef
 
typedef agx::observer_ptr< Terrain > TerrainObserver
 
typedef agx::Vector< TerrainObserver > TerrainObserverVector
 
typedef agx::observer_ptr< const TerrainPager > TerrainPagerConstObserver
 
typedef agx::ref_ptr< const TerrainPager > TerrainPagerConstRef
 
typedef agx::observer_ptr< TerrainPager > TerrainPagerObserver
 
typedef agx::Vector< TerrainPagerObserver > TerrainPagerObserverVector
 
typedef agx::VectorPOD< TerrainPager * > TerrainPagerPtrVector
 
typedef agx::ref_ptr< TerrainPager > TerrainPagerRef
 
typedef agx::Vector< TerrainPagerRef > TerrainPagerRefVector
 
typedef agx::observer_ptr< const TerrainProperties > TerrainPropertiesConstObserver
 
typedef agx::ref_ptr< const TerrainProperties > TerrainPropertiesConstRef
 
typedef agx::observer_ptr< TerrainProperties > TerrainPropertiesObserver
 
typedef agx::ref_ptr< TerrainProperties > TerrainPropertiesRef
 
typedef agx::VectorPOD< Terrain * > TerrainPtrVector
 
typedef agx::ref_ptr< Terrain > TerrainRef
 
typedef agx::Vector< TerrainRef > TerrainRefVector
 
typedef agx::observer_ptr< const TerrainToolCollection > TerrainToolCollectionConstObserver
 
typedef agx::ref_ptr< const TerrainToolCollection > TerrainToolCollectionConstRef
 
typedef agx::observer_ptr< TerrainToolCollection > TerrainToolCollectionObserver
 
typedef agx::Vector< TerrainToolCollectionObserver > TerrainToolCollectionObserverVector
 
typedef agx::VectorPOD< TerrainToolCollection * > TerrainToolCollectionPtrVector
 
typedef agx::ref_ptr< TerrainToolCollection > TerrainToolCollectionRef
 
typedef agx::Vector< TerrainToolCollectionRef > TerrainToolCollectionRefVector
 
typedef agx::Vec2i32 TileId
 A TileId is a 2D-coordinate that specifies where a in grid a tile is located. More...
 
typedef agx::VectorPOD< TileModification > TileModificationVector
 
typedef agx::Vector< std::array< agx::Vec3, 3 > > TriangleVector
 
typedef agx::HashSet< agx::Vec3i > VoxelHashSet
 
typedef agx::HashSet< agx::Vec3i > VoxelIndexSet
 
typedef agx::HashTable< agx::Vec3i, agx::Real > VoxelStressTable
 
using WedgePlaneVector = agx::Vector< std::array< agx::Plane, 3 > >
 

Functions

agx::Vec3 AGXTERRAIN_EXPORT calculateContactReferencePoint (const agx::Vec3Vector &contactPoints)
 Calculates the reference point that will be used in the contact model from specified contact points. More...
 
agx::Vec3 AGXTERRAIN_EXPORT calculateGravityVector (agxSDK::Simulation *simulation, const agx::Vec3 &position)
 Utility method for calculating the gravity vector given a point. More...
 
agx::Real AGXTERRAIN_EXPORT calculateGv (agx::Vec3 normal, agx::Vec3 point, const agx::RigidBody *rb1, const agx::RigidBody *rb2)
 Utility method for calculating the relative velocity of two bodies in a contact normal direction. More...
 
agx::Real AGXTERRAIN_EXPORT estimateContactDepth (agx::ContactMaterial *contactMaterial, TerrainToolCollection *collection, agx::Real contactVelocity, agx::Real contactGravity, agx::Real contactArea, agx::Real elasticRestLength, size_t numContacts)
 Utility method for estimating the contact depth of a shovel <-> aggregate contact from contact velocity and gravity. More...
 
agx::Real AGXTERRAIN_EXPORT estimateMaximumAggregateForce (const TerrainToolCollection *collection, agx::Real soilAggregateMass, agx::Real contactArea, agx::Real frictionAngle)
 Estimate the maximum force that can be generated from a soil aggregate in the contact between the aggregate and the terrain. More...
 
AGXTERRAIN_EXPORT agx::Material * findShovelMaterial (agxTerrain::Shovel *shovel)
 Find the agx::Material on the first contact valid contact geometry in the specified shovel. More...
 
agx::Real getAverageContactForce (agxCollide::GeometryContactPtrVector matches, bool print=false)
 
AGXTERRAIN_EXPORT agxCollide::Geometry * getFirstContactValidGeometry (const agx::RigidBody *shovelBody)
 Get first contact valid geometry in the shovel rigid body for contact. More...
 
AGXTERRAIN_EXPORT bool isValidContactGeometry (agxCollide::Geometry *geometry)
 Checks if the specified geometry is valid for creating aggregate contacts against. More...
 
AGXTERRAIN_EXPORT void setShovelAggregateContactMaterialProperties (agx::ContactMaterial *shovelAggregateCM, agx::Real contactArea, const agx::RealVector &weights, TerrainToolCollection *collection)
 Set the shovel-aggregate contact material properties from a source contact material that should either be from regular shovel-terrain contact material based on a non-homogeneous configuration in the terrain. More...
 
AGXTERRAIN_EXPORT void setShovelExplicitShovelContactMaterial (agx::ContactMaterial *shovelAggregateCM, agx::Real contactArea, const agx::ContactMaterial *sourceMaterial, const agx::RealVector &weights, TerrainToolCollection *collection)
 Set the shovel-aggregate contact material properties from a source contact material that should be a user-specified contact material for a given excavation mode. More...
 
AGXTERRAIN_EXPORT bool setupShovelAggregateContactMaterial (agx::ContactMaterial *shovelAggregateCM, agx::Real contactArea, Shovel::ExcavationMode mode, TerrainToolCollection *collection, const agx::RealVector &weights)
 Configure the contact material that is to be used in shovel-aggregate contacts. More...
 

Detailed Description

The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.

Typedef Documentation

◆ ActiveZoneConstObserver

Definition at line 49 of file ActiveZone.h.

◆ ActiveZoneConstRef

Definition at line 49 of file ActiveZone.h.

◆ ActiveZoneObserver

◆ ActiveZoneObserverVector

◆ ActiveZonePtrVector

Definition at line 50 of file ActiveZone.h.

◆ ActiveZoneRef

Definition at line 49 of file ActiveZone.h.

◆ ActiveZoneRefVector

◆ ActiveZoneShapes

◆ AggregateContactGeneratorConstObserver

◆ AggregateContactGeneratorConstRef

◆ AggregateContactGeneratorObserver

◆ AggregateContactGeneratorRef

◆ BasicGridConstObserver

Definition at line 57 of file Grid.h.

◆ BasicGridConstRef

Definition at line 57 of file Grid.h.

◆ BasicGridObserver

Definition at line 57 of file Grid.h.

◆ BasicGridRef

Definition at line 57 of file Grid.h.

◆ CompactionControllerConstObserver

◆ CompactionControllerConstRef

◆ CompactionControllerObserver

◆ CompactionControllerObserverVector

◆ CompactionControllerPtrVector

◆ CompactionControllerRef

◆ CompactionControllerRefVector

◆ DeformControllerConstObserver

◆ DeformControllerConstRef

◆ DeformControllerObserver

◆ DeformControllerRef

◆ DeformerActiveZoneConstObserver

◆ DeformerActiveZoneConstRef

◆ DeformerActiveZoneObserver

◆ DeformerActiveZoneRef

◆ DeformerCollectionConstObserver

◆ DeformerCollectionConstRef

◆ DeformerCollectionObserver

◆ DeformerCollectionRef

◆ GeometryContactTimeTable

◆ GeometryHashSet

◆ GeometryLocalContactTable

◆ GridConstObserver

Definition at line 58 of file Grid.h.

◆ GridConstRef

Definition at line 58 of file Grid.h.

◆ GridObserver

Definition at line 58 of file Grid.h.

◆ GridRef

Definition at line 58 of file Grid.h.

◆ IndexQueue

typedef std::queue<agx::Vec2i> agxTerrain::IndexQueue

Definition at line 45 of file TerrainContactGenerator.h.

◆ IndexToParticleWeightPairVector

◆ MeshIntersectionTestData

◆ MeshTransformPair

◆ MeshTransformPairVector

◆ modifiedCompactionVector

◆ ModifiedVerticesSetVector

◆ ModifiedVerticesVector

◆ ParticleDeltaVector

Definition at line 61 of file agxTerrain/Terrain.h.

◆ ParticleWeightPair

Definition at line 56 of file agxTerrain/Terrain.h.

◆ ParticleWeightPairVector

◆ PrimaryActiveZoneConstObserver

◆ PrimaryActiveZoneConstRef

◆ PrimaryActiveZoneObserver

◆ PrimaryActiveZoneRef

◆ ScopeTimerConstObserver

◆ ScopeTimerConstRef

Definition at line 44 of file ProfilingTools.h.

◆ ScopeTimerObserver

◆ ScopeTimerRef

Definition at line 44 of file ProfilingTools.h.

◆ ShapeIntersectionTestData

◆ ShovelAggregateContactMaterialContainerConstObserver

◆ ShovelAggregateContactMaterialContainerConstRef

◆ ShovelAggregateContactMaterialContainerObserver

◆ ShovelAggregateContactMaterialContainerObserverVector

◆ ShovelAggregateContactMaterialContainerPtrVector

◆ ShovelAggregateContactMaterialContainerRef

◆ ShovelAggregateContactMaterialContainerRefVector

◆ ShovelAggregateFrictionModelConstObserver

◆ ShovelAggregateFrictionModelConstRef

◆ ShovelAggregateFrictionModelObserver

◆ ShovelAggregateFrictionModelRef

◆ ShovelConstObserver

Definition at line 48 of file Shovel.h.

◆ ShovelConstRef

Definition at line 48 of file Shovel.h.

◆ ShovelObserver

Definition at line 48 of file Shovel.h.

◆ ShovelObserverVector

◆ ShovelPtrVector

Definition at line 49 of file Shovel.h.

◆ ShovelRef

Definition at line 48 of file Shovel.h.

◆ ShovelRefVector

Definition at line 49 of file Shovel.h.

◆ SoilParticleAggregateConstObserver

◆ SoilParticleAggregateConstRef

◆ SoilParticleAggregateObserver

◆ SoilParticleAggregateObserverVector

◆ SoilParticleAggregatePtrVector

◆ SoilParticleAggregateRef

◆ SoilParticleAggregateRefVector

◆ SoilParticleArray

◆ SoilParticlePtr

◆ SoilParticlePtrVector

◆ SoilParticleVector

◆ SoilPenetrationResistanceConstObserver

◆ SoilPenetrationResistanceConstRef

◆ SoilPenetrationResistanceObserver

◆ SoilPenetrationResistanceRef

◆ SoilSimulationInterfaceConstObserver

◆ SoilSimulationInterfaceConstRef

◆ SoilSimulationInterfaceObserver

◆ SoilSimulationInterfaceRef

◆ SoilWedgeVector

Definition at line 127 of file SoilWedge.h.

◆ TerrainConstObserver

◆ TerrainConstRef

Definition at line 64 of file agxTerrain/Terrain.h.

◆ TerrainContactConstObserver

◆ TerrainContactConstRef

◆ TerrainContactGeneratorConstObserver

◆ TerrainContactGeneratorConstRef

◆ TerrainContactGeneratorObserver

◆ TerrainContactGeneratorObserverVector

◆ TerrainContactGeneratorPtrVector

◆ TerrainContactGeneratorRef

◆ TerrainContactGeneratorRefVector

◆ TerrainContactObserver

◆ TerrainContactObserverVector

◆ TerrainContactPtrVector

◆ TerrainContactRef

◆ TerrainContactRefVector

◆ TerrainDataSourceConstObserver

◆ TerrainDataSourceConstRef

◆ TerrainDataSourceObserver

◆ TerrainDataSourceRef

◆ TerrainGridControlConstObserver

◆ TerrainGridControlConstRef

◆ TerrainGridControlObserver

◆ TerrainGridControlObserverVector

◆ TerrainGridControlPtrVector

◆ TerrainGridControlRef

◆ TerrainGridControlRefVector

◆ TerrainIndexSet

Definition at line 62 of file agxTerrain/Terrain.h.

◆ TerrainIndexToDepthTable

◆ TerrainMassOccupancyControllerConstObserver

◆ TerrainMassOccupancyControllerConstRef

◆ TerrainMassOccupancyControllerObserver

◆ TerrainMassOccupancyControllerObserverVector

◆ TerrainMassOccupancyControllerPtrVector

◆ TerrainMassOccupancyControllerRef

◆ TerrainMassOccupancyControllerRefVector

◆ TerrainMaterialConstObserver

◆ TerrainMaterialConstRef

◆ TerrainMaterialObserver

◆ TerrainMaterialRef

◆ TerrainObserver

◆ TerrainObserverVector

◆ TerrainPagerConstObserver

◆ TerrainPagerConstRef

Definition at line 38 of file TerrainPager.h.

◆ TerrainPagerObserver

◆ TerrainPagerObserverVector

◆ TerrainPagerPtrVector

◆ TerrainPagerRef

Definition at line 38 of file TerrainPager.h.

◆ TerrainPagerRefVector

◆ TerrainPropertiesConstObserver

◆ TerrainPropertiesConstRef

◆ TerrainPropertiesObserver

◆ TerrainPropertiesRef

◆ TerrainPtrVector

◆ TerrainRef

Definition at line 64 of file agxTerrain/Terrain.h.

◆ TerrainRefVector

◆ TerrainToolCollectionConstObserver

◆ TerrainToolCollectionConstRef

◆ TerrainToolCollectionObserver

◆ TerrainToolCollectionObserverVector

◆ TerrainToolCollectionPtrVector

◆ TerrainToolCollectionRef

◆ TerrainToolCollectionRefVector

◆ TileId

A TileId is a 2D-coordinate that specifies where a in grid a tile is located.

Together with a TileSpecification, a location in world coordinates can be calculated.

Definition at line 40 of file TileSpecification.h.

◆ TileModificationVector

◆ TriangleVector

Definition at line 54 of file Grid.h.

◆ VoxelHashSet

◆ VoxelIndexSet

◆ VoxelStressTable

◆ WedgePlaneVector

using agxTerrain::WedgePlaneVector = typedef agx::Vector<std::array<agx::Plane, 3> >

Definition at line 47 of file ActiveZone.h.

Function Documentation

◆ calculateContactReferencePoint()

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::calculateContactReferencePoint ( const agx::Vec3Vector &  contactPoints)

Calculates the reference point that will be used in the contact model from specified contact points.

Parameters
contactPoints- The contact points that is used to calculate the reference point used in the contact model
Returns
the reference point to be used in the aggregate contact model

◆ calculateGravityVector()

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::calculateGravityVector ( agxSDK::Simulation *  simulation,
const agx::Vec3 &  position 
)

Utility method for calculating the gravity vector given a point.

Used in the shovel <-> aggregate contact model and in penetration resistance. This function is used to handle terrain gravity computation for different types gravity fields.

Referenced by agxTerrain::ShovelAggregateContactMaterialContainer::getContactMaterial().

◆ calculateGv()

agx::Real AGXTERRAIN_EXPORT agxTerrain::calculateGv ( agx::Vec3  normal,
agx::Vec3  point,
const agx::RigidBody *  rb1,
const agx::RigidBody *  rb2 
)

Utility method for calculating the relative velocity of two bodies in a contact normal direction.

Referenced by agxTerrain::ShovelAggregateContactMaterialContainer::getContactMaterial().

◆ estimateContactDepth()

agx::Real AGXTERRAIN_EXPORT agxTerrain::estimateContactDepth ( agx::ContactMaterial *  contactMaterial,
TerrainToolCollection *  collection,
agx::Real  contactVelocity,
agx::Real  contactGravity,
agx::Real  contactArea,
agx::Real  elasticRestLength,
size_t  numContacts 
)

Utility method for estimating the contact depth of a shovel <-> aggregate contact from contact velocity and gravity.

Referenced by agxTerrain::ShovelAggregateContactMaterialContainer::getContactMaterial().

◆ estimateMaximumAggregateForce()

agx::Real AGXTERRAIN_EXPORT agxTerrain::estimateMaximumAggregateForce ( const TerrainToolCollection *  collection,
agx::Real  soilAggregateMass,
agx::Real  contactArea,
agx::Real  frictionAngle 
)

Estimate the maximum force that can be generated from a soil aggregate in the contact between the aggregate and the terrain.

This is based on the Mohr-Coulomb criteria for soil failure.

Parameters
collection- The specified collection.
soilAggregateMass- the mass of the specified soil aggregate in the contact.
contactArea- the contact area in the aggregate <-> terrain contact.
Returns
the estimated maximum force that can be generated in the terrain <-> aggregate contact based on the Mohr-Coulomb condition for soil failure.

◆ findShovelMaterial()

AGXTERRAIN_EXPORT agx::Material* agxTerrain::findShovelMaterial ( agxTerrain::Shovel *  shovel)

Find the agx::Material on the first contact valid contact geometry in the specified shovel.

Parameters
shovel- the specified shovel.
Returns
the agx::Material found on the first contact valid geometry in the specified shovel body. Returns nullptr if no contact valid geometry is found.

◆ getAverageContactForce()

agx::Real agxTerrain::getAverageContactForce ( agxCollide::GeometryContactPtrVector  matches,
bool  print = false 
)

◆ getFirstContactValidGeometry()

AGXTERRAIN_EXPORT agxCollide::Geometry* agxTerrain::getFirstContactValidGeometry ( const agx::RigidBody *  shovelBody)

Get first contact valid geometry in the shovel rigid body for contact.

The geometry must be enabled and also not a sensor.

Parameters
shovelBody- The rigid body of the Shovel that will be checked.
Returns
the first valid geometry for aggregate contacts available in the shovel body. If no one exists, return nullptr.

◆ isValidContactGeometry()

AGXTERRAIN_EXPORT bool agxTerrain::isValidContactGeometry ( agxCollide::Geometry *  geometry)

Checks if the specified geometry is valid for creating aggregate contacts against.

Returns
true if the specified geometry can be used for aggregate contacts.

◆ setShovelAggregateContactMaterialProperties()

AGXTERRAIN_EXPORT void agxTerrain::setShovelAggregateContactMaterialProperties ( agx::ContactMaterial *  shovelAggregateCM,
agx::Real  contactArea,
const agx::RealVector &  weights,
TerrainToolCollection *  collection 
)

Set the shovel-aggregate contact material properties from a source contact material that should either be from regular shovel-terrain contact material based on a non-homogeneous configuration in the terrain.

Parameters
shovelAggregateCM- the shovel-aggregate contact material where properties will be set.
contactArea- The area of the shovel-aggregate contact for the specified excavation mode. Used in scaling of Young's modulus.
weights- the weights vector used to average the contact materials in the terrain.
collection- The specified collection that has the shovel object in the contact.

◆ setShovelExplicitShovelContactMaterial()

AGXTERRAIN_EXPORT void agxTerrain::setShovelExplicitShovelContactMaterial ( agx::ContactMaterial *  shovelAggregateCM,
agx::Real  contactArea,
const agx::ContactMaterial *  sourceMaterial,
const agx::RealVector &  weights,
TerrainToolCollection *  collection 
)

Set the shovel-aggregate contact material properties from a source contact material that should be a user-specified contact material for a given excavation mode.

Parameters
shovelAggregateCM- the shovel-aggregate contact material where properties will be set.
contactArea- The area of the shovel-aggregate contact for the specified excavation mode. Used in scaling of Young's modulus.
sourceMaterial- the base material whose properties will be used in the setup.
weights- the weights vector used to average the contact materials in the terrain.
collection- The specified collection that has the shovel object in the contact.

◆ setupShovelAggregateContactMaterial()

AGXTERRAIN_EXPORT bool agxTerrain::setupShovelAggregateContactMaterial ( agx::ContactMaterial *  shovelAggregateCM,
agx::Real  contactArea,
Shovel::ExcavationMode  mode,
TerrainToolCollection *  collection,
const agx::RealVector &  weights 
)

Configure the contact material that is to be used in shovel-aggregate contacts.

The contact material properties are set from the contact material between the shovel geometries and the terrain geometry by default. The user can override it by specifying an explicit contact material that is used in the different kinds of excavation modes. See 'setShovelAggregateContactMaterial' in agxTerrain::Terrain.

Parameters
shovelAggregateCM- the shovel-aggregate contact material that should be configured.
contactArea- The area of the shovel-aggregate contact for the specified excavation mode. Used in scaling of Young's modulus.
mode- the excavation mode that is used to search if an explicit contact material has be set for the contact. If so, it is used instead of the shovel-terrain contact material.
collection- The specified collection that has the shovel object in the contact.
Returns
true if the shovelAggregateCM was configured successfully, false otherwise.