AGX Dynamics  2.35.0.1
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>
24 #include <agxData/LocalVector.h>
25 
26 namespace agxCollide {
27 
30 
31  public:
32 
34 
42  size_t contactRegionIndex0,
43  size_t contactRegionIndex1);
44 
54  agxData::LocalVector<agx::Int32>& contactRegions,
55  size_t nrContactRegions);
56 
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:
77  };
78 
79 }
80 
81 #endif // AGXCOLLIDE_CONTACT_REGION_MANAGER_H
82 
#define AGXPHYSICS_EXPORT
Class for merging contact regions and computing their normals.
size_t finalizeMergeContactRegions(agxData::LocalVector< agx::Int32 > &contactRegions, size_t nrContactRegions)
Merges contact regions after they have been marked for merging.
void markContactRegionsForMerge(size_t contactRegionIndex0, size_t contactRegionIndex1)
Marks two contact regions for having to be merged.
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.
Local scope vector.
Definition: LocalVector.h:44
Templated vector class.
Definition: agx/Vector.h:53
This namespace consists of a set of classes for handling geometric intersection tests including boole...