17 #ifndef AGX_DEFORMABLEPARTICLEMESH_H
18 #define AGX_DEFORMABLEPARTICLEMESH_H
128 void addJoint(
size_t firstParticle,
size_t secondParticle);
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
void setParticleRadius(agx::Real radius)
Set the radius of all the particles.
void setConstraintSolveType(agx::Constraint::SolveType solveType)
Set the solve type for the distance joints connecting the particles.
void removeParticleGroup(const agx::Name &name)
Remove a collision group from all particles in the mesh.
agx::Vector< agx::UIntVector > getFaces() const
Get the indices of all particles in each face.
void addParticleGroup(agx::UInt32 id)
Add a collision group to all particles in the mesh.
agxUtil::RawMesh * getSourceMesh() const
Get the mesh without deformation.
const agx::RigidBodyRefVector & getParticles() const
Get a list of all the particles in the mesh.
void setParticleMaterial(agx::Material *material)
Set the material of all the particles.
void setMass(agx::Real mass)
Set the properties of the entire mesh.
DeformableParticleMesh(agxUtil::RawMesh *rawMesh)
Create a deformable mesh from the RawMesh specified.
void addParticleGroup(const agx::Name &name)
Add a collision group to all particles in the mesh.
void setConstraintCompliance(agx::Real compliance)
Set the compliance of the distance joints connecting the particles.
const agx::Vector< agx::DistanceJointRef > & getConstraints() const
Get a list of all the joints in the mesh.
void removeParticleGroup(agx::UInt32 id)
Remove a collision group from all particles in the mesh.
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints,...
A class to hold a general represenation of a mesh with arbitrary number of vertices in a face.
SolveType
Specifies in what solvers the constraint will be solved.
Main material class which acts as a holder of a Surface Material and a Bulk material.
Representation of a name string.
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.