AGX Dynamics  2.37.2.0
agxCollide::ContactRegionManager Class Reference

Class for merging contact regions and computing their normals. More...

#include <ContactRegionManager.h>

Public Member Functions

 ContactRegionManager ()
 
size_t finalizeMergeContactRegions (agxData::LocalVector< agx::Int32 > &contactRegions, size_t nrContactRegions)
 Merges contact regions after they have been marked for merging. More...
 
void markContactRegionsForMerge (size_t contactRegionIndex0, size_t contactRegionIndex1)
 Marks two contact regions for having to be merged. More...
 

Static Public Member Functions

static void computeRegressionPlanes (const agxData::LocalVector< agx::Int32 > &regionPerContact, const agxData::LocalVector< agx::Vec3 > &points, const agxData::LocalVector< agx::UInt32 > &nrPointsPerContact, const agxData::LocalVector< agx::UInt32 > &nrPointsBeforeEachContact, size_t nrContactRegions, agx::Vector< RegressionPlane > &regressionPlanes)
 Computes regression planes for several contact regions at once. More...
 

Detailed Description

Class for merging contact regions and computing their normals.

Definition at line 29 of file ContactRegionManager.h.

Constructor & Destructor Documentation

◆ ContactRegionManager()

agxCollide::ContactRegionManager::ContactRegionManager ( )

Member Function Documentation

◆ computeRegressionPlanes()

static void agxCollide::ContactRegionManager::computeRegressionPlanes ( const agxData::LocalVector< agx::Int32 > &  regionPerContact,
const agxData::LocalVector< agx::Vec3 > &  points,
const agxData::LocalVector< agx::UInt32 > &  nrPointsPerContact,
const agxData::LocalVector< agx::UInt32 > &  nrPointsBeforeEachContact,
size_t  nrContactRegions,
agx::Vector< RegressionPlane > &  regressionPlanes 
)
static

Computes regression planes for several contact regions at once.

Parameters
regionPerContactContact region for each triangle contact
pointsAll contact points for all triangle contacts.
nrPointsPerContactHow many points does each triangle contact have?
nrContactRegionsThe number of contact regions.
regressionPlanesThe result: The regression planes will be written here Previous content will be overwritten.
Parameters
regionPerContact

◆ finalizeMergeContactRegions()

size_t agxCollide::ContactRegionManager::finalizeMergeContactRegions ( agxData::LocalVector< agx::Int32 > &  contactRegions,
size_t  nrContactRegions 
)

Merges contact regions after they have been marked for merging.

Parameters
contactRegionsContact region for each triangle contact
nrContactRegionsGives number of contact regions before merge
Return values
Numberof found contact regions after merge

◆ markContactRegionsForMerge()

void agxCollide::ContactRegionManager::markContactRegionsForMerge ( size_t  contactRegionIndex0,
size_t  contactRegionIndex1 
)

Marks two contact regions for having to be merged.

Parameters
contactRegionIndex0Index of first contact region
contactRegionIndex1Index of other contact region

The documentation for this class was generated from the following file: