AGX Dynamics  2.35.0.1
ContactReducer.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 #ifndef AGX_CONTACT_REDUCER_H
17 #define AGX_CONTACT_REDUCER_H
18 
19 
20 #include <agxCollide/Contacts.h>
22 
23 #include <agxData/LocalVector.h>
24 
25 namespace agxCollide {
26 
57  public:
58 
75  static size_t reduce(
77  size_t binsPerDimension,
78  const agx::Frame* objectFrame = nullptr,
79  agx::Real positionTolerance = agx::Real(1.0E-6));
80 
97  static size_t reduce(
99  size_t binsPerDimension,
100  const agx::Frame* objectFrame = nullptr,
101  agx::Real positionTolerance = agx::Real(1.0E-6));
102 
120  static size_t reduce(
122  size_t binsPerDimension,
123  const agx::Frame* objectFrame = nullptr,
124  agx::Real positionTolerance = agx::Real(1.0E-6));
125 
126 
127  static size_t reduce(
130  size_t binsPerDimension,
131  const agx::Frame* objectFrame = nullptr,
132  agx::Real positionTolerance = agx::Real(1.0e-6));
133 
134 
151  static size_t reduce(
153  size_t binsPerDimension,
154  const agx::Frame* objectFrame = nullptr,
155  agx::Real positionTolerance = agx::Real(1.0E-6));
156 
173  static size_t reduce(
175  size_t binsPerDimension,
176  const agx::Frame* objectFrame = nullptr,
177  agx::Real positionTolerance = agx::Real(1.0E-6));
178 
195  static size_t reduce(
197  size_t binsPerDimension,
198  const agx::Frame* objectFrame = nullptr,
199  agx::Real positionTolerance = agx::Real(1.0E-6));
200  };
201 }
202 
203 #endif
#define AGXPHYSICS_EXPORT
Class for contact reduction.
static size_t reduce(agx::Vector< agxCollide::LocalContactPoint * > &contactPoints, size_t binsPerDimension, const agx::Frame *objectFrame=nullptr, agx::Real positionTolerance=agx::Real(1.0E-6))
Reduces contacts based on binning in 6 dimensions.
static size_t reduce(agx::Vector< agxCollide::ContactPoint > &contactPoints, size_t binsPerDimension, const agx::Frame *objectFrame=nullptr, agx::Real positionTolerance=agx::Real(1.0E-6))
Reduces contacts based on binning in 6 dimensions.
static size_t reduce(agx::VectorPOD< agxCollide::LocalContactPoint > &contactPoints, size_t binsPerDimension, const agx::Frame *objectFrame=nullptr, agx::Real positionTolerance=agx::Real(1.0E-6))
Reduces contacts based on binning in 6 dimensions.
static size_t reduce(agxData::LocalVector< agxCollide::LocalContactPoint * > &contactPoints, size_t binsPerDimension, const agx::Frame *objectFrame=nullptr, agx::Real positionTolerance=agx::Real(1.0E-6))
Reduces contacts based on binning in 6 dimensions.
static size_t reduce(agx::Vector< agxCollide::ContactPoint * > &contactPoints, size_t binsPerDimension, const agx::Frame *objectFrame=nullptr, agx::Real positionTolerance=agx::Real(1.0E-6))
Reduces contacts based on binning in 6 dimensions.
static size_t reduce(agxData::Array< agxCollide::ContactPoint > &contactPoints, size_t binsPerDimension, const agx::Frame *objectFrame=nullptr, agx::Real positionTolerance=agx::Real(1.0E-6))
Reduces contacts based on binning in 6 dimensions.
static size_t reduce(agxData::LocalVector< agxCollide::LocalContactPoint > &contactPoints, agx::IndexRangeT< size_t > range, size_t binsPerDimension, const agx::Frame *objectFrame=nullptr, agx::Real positionTolerance=agx::Real(1.0e-6))
Type-specific Array used for fast access into the data held by a Buffer.
Definition: Array.h:107
Local scope vector.
Definition: LocalVector.h:44
The object defining a frame of reference and providing transformations operations.
Definition: agx/Frame.h:68
A range of indices.
Definition: IndexRange.h:33
Vector containing 'raw' data.
Definition: agx/Vector.h:246
Templated vector class.
Definition: agx/Vector.h:53
This namespace consists of a set of classes for handling geometric intersection tests including boole...
double Real
Definition: Real.h:42