AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
ContactRegionManager.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#ifndef AGXCOLLIDE_CONTACT_REGION_MANAGER_H
18#define AGXCOLLIDE_CONTACT_REGION_MANAGER_H
19
21
24#include <agxData/LocalVector.h>
25
26namespace agxCollide {
27
30
31 public:
32
34
42 size_t contactRegionIndex0,
43 size_t contactRegionIndex1);
44
55 size_t nrContactRegions);
56
69 const agxData::LocalVector<agx::Int32>& regionPerContact,
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.
Only use as member allocated variable.
Definition Value.h:285
Templated vector class.
Definition agx/Vector.h:53
This namespace consists of a set of classes for handling geometric intersection tests including boole...