AGXDynamics
2.35.0.3
ContactRegionManager.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2022. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#ifndef AGXCOLLIDE_CONTACT_REGION_MANAGER_H
18
#define AGXCOLLIDE_CONTACT_REGION_MANAGER_H
19
20
#include <
agx/agx_vector_types.h
>
21
22
#include <
agx/agxPhysics_export.h
>
23
#include <
agxCollide/RegressionPlane.h
>
24
#include <
agxData/LocalVector.h
>
25
26
namespace
agxCollide
{
27
29
class
AGXPHYSICS_EXPORT
ContactRegionManager
{
30
31
public
:
32
33
ContactRegionManager
();
34
41
void
markContactRegionsForMerge(
42
size_t
contactRegionIndex0,
43
size_t
contactRegionIndex1);
44
53
size_t
finalizeMergeContactRegions(
54
agxData::LocalVector<agx::Int32>
& contactRegions,
55
size_t
nrContactRegions);
56
67
static
void
computeRegressionPlanes (
69
const
agxData::LocalVector<agx::Int32>
& regionPerContact,
70
const
agxData::LocalVector<agx::Vec3>
& points,
71
const
agxData::LocalVector<agx::UInt32>
& nrPointsPerContact,
72
const
agxData::LocalVector<agx::UInt32>
& nrPointsBeforeEachContact,
73
size_t
nrContactRegions,
74
agx::Vector<RegressionPlane>
& regressionPlanes);
75
private
:
76
agxData::LocalVector<agx::UInt32>
m_toMerge;
77
};
78
79
}
80
81
#endif // AGXCOLLIDE_CONTACT_REGION_MANAGER_H
82
agxPhysics_export.h
agx::Vector
Templated vector class.
Definition:
Vector.h:52
agxCollide::ContactRegionManager
Class for merging contact regions and computing their normals.
Definition:
ContactRegionManager.h:29
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxCollide
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Definition:
ContactForceFilterParticipant.h:22
LocalVector.h
agx_vector_types.h
agxData::LocalVector
Local scope vector.
Definition:
LocalVector.h:43
RegressionPlane.h
include
agxCollide
ContactRegionManager.h
Generated on Fri Feb 10 2023 14:06:09 for AGXDynamics by
1.8.17