|
AGX Dynamics
2.37.3.2
|
Internal class that is used to create new geometry contacts between the terrain and the colliding objects. More...
#include <TerrainContactGenerator.h>
Inheritance diagram for agxTerrain::TerrainContactGenerator::ContactReplacer:Public Member Functions | |
| ContactReplacer (Terrain *terrain) | |
| Default constructor. More... | |
| void | clearContactMaterialPool () |
| Empties the ContactMaterial pool. More... | |
| agx::ContactMaterial * | createContactMaterial (const agx::ContactMaterial *originalCM) |
| Generate a new contact material based on a new young's modulus computed from voxel compaction. More... | |
| agxCollide::LocalGeometryContact | createGeometryContact (agxCollide::Geometry *g1, agxCollide::Geometry *g2, const agx::Vec3 &point, const agx::Vec3f &normal, agx::Real depth, agx::Real pointArea, agx::ContactMaterial *cm) |
| agxCollide::LocalGeometryContact | createGeometryContactFromPoint (const agxCollide::GeometryContact *parentGeometryContact, const agxCollide::ContactPoint *cp, const agx::ContactMaterial *contactContactMaterial, const agx::ContactMaterial *voxelContactMaterial) |
| Create a new geometry contact from a contact point in an old geometry contact. More... | |
| agxCollide::LocalGeometryContactVector | generateTerrainGeometryContacts (const agxCollide::GeometryContactPtrVector &geometryContacts) |
| Generate new geometry contacts from each contact point in the old geometry contacts. More... | |
| agx::Real | getModifiedYoungsModuls (const agx::Vec3 &position, const agx::ContactMaterial *existingContactMaterial) const |
| Get modified Young's Modulus from depending on the compaction of the voxel of the specified position. More... | |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Protected Member Functions | |
| virtual | ~ContactReplacer () |
| Reference counted object - protected destructor. More... | |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Additional Inherited Members | |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Internal class that is used to create new geometry contacts between the terrain and the colliding objects.
Generate new geometry contacts from each contact point in the old geometry contacts. These new geometry contacts have a modified Young's modulus based om the voxel compaction in the contact point position.
Definition at line 165 of file TerrainContactGenerator.h.
| agxTerrain::TerrainContactGenerator::ContactReplacer::ContactReplacer | ( | Terrain * | terrain | ) |
Default constructor.
|
protectedvirtual |
Reference counted object - protected destructor.
| void agxTerrain::TerrainContactGenerator::ContactReplacer::clearContactMaterialPool | ( | ) |
Empties the ContactMaterial pool.
| agx::ContactMaterial* agxTerrain::TerrainContactGenerator::ContactReplacer::createContactMaterial | ( | const agx::ContactMaterial * | originalCM | ) |
Generate a new contact material based on a new young's modulus computed from voxel compaction.
| agxCollide::LocalGeometryContact agxTerrain::TerrainContactGenerator::ContactReplacer::createGeometryContact | ( | agxCollide::Geometry * | g1, |
| agxCollide::Geometry * | g2, | ||
| const agx::Vec3 & | point, | ||
| const agx::Vec3f & | normal, | ||
| agx::Real | depth, | ||
| agx::Real | pointArea, | ||
| agx::ContactMaterial * | cm | ||
| ) |
| agxCollide::LocalGeometryContact agxTerrain::TerrainContactGenerator::ContactReplacer::createGeometryContactFromPoint | ( | const agxCollide::GeometryContact * | parentGeometryContact, |
| const agxCollide::ContactPoint * | cp, | ||
| const agx::ContactMaterial * | contactContactMaterial, | ||
| const agx::ContactMaterial * | voxelContactMaterial | ||
| ) |
Create a new geometry contact from a contact point in an old geometry contact.
| agxCollide::LocalGeometryContactVector agxTerrain::TerrainContactGenerator::ContactReplacer::generateTerrainGeometryContacts | ( | const agxCollide::GeometryContactPtrVector & | geometryContacts | ) |
Generate new geometry contacts from each contact point in the old geometry contacts.
These new geometry contacts have a modified Young's modulus based om the voxel compaction in the contact point position.
| agx::Real agxTerrain::TerrainContactGenerator::ContactReplacer::getModifiedYoungsModuls | ( | const agx::Vec3 & | position, |
| const agx::ContactMaterial * | existingContactMaterial | ||
| ) | const |
Get modified Young's Modulus from depending on the compaction of the voxel of the specified position.
| position | - The world position. |
| existingContactMaterial | - the existing contact material. |