35 class TerrainMaterial;
36 class TerrainToolCollection;
102 ExcavationSettings& getExcavationSettings(ExcavationMode mode);
132 agx::Vec3 getCuttingDirectionWorld()
const;
170 void setExcavationSettings( ExcavationMode mode, ExcavationSettings excavationSettings );
182 void setCuttingEdge(
agx::Line cuttingEdge);
187 void setCuttingDirection(
agx::Vec3 cuttingDirection);
197 void setToothMinimumRadius(
agx::Real radius);
202 void setToothMaximumRadius(
agx::Real radius);
212 void setNoMergeExtensionDistance(
agx::Real extensionDistance);
217 void setMinimumSubmergedContactLengthFraction(
agx::Real minimumSubmergedContactLengthFraction);
222 agx::Plane getCurrentSeparationPlane(
Terrain* terrain, ExcavationMode mode )
const;
227 agx::Real getMinimumSubmergedContactLengthFraction()
const;
232 agx::Real getNoMergeExtensionDistance()
const;
238 void setVerticalBladeSoilMergeDistance(
agx::Real verticalSoilBladeMergeDistance);
245 void setSecondarySeparationDeadloadLimit(
agx::Real secondarySeparationLimit );
251 agx::Real getVerticalBladeSoilMergeDistance()
const;
275 void setPenetrationDepthThreshold(
agx::Real depthThreshold);
299 agx::Real getPenetrationDepthThreshold()
const;
305 void setPenetrationForceScaling(
agx::Real penetrationForceScaling);
310 agx::Real getPenetrationForceScaling()
const;
318 void setEnableParticleFreeDeformers(
bool enable);
323 bool getEnableParticleFreeDeformers()
const;
329 void setAlwaysRemoveShovelContacts(
bool enable);
334 bool getAlwaysRemoveShovelContacts()
const;
340 void setMaxPenetrationForce(
agx::Real maxPenetrationForce);
346 agx::Real getMaxPenetrationForce()
const;
352 agx::Real getSecondarySeparationDeadloadLimit()
const;
386 void setBottomContactThreshold(
agx::Real bottomContactThreshold );
392 agx::Real getBottomContactThreshold()
const;
400 void setEnableInnerShapeCreateDynamicMass(
bool enable );
407 bool getEnableInnerShapeCreateDynamicMass()
const;
414 void setEnable(
bool enable);
420 bool getEnable()
const;
445 void setEnable(
bool enable);
451 void setEnableCreateDynamicMass(
bool enable);
457 void setEnableForceFeedback(
bool enable);
462 bool getEnable()
const;
467 bool getEnableForceFeedback()
const;
472 bool getEnableCreateDynamicMass()
const;
483 ENABLE_CREATE_DYNAMIC_MASS = 1 << 1,
484 ENABLE_FORCE_FEEDBACK = 1 << 2,
486 using Flags = agx::BitState<StateFlags, agx::UInt32>;
518 agx::
Plane& bottomPlane,
519 agx::
Plane& backPlane,
520 agx::
Plane& leftPlane,
521 agx::
Plane& rightPlane);
527 bool isEdgeSubmerged(const agx::
Line& edge, const
Terrain* terrain) const;
529 bool isEdgeSubmergedInSolid(const agx::
Line& edge, const
Terrain* terrain) const;
531 bool isEdgeSubmergedInHeightfield(const agx::
Line& edge, const agxCollide::HeightField* heightfield, const
Terrain* terrain) const;
533 agx::
Real getSubmergedEdgeLength(const agx::
Line& edge, const
Terrain* terrain) const;
535 agx::
Vec3 getCuttingEdgeVelocity();
537 void calculateDeadLoadFraction( const
Terrain* terrain,
541 void setInnerContactArea( agx::
Real contactArea );
543 void setSettingsAreDirty(
bool enable);
545 bool getSettingsAreDirty() const;
547 agx::
Real computeDefaultBottomContactThreshold() const;
576 REMOVE_SHOVEL_CONTACTS = 1 << 1,
578 INNER_SHAPE_CREATE_DYNAMIC_MASS = 1 << 2,
580 ENABLE_PARTICLE_FREE_DEFORMATION = 1 << 3,
583 using Flags = agx::BitState<StateFlags, agx::UInt32>;
agx::Real m_contactThreshold
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
agx::Real m_secondarySeparationDeadLoadLimit
agx::BitState< StateFlags, agx::UInt32 > Flags
agx::Real m_noMergeExtensionDistance
PlaneT< agx::Real > Plane
GLenum GLuint GLenum GLsizei length
#define AGX_DECLARE_POINTER_TYPES(type)
ExcavationMode
Enum for describing the different excavation modes of a shovel: PRIMARY - The primary mode of excavat...
Class representing the mathematical concept of a plane, also called a half- space.
agxCollide::GeometryRefVector m_voxelCollisionGeometries
agx::Real m_minimumSubmergedContactLengthFraction
Base class providing referencing counted objects.
agx::Real m_innerContactArea
Class containing the settings for the different ExcavationModes for a shovel.
agx::Vec3 m_cuttingDirection
SoilPenetrationParameters m_soilPenetrationParameters
std::array< ExcavationSettings, 4 > m_excavationSettings
agx::Real m_toothMaxRadius
#define AGXTERRAIN_EXPORT
The rigid body class, combining a geometric model and a frame of reference.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
agx::Real m_deadLoadFraction
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
AGX_DECLARE_VECTOR_TYPES(ActiveZone)
agx::VectorPOD< GranularBodyPtr > GranularBodyPtrVector
agx::Vector< agx::ref_ptr< Geometry > > GeometryRefVector
agx::RigidBodyObserver m_shovelBody
agx::Real m_verticalSoilBladeMergeDistance
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::Real m_toothMinRadius