35 class TerrainMaterial;
36 class TerrainToolCollection;
132 agx::Vec3 getCuttingDirectionWorld()
const;
157 agx::Real computeCuttingEdgeLength()
const;
187 void setCuttingEdge(
agx::Line cuttingEdge);
192 void setCuttingDirection(
agx::Vec3 cuttingDirection);
202 void setToothMinimumRadius(
agx::Real radius);
207 void setToothMaximumRadius(
agx::Real radius);
217 void setNoMergeExtensionDistance(
agx::Real extensionDistance);
222 void setMinimumSubmergedContactLengthFraction(
agx::Real minimumSubmergedContactLengthFraction);
232 agx::Real getMinimumSubmergedContactLengthFraction()
const;
237 agx::Real getNoMergeExtensionDistance()
const;
243 void setVerticalBladeSoilMergeDistance(
agx::Real verticalSoilBladeMergeDistance);
250 void setSecondarySeparationDeadloadLimit(
agx::Real secondarySeparationLimit );
256 agx::Real getVerticalBladeSoilMergeDistance()
const;
280 void setPenetrationDepthThreshold(
agx::Real depthThreshold);
304 agx::Real getPenetrationDepthThreshold()
const;
310 void setPenetrationForceScaling(
agx::Real penetrationForceScaling);
315 agx::Real getPenetrationForceScaling()
const;
323 void setEnableParticleFreeDeformers(
bool enable);
328 bool getEnableParticleFreeDeformers()
const;
334 void setAlwaysRemoveShovelContacts(
bool enable);
339 bool getAlwaysRemoveShovelContacts()
const;
345 void setMaxPenetrationForce(
agx::Real maxPenetrationForce);
351 agx::Real getMaxPenetrationForce()
const;
357 agx::Real getSecondarySeparationDeadloadLimit()
const;
392 void setContactRegionThreshold(
agx::Real contactRegionThreshold );
401 agx::Real getContactRegionThreshold()
const;
410 void setContactRegionVerticalLimit(
agx::Real verticalLimit );
419 agx::Real getContactRegionVerticalLimit()
const;
427 void setEnableInnerShapeCreateDynamicMass(
bool enable );
434 bool getEnableInnerShapeCreateDynamicMass()
const;
442 void setEnableParticleForceFeedback(
bool enable );
448 bool getEnableParticleForceFeedback();
455 void setEnable(
bool enable);
461 bool getEnable()
const;
470 agx::Real getParticleInclusionMultiplier()
const;
481 void setParticleInclusionMultiplier(
agx::Real radiusMultiplier );
506 void setEnable(
bool enable);
512 void setEnableCreateDynamicMass(
bool enable);
518 void setEnableForceFeedback(
bool enable);
523 bool getEnable()
const;
528 bool getEnableForceFeedback()
const;
533 bool getEnableCreateDynamicMass()
const;
547 ENABLE_CREATE_DYNAMIC_MASS = 1 << 1,
548 ENABLE_FORCE_FEEDBACK = 1 << 2,
550 using Flags = agx::BitState<StateFlags, agx::UInt32>;
593 bool isEdgeSubmergedInSolid(
const agx::Line& edge,
const Terrain* terrain)
const;
601 void correctShovelVectors();
603 void calculateDeadLoadFraction(
const Terrain* terrain,
607 void setInnerContactArea(
agx::Real contactArea );
609 void setSettingsAreDirty(
bool enable);
611 bool getSettingsAreDirty()
const;
613 agx::Real computeDefaultContactRegionThreshold()
const;
642 REMOVE_SHOVEL_CONTACTS = 1 << 1,
643 INNER_SHAPE_CREATE_DYNAMIC_MASS = 1 << 2,
644 ENABLE_PARTICLE_FREE_DEFORMATION = 1 << 3,
645 ENABLE_PARTICLE_FORCE_FEEDBACK = 1 << 4
647 using Flags = agx::BitState<StateFlags, agx::UInt32>;
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
agx::Real m_contactThreshold
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive...
agx::Real m_particleInclusionMultiplier
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
This namespace consists of a set of classes for handling geometric intersection tests including boole...
agx::Real m_noMergeExtensionDistance
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes...
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
Vector containing 'raw' data.
std::array< ExcavationSettings, 4 > m_excavationSettings
agx::Real m_toothMaxRadius
agx::Real m_verticalContactThreshold
void restore(agxStream::InputArchive &in)
#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...
Class for writing serialized data in binary format to a stream.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
void store(agxStream::OutputArchive &out) const
#define AGX_DECLARE_VECTOR_TYPES(type)
agx::RigidBodyObserver m_shovelBody
agx::Real m_verticalSoilBladeMergeDistance
A HeightField is a collision shape that can be created from a grid structure, like an image...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGX_DECLARE_POINTER_TYPES(SpaceListener)
agx::Real m_toothMinRadius