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;
114 agx::Real getDeformerActivationSpeed()
const;
119 agx::Real getSoilParticleGrowthRate()
const;
126 bool getEnableCreateDynamicMass()
const;
133 void setSoilMergeSpeedThreshold(
agx::Real speedThreshold);
141 void setSoilParticleMergeRate(
agx::Real mergeRate );
147 agx::Real getSoilParticleMergeRate()
const;
156 void setSoilParticleMergeThreshold(
agx::Real radiusFraction );
162 agx::Real getSoilParticleMergeThreshold()
const;
169 void setSoilParticleLifeTime(
agx::Real lifeTime);
177 void setAvalancheDecayFraction(
agx::Real decayFraction);
183 void setAvalancheMaxHeightGrowth(
agx::Real maxHeightGrowth);
190 void setAvalancheErrorThreshold(
agx::Real errorThreshold );
196 void setCreateParticles(
bool enable);
202 void setEnableSoilCompaction(
bool enable);
208 void setDeleteSoilParticlesOutsideBounds(
bool enable);
215 void setEnableLockedBorders(
bool enable);
221 void setEnableAvalanching(
bool enable);
227 void setSoilParticleGrowthRate(
agx::Real growthRateFactor );
247 void setPenetrationForceVelocityScaling(
agx::Real penetrationForceVelocityScaling);
253 void setMaximumParticleActivationVolume(
agx::Real volume);
260 void setEnableCreateDynamicMass(
bool enable );
268 void setDeformerActivationSpeed(
agx::Real activationSpeed );
273 float getSoilParticleSizeScaling();
281 void setSoilParticleSizeScaling(
float scalingFactor);
286 bool isDirty()
const;
292 void setDirty(
bool isDirty);
309 LOCKED_BORDERS = 1 << 0,
310 CREATE_PATICLES = 1 << 1,
311 DELETE_PARTICLES_OUTSIDE_BOUNDS = 1 << 2,
312 ENABLE_SOIL_COMPACTION = 1 << 3,
313 ENABLE_AVALANCHING = 1 << 4,
314 ENABLE_DYNAMIC_MASS = 1 << 5,
316 using Flags = agx::BitState<StateFlags, agx::UInt32>;
322 agx::Real m_penetrationForceVelocityScaling;
327 std::array<agx::Real, 6> m_soilAggregateCompliance;
332 float m_particleSizeScaling;
341 return m_flags.Is(StateFlags::LOCKED_BORDERS);
348 return m_avalancheMaxHeightGrowth;
355 return m_avalancheDecayFraction;
362 return m_flags.Is(StateFlags::DELETE_PARTICLES_OUTSIDE_BOUNDS);
369 return m_penetrationForceVelocityScaling;
376 return m_maximumActivationVolume;
383 return m_soilAggregateCompliance[dof];
390 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.
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 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