19 #include <agx/config/AGX_USE_AGXTERRAIN.h> 38 agx::Real getSoilMergeSpeedThreshold()
const;
44 bool getEnableLockedBorders()
const;
49 bool getEnableSoilCompaction()
const;
54 bool getEnableAvalanching()
const;
59 bool getDeleteSoilParticlesOutsideBounds()
const;
64 agx::Real getSoilParticleLifeTime()
const;
70 agx::Real getPenetrationForceVelocityScaling()
const;
75 agx::Real getAvalancheMaxHeightGrowth()
const;
81 agx::Real getAvalancheDecayFraction()
const;
87 agx::Real getAvalancheErrorThreshold()
const;
103 bool getCreateParticles()
const;
108 agx::Real getMaximumParticleActivationVolume()
const;
119 agx::Real getSoilParticleGrowthRate()
const;
126 bool getEnableCreateDynamicMass()
const;
132 bool getEnableDeformation()
const;
139 void setSoilMergeSpeedThreshold(
agx::Real speedThreshold);
147 void setSoilParticleMergeRate(
agx::Real mergeRate );
153 agx::Real getSoilParticleMergeRate()
const;
162 void setSoilParticleMergeThreshold(
agx::Real radiusFraction );
168 agx::Real getSoilParticleMergeThreshold()
const;
175 void setSoilParticleLifeTime(
agx::Real lifeTime);
183 void setAvalancheDecayFraction(
agx::Real decayFraction);
189 void setAvalancheMaxHeightGrowth(
agx::Real maxHeightGrowth);
196 void setAvalancheErrorThreshold(
agx::Real errorThreshold );
202 void setCreateParticles(
bool enable);
208 void setEnableSoilCompaction(
bool enable);
214 void setDeleteSoilParticlesOutsideBounds(
bool enable);
221 void setEnableLockedBorders(
bool enable);
227 void setEnableAvalanching(
bool enable);
233 void setSoilParticleGrowthRate(
agx::Real growthRateFactor );
253 void setPenetrationForceVelocityScaling(
agx::Real penetrationForceVelocityScaling);
259 void setMaximumParticleActivationVolume(
agx::Real volume);
266 void setEnableCreateDynamicMass(
bool enable );
274 void setEnableDeformation(
bool enable );
282 void setActivationSpeed(
agx::Real activationSpeed );
287 float getSoilParticleSizeScaling();
295 void setSoilParticleSizeScaling(
float scalingFactor);
300 bool isDirty()
const;
306 void setDirty(
bool isDirty);
323 LOCKED_BORDERS = 1 << 0,
324 CREATE_PATICLES = 1 << 1,
325 DELETE_PARTICLES_OUTSIDE_BOUNDS = 1 << 2,
326 ENABLE_SOIL_COMPACTION = 1 << 3,
327 ENABLE_AVALANCHING = 1 << 4,
328 ENABLE_DYNAMIC_MASS = 1 << 5,
329 ENABLE_DEFORMATION = 1 << 6,
331 using Flags = agx::BitState<StateFlags, agx::UInt32>;
337 agx::Real m_penetrationForceVelocityScaling;
342 std::array<agx::Real, 6> m_soilAggregateCompliance;
347 float m_particleSizeScaling;
354 return m_flags.Is( StateFlags::ENABLE_DEFORMATION );
359 return m_flags.Is(StateFlags::LOCKED_BORDERS);
366 return m_avalancheMaxHeightGrowth;
373 return m_avalancheDecayFraction;
380 return m_flags.Is(StateFlags::DELETE_PARTICLES_OUTSIDE_BOUNDS);
387 return m_penetrationForceVelocityScaling;
394 return m_maximumActivationVolume;
401 return m_soilAggregateCompliance[dof];
408 return m_flags.Is( StateFlags::ENABLE_DYNAMIC_MASS );
#define AGXTERRAIN_STORE_RESTORE_INTERFACE
agx::Real getMaximumParticleActivationVolume() const
Class for containing and managing the different agxTerrain::Terrain settings.
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes...
bool getEnableLockedBorders() const
#define AGX_DECLARE_POINTER_TYPES(type)
Base class providing referencing counted objects.
agx::Real getAvalancheDecayFraction() const
agx::Real getSoilAggregateLockCompliance(agx::Int dof) const
Set the compliance of the soil aggregate lock joint the local constraint dimensions to relax or incre...
agx::Real getPenetrationForceVelocityScaling() const
#define AGXTERRAIN_EXPORT
bool getEnableCreateDynamicMass() const
bool getEnableDeformation() const
bool getDeleteSoilParticlesOutsideBounds() const
agx::Real getAvalancheMaxHeightGrowth() const
Get the maximum allowed height transfer per time step due to avalanching.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::BitState< StateFlags, agx::UInt32 > Flags