AGX Dynamics  2.37.3.2
ContactRegionManager.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. 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 
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:
77  };
78 
79 }
80 
81 #endif // AGXCOLLIDE_CONTACT_REGION_MANAGER_H
82 
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Class for merging contact regions and computing their normals.
#define AGXPHYSICS_EXPORT
Templated vector class.
Definition: Vector.h:52
Local scope vector.
Definition: LocalVector.h:43