AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxTerrain::ShovelSettings Class Reference

#include <ShovelSettings.h>

+ Inheritance diagram for agxTerrain::ShovelSettings:

Public Member Functions

 ShovelSettings (const agx::Line &cuttingEdge, const agx::Vec3 &toothDirection, agx::Real toothLength)
 
agx::Vec3 getCustomTeethGeometryHalfVec () const
 Get the custom tooth geometry box half vector dimensions to be used when generating a custom teeth geometry, if it is enabled.
 
bool getEnableCustomTeethGeometry () const
 Get whenever custom tooth geometry dimensions should be used instead of automatically generating a teeth geometry from the shovel settings.
 
bool getEnableExcavationAtTeethEdge () const
 
bool getEnableGenerateTeethGeometry () const
 
bool getEnableParticleFreeDeformers () const
 
agx::Real getMaxPenetrationForce () const
 Set the maximum limit on penetration force (N) that the terrain will generate on this shovel.
 
agx::UInt getNumberOfTeeth () const
 
agx::Real getPenetrationDepthThreshold () const
 Get the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness.
 
agx::Real getPenetrationForceScaling () const
 
agx::Vec3 getToothDirection () const
 
agx::Real getToothLength () const
 
agx::Real getToothMaximumRadius () const
 
agx::Real getToothMinimumRadius () const
 
agx::Real getVerticalBladeSoilMergeDistance () const
 Get the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to.
 
void setCustomTeethGeometryHalfVec (const agx::Vec3 &halfVec)
 Set the custom tooth geometry box half vector dimensions to be used when generating a custom teeth geometry, if it is enabled.
 
void setEnableCustomTeethGeometry (bool enable)
 Set whenever custom tooth geometry dimensions should be used instead of automatically generating a teeth geometry from the shovel settings.
 
void setEnableExcavationAtTeethEdge (bool enable)
 Set whenever a excavation at the teeth edge should be enabled so that digging starts at the teeth edge instead of at the cutting edge.
 
void setEnableGenerateTeethGeometry (bool enable)
 Set whenever a teeth geometry should be generated between the cutting edge and the teeth edge from the teeth radius and length.
 
void setEnableParticleFreeDeformers (bool enable)
 Set true/false if the shovel deformers should make particle free deformations.
 
void setMaxPenetrationForce (agx::Real maxPenetrationForce)
 Set a maximum limit on penetration force (N) that the terrain will generate on this shovel.
 
void setNumberOfTeeth (agx::UInt count)
 
void setPenetrationDepthThreshold (agx::Real depthThreshold)
 Set the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness.
 
void setPenetrationForceScaling (agx::Real penetrationForceScaling)
 Set the linear scaling coefficient for the penetration force (Default: 1.0)
 
void setToothDirection (const agx::Vec3 &toothDirection)
 Set the tooth direction of the shovel.
 
void setToothLength (agx::Real length)
 
void setToothMaximumRadius (agx::Real radius)
 
void setToothMinimumRadius (agx::Real radius)
 
void setVerticalBladeSoilMergeDistance (agx::Real verticalSoilBladeMergeDistance)
 Sets the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to.
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Definition at line 36 of file ShovelSettings.h.

Constructor & Destructor Documentation

◆ ShovelSettings()

agxTerrain::ShovelSettings::ShovelSettings ( const agx::Line &  cuttingEdge,
const agx::Vec3 &  toothDirection,
agx::Real  toothLength 
)

Member Function Documentation

◆ getCustomTeethGeometryHalfVec()

agx::Vec3 agxTerrain::ShovelSettings::getCustomTeethGeometryHalfVec ( ) const

Get the custom tooth geometry box half vector dimensions to be used when generating a custom teeth geometry, if it is enabled.

See also
setEnableCustomTeethGeometry
Returns
the dimensions of the custom teeth geometry box to be used if custom teeth geometry is enabled.

◆ getEnableCustomTeethGeometry()

bool agxTerrain::ShovelSettings::getEnableCustomTeethGeometry ( ) const

Get whenever custom tooth geometry dimensions should be used instead of automatically generating a teeth geometry from the shovel settings.

Also see: setCustomTeethGeometryHalfVec.

Returns
true if custom geometry dimensions should be used, false otherwise. Default: False.

◆ getEnableExcavationAtTeethEdge()

bool agxTerrain::ShovelSettings::getEnableExcavationAtTeethEdge ( ) const
Returns
true if excavation at the teeth edge should be enabled so that digging starts at the teeth edge instead of at the cutting edge, false otherwise.

◆ getEnableGenerateTeethGeometry()

bool agxTerrain::ShovelSettings::getEnableGenerateTeethGeometry ( ) const
Returns
true if teeth geometry should be generated for the shovel, false otherwise.

◆ getEnableParticleFreeDeformers()

bool agxTerrain::ShovelSettings::getEnableParticleFreeDeformers ( ) const
Returns
whether the shovel uses particle free deformations.

◆ getMaxPenetrationForce()

agx::Real agxTerrain::ShovelSettings::getMaxPenetrationForce ( ) const

Set the maximum limit on penetration force (N) that the terrain will generate on this shovel.

(Default: Infinity)

Returns
The maximum penetration force that the terrain will act on this shovel

◆ getNumberOfTeeth()

agx::UInt agxTerrain::ShovelSettings::getNumberOfTeeth ( ) const
Returns
the teeth count of the shovel evenly distributed along the cutting edge. Default: calculated as ceil((cuttingEdge.p2 - cuttingEdge.p1).length() / 0.5).

◆ getPenetrationDepthThreshold()

agx::Real agxTerrain::ShovelSettings::getPenetrationDepthThreshold ( ) const

Get the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness.

The penetration depth is defined as the vertical distance between the tip of a shovel tooth and the surface position of the height field. The penetration resistance will increase from a baseline of 10% until maximum effectiveness is reached when the vertical penetration depth of the shovel reaches the specified value. (Default: 0.5 m)

Returns
the vertical depth penetration threshold that will cause penetration resistance to reach full effectiveness.

◆ getPenetrationForceScaling()

agx::Real agxTerrain::ShovelSettings::getPenetrationForceScaling ( ) const
Returns
the linear scaling coefficient for the penetration force (Default: 1.0)

◆ getToothDirection()

agx::Vec3 agxTerrain::ShovelSettings::getToothDirection ( ) const
Returns
the tooth direction of the shovel. Default: [0, 0, 0].

◆ getToothLength()

agx::Real agxTerrain::ShovelSettings::getToothLength ( ) const
Returns
the tooth length of the shovel. Default: 0.15 m.

◆ getToothMaximumRadius()

agx::Real agxTerrain::ShovelSettings::getToothMaximumRadius ( ) const
Returns
the maximum radius of the shovel teeth. Default: 0.075 m.

◆ getToothMinimumRadius()

agx::Real agxTerrain::ShovelSettings::getToothMinimumRadius ( ) const
Returns
the minimum radius of the shovel teeth. Default: 0.015 m.

◆ getVerticalBladeSoilMergeDistance()

agx::Real agxTerrain::ShovelSettings::getVerticalBladeSoilMergeDistance ( ) const

Get the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to.

Default: 0.0 m.

◆ setCustomTeethGeometryHalfVec()

void agxTerrain::ShovelSettings::setCustomTeethGeometryHalfVec ( const agx::Vec3 &  halfVec)

Set the custom tooth geometry box half vector dimensions to be used when generating a custom teeth geometry, if it is enabled.

See also
setEnableCustomTeethGeometry
Parameters
halfVec- The dimensions of the custom teeth geometry box to be used if custom teeth geometry is enabled.

◆ setEnableCustomTeethGeometry()

void agxTerrain::ShovelSettings::setEnableCustomTeethGeometry ( bool  enable)

Set whenever custom tooth geometry dimensions should be used instead of automatically generating a teeth geometry from the shovel settings.

Also see: setCustomTeethGeometryHalfVec.

Parameters
enable- True if custom geometry dimensions should be used, false otherwise. Default: False.

◆ setEnableExcavationAtTeethEdge()

void agxTerrain::ShovelSettings::setEnableExcavationAtTeethEdge ( bool  enable)

Set whenever a excavation at the teeth edge should be enabled so that digging starts at the teeth edge instead of at the cutting edge.

Parameters
enable- true if excavation at the teeth edge should be enabled, false otherwise.
Note
- When excavation at teeth edge is disabled then teeth geometry generation is also disabled.

◆ setEnableGenerateTeethGeometry()

void agxTerrain::ShovelSettings::setEnableGenerateTeethGeometry ( bool  enable)

Set whenever a teeth geometry should be generated between the cutting edge and the teeth edge from the teeth radius and length.

Parameters
enable- true if a teeth geometry should be generated, false otherwise.

◆ setEnableParticleFreeDeformers()

void agxTerrain::ShovelSettings::setEnableParticleFreeDeformers ( bool  enable)

Set true/false if the shovel deformers should make particle free deformations.

(Default: false) Note, if this is true all excavation modes will make particle free deformations. Even if enableCreateDynamicMass is set to false for one or more excavation modes.

Parameters
enable- true if the shovel deformers mode should make particle free deformations.

◆ setMaxPenetrationForce()

void agxTerrain::ShovelSettings::setMaxPenetrationForce ( agx::Real  maxPenetrationForce)

Set a maximum limit on penetration force (N) that the terrain will generate on this shovel.

(Default: Infinity)

Parameters
maxPenetrationForce- The maximum penetration force that the terrain will act on this shovel

◆ setNumberOfTeeth()

void agxTerrain::ShovelSettings::setNumberOfTeeth ( agx::UInt  count)
Parameters
count- new teeth count of shovel. Default: calculated as ceil((cuttingEdge.p2 - cuttingEdge.p1).length() / 0.5).

◆ setPenetrationDepthThreshold()

void agxTerrain::ShovelSettings::setPenetrationDepthThreshold ( agx::Real  depthThreshold)

Set the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness.

The penetration depth is defined as the vertical distance between the tip of a shovel tooth and the surface position of the height field. The penetration resistance will increase from a baseline of 10% until maximum effectiveness is reached when the vertical penetration depth of the shovel reaches the specified value. (Default: 0.5 m)

Parameters
depthThreshold- the vertical pressure threshold that will cause penetration resistance to start.

◆ setPenetrationForceScaling()

void agxTerrain::ShovelSettings::setPenetrationForceScaling ( agx::Real  penetrationForceScaling)

Set the linear scaling coefficient for the penetration force (Default: 1.0)

Parameters
penetrationForceScaling- The coefficient for scaling the penetration force that the terrain will give on this shovel

◆ setToothDirection()

void agxTerrain::ShovelSettings::setToothDirection ( const agx::Vec3 &  toothDirection)

Set the tooth direction of the shovel.

This will affect the direction along which the penetration resistance will act on the shovel body when submerged into the terrain. It will also affect the direction of the generated teeth geometry if it is enabled.

Parameters
toothDirection- The direction of the teeth. Default: [0, 0, 0].

◆ setToothLength()

void agxTerrain::ShovelSettings::setToothLength ( agx::Real  length)
Parameters
length- new tooth length. Default: 0.15 m.

◆ setToothMaximumRadius()

void agxTerrain::ShovelSettings::setToothMaximumRadius ( agx::Real  radius)
Parameters
radius- new maximum radius of the shovel teeth. Default: 0.075 m.

◆ setToothMinimumRadius()

void agxTerrain::ShovelSettings::setToothMinimumRadius ( agx::Real  radius)
Parameters
radius- new minimum radius of the shovel teeth. Default: 0.015 m.

◆ setVerticalBladeSoilMergeDistance()

void agxTerrain::ShovelSettings::setVerticalBladeSoilMergeDistance ( agx::Real  verticalSoilBladeMergeDistance)

Sets the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to.

Default: 0.0 m.


The documentation for this class was generated from the following file: