AGX Dynamics  2.37.3.2
ShovelAggregateContactUtils.h File Reference

Go to the source code of this file.

Classes

class  agxTerrain::ShovelAggregateContactMaterialContainer
 Simple container class for storing and handling explicit contact material for shovel-aggregate contacts, indexed by specified excavation mode. More...
 

Namespaces

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

Typedefs

typedef agx::observer_ptr< const ShovelAggregateContactMaterialContainer > agxTerrain::ShovelAggregateContactMaterialContainerConstObserver
 
typedef agx::ref_ptr< const ShovelAggregateContactMaterialContainer > agxTerrain::ShovelAggregateContactMaterialContainerConstRef
 
typedef agx::observer_ptr< ShovelAggregateContactMaterialContainer > agxTerrain::ShovelAggregateContactMaterialContainerObserver
 
typedef agx::Vector< ShovelAggregateContactMaterialContainerObserver > agxTerrain::ShovelAggregateContactMaterialContainerObserverVector
 
typedef agx::VectorPOD< ShovelAggregateContactMaterialContainer * > agxTerrain::ShovelAggregateContactMaterialContainerPtrVector
 
typedef agx::ref_ptr< ShovelAggregateContactMaterialContainer > agxTerrain::ShovelAggregateContactMaterialContainerRef
 
typedef agx::Vector< ShovelAggregateContactMaterialContainerRef > agxTerrain::ShovelAggregateContactMaterialContainerRefVector
 

Functions

agx::Vec3 AGXTERRAIN_EXPORT agxTerrain::calculateGravityVector (agxSDK::Simulation *simulation, const agx::Vec3 &position)
 Utility method for calculating the gravity vector given a point. More...
 
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. More...
 
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. More...
 
AGXTERRAIN_EXPORT agx::Material * agxTerrain::findShovelMaterial (agxTerrain::Shovel *shovel)
 Find the agx::Material on the first contact valid contact geometry in the specified shovel. More...
 
AGXTERRAIN_EXPORT agxCollide::Geometry * agxTerrain::getFirstContactValidGeometry (const agx::RigidBody *shovelBody)
 Get first contact valid geometry in the shovel rigid body for contact. More...
 
AGXTERRAIN_EXPORT bool agxTerrain::isValidContactGeometry (agxCollide::Geometry *geometry)
 Checks if the specified geometry is valid for creating aggregate contacts against. More...
 
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. More...
 
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. More...
 
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. More...