Class for merging contact regions and computing their normals.
More...
#include <ContactRegionManager.h>
Class for merging contact regions and computing their normals.
Definition at line 29 of file ContactRegionManager.h.
◆ ContactRegionManager()
| agxCollide::ContactRegionManager::ContactRegionManager |
( |
| ) |
|
◆ computeRegressionPlanes()
Computes regression planes for several contact regions at once.
- Parameters
-
| regionPerContact | Contact region for each triangle contact |
| points | All contact points for all triangle contacts. |
| nrPointsPerContact | How many points does each triangle contact have? |
| nrContactRegions | The number of contact regions. |
| regressionPlanes | The result: The regression planes will be written here Previous content will be overwritten. |
- Parameters
-
◆ finalizeMergeContactRegions()
Merges contact regions after they have been marked for merging.
- Parameters
-
| contactRegions | Contact region for each triangle contact |
| nrContactRegions | Gives number of contact regions before merge |
- Return values
-
| Number | of 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
-
| contactRegionIndex0 | Index of first contact region |
| contactRegionIndex1 | Index of other contact region |
The documentation for this class was generated from the following file: