28 class TerrainToolCollection;
131 const SoilParticlePtrVector& getInnerBodyParticles()
const;
136 const SoilParticlePtrVector& getWedgeBodyParticles()
const;
148 agx::Vec3 getInnerParticleMomentum()
const;
149 agx::Vec3 getInnerParticleAngularMomentum()
const;
152 agx::Vec3 getInnerAngularMomentum()
const;
195 void onEnableChange(
bool enable );
284 void onEnableChange(
bool enable);
303 const SoilParticlePtrVector& soilParticles );
311 VoxelHashSet& voxels );
324 void updatePartitionBodyMomentum(
333 void updateCachedWedgeMomentum();
338 void computeLockViolations();
345 void clearParticles(
size_t reserve );
347 void clearVoxelsAndParticles();
355 void setSinglePartitionMode();
361 void setDeformerWedgeMode();
373 const agx::Vec3& getCuttingVectorFlat()
const;
375 const agx::Vec3& getCutTopVector()
const;
377 const agx::Vec3& getForwardDiggingPlane()
const;
380 return m_wedgePartitions[ index ];
384 return m_wedgePartitions[ index ];
389 return m_wedgePartitions.size();
405 const VoxelHashSet& wedgeVoxels);
407 void updateDynamicProperties(
const SoilParticlePtrVector& soilParticles,
409 VoxelHashSet& voxels,
415 void sortParticlesBySeparatingPlane(
Terrain* terrain,
417 SoilParticlePtrVector& innerParticles,
418 SoilParticlePtrVector& wedgeParticles );
421 SoilParticlePtrVector& innerParticles,
424 SoilParticlePtrVector computeParticlesInWedgeShape(
ActiveZone* activeZone,
425 SoilParticlePtrVector& wedgeParticleCandidates );
429 SoilParticlePtrVector& wedgeParticles,
432 bool isPointAbovePlane(
const agx::Plane& plane,
436 bool isSphereIntersectingPlane(
const agx::Plane& plane,
453 agx::Vec3 m_innerParticleAngularMomentum;
458 SoilParticlePtrVector m_innerParticles;
459 SoilParticlePtrVector m_wedgeParticles;
466 inline bool SoilParticleAggregate::isPointAbovePlane(
const agx::Plane& plane,
475 inline bool SoilParticleAggregate::isSphereIntersectingPlane(
const agx::Plane& plane,
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API...
Pure data class used to hold information about a single partition in the wedge aggregate.
size_t size() const noexcept
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
Pointer to a entity instance of type Physics.GranularBody.
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes...
agx::Physics::GranularBodyPtrVector SoilParticlePtrVector
#define AGX_DECLARE_POINTER_TYPES(type)
agx::Vec3 m_forwardDiggingPlane
Class representing the mathematical concept of a plane, also called a half- space.
agx::Vec3 wedgeBodyAngularMomentum
This class is used to describe the general material properties of the Terrain.
agx::Physics::GranularBodyPtr SoilParticlePtr
Base class providing referencing counted objects.
The geometry representation used by the collision detection engine.
Constraint that removes all 6 DOF between two bodies, or one body and the world.
Class that handles and creates a lumped element approximation of the soil wedge aggregate.
Vector containing 'raw' data.
agx::Vec3 m_cuttingVectorFlat
agx::Vec3 wedgeBodyMomentum
#define AGXTERRAIN_EXPORT
The rigid body class, combining a geometric model and a frame of reference.
Main material class which acts as a holder of a Surface Material and a Bulk material.
std::array< agx::Real, 6 > RealArray
The object defining a frame of reference and providing transformations operations.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
agx::Vec3 lockFramePosition
agx::HashSet< agx::Vec3i > VoxelHashSet
#define AGX_DECLARE_VECTOR_TYPES(type)
agx::RigidBodyRef wedgeBody
SoilParticlePtrVector splitWedgeParticles
std::vector< WedgePartitionData > m_wedgePartitions
T signedDistanceToPoint(const agx::Vec3T< T > &point) const
Calculates the distance from the plane to a point.
agx::Vec3 lockPlaneNormal