17 #ifndef AGXMODEL_TERRAIN_PARTICLES_H
18 #define AGXMODEL_TERRAIN_PARTICLES_H
29 #define TERRAIN_USE_PARTICLE_SYSTEM 0
31 #if TERRAIN_USE_PARTICLE_SYSTEM
158 void setRadiusIsDirty(
bool dirty );
164 bool m_radiusIsDirty;
262 #if TERRAIN_USE_PARTICLE_SYSTEM
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
ConvexSoil(const agx::Vec3Vector *vertices, const agx::UInt32Vector *indices)
Create a convex body representing digged up soil.
virtual agx::Real getVolume() const override
agx::Real getRadius() const
void setParticleYoungsModulusMultiplier(agx::Real multiplier)
Set how much stiffer the particle Young's modulus to be than the terrain material.
agx::Real getMergeVelocity2() const
bool getRadiusIsDirty() const
agx::UInt32 getParticleUniqueId() const
SoilType
Enum for type of soil.
@ PARTICLE_SYSTEM_PARTICLE
void setMergeVelocity(agx::Real velocity)
Set the merge velocity for soil particles.
agx::Real getCoreRadius() const
agx::Real getVolume() const
void setType(SoilType soilType)
Set the type of soil to be created when it's time to create particles.
void setParticleUniqueId(agx::UInt32 uniqueParticleId)
Set unique Id for soil particles.
void setRadius(agx::Real radius)
Set the soil particle radius.
void setCoreRadius(agx::Real coreRadius)
Set the particle core radius.
agx::Real getParticleYoungsModulusMultiplier() const
agx::Real getAdhesiveOverlap() const
When converting Terrain to particles, we create SoilParticles.
SoilParticle * getParent() const
void setParent(SoilParticle *parent)
Set a parent to the particle in a soil particle contact graph.
virtual agx::Real getVolume() const
SoilParticle(agx::Real radius, ParticleAttributes::SoilType type)
Specifies the type of the SoilParticle.
void setSeedContact()
Set that this particle is a seed.
ParticleAttributes::SoilType m_type
ParticleAttributes::SoilType getType() const
agx::Real getRadius() const
bool getSeedContact() const
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
Smart pointer for handling referenced counted objects.
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
agx::Vector< SoilParticleRef > SoilParticleRefVector
agx::HashVector< size_t, agx::Real > SizeTRealHashVector
agx::Vector< std::pair< agx::Real, size_t > > RealSizeTPairVector
agx::observer_ptr< SoilParticle > SoilParticleObs
agx::Vector< std::pair< agx::Vec2i, ParticleCoordinateHeightData > > Vec2iHeightDataPairVector
agx::Vec3 ParticleCoordinateHeightData
agx::Vector< std::pair< size_t, size_t > > SizeTPairVector
agx::Vector< SoilParticleObs > SoilParticleObsVector
agx::Vector< SoilParticle * > SoilParticlePtrVector
agx::ref_ptr< SoilParticle > SoilParticleRef