51 AnyContactTester(
size_t numAppearances = 1) :
52 m_numAppearances(numAppearances)
59 size_t m_numAppearances;
67 size_t numAppearances = 1) :
68 m_normal(normal), m_depth(depth),
69 m_numAppearances(numAppearances)
79 size_t m_numAppearances;
87 NormalTester(
const agx::Vec3& normal,
size_t numAppearances = 1) :
88 m_normal(normal), m_numAppearances(numAppearances)
97 size_t m_numAppearances;
106 NormalDotProductTester(
const agx::Vec3& normal,
agx::Real dotProduct,
size_t numAppearances = 1) :
107 m_normal(normal), m_dotProduct(dotProduct), m_numAppearances(numAppearances)
109 m_normal.normalize();
117 size_t m_numAppearances;
126 m_normal(normal), m_dotProduct(dotProduct)
128 m_normal.normalize();
143 AllSameNormalsTester(
const agx::Vec3& normal) :
146 m_normal.normalize();
170 m_point(point), m_normal(normal), m_depth(depth)
172 m_normal.normalize();
185 class AGXPHYSICS_EXPORT NormalOrOppositeAndDepthContainedTester :
public ContactTester {
188 size_t numAppearances = 1) :
189 m_normal(normal), m_depth(depth),
190 m_numAppearances(numAppearances)
192 m_normal.normalize();
200 size_t m_numAppearances;
205 class AGXPHYSICS_EXPORT OrthoNormalAndDepthContainedTester :
public ContactTester {
208 size_t numAppearances = 1) :
209 m_normal(normal), m_depth(depth),
210 m_numAppearances(numAppearances)
212 m_normal.normalize();
220 size_t m_numAppearances;
229 enum ContactsToTest {TEST_FOR_ONE, TEST_FOR_ALL};
231 MeshTriangleTester( ContactsToTest toTest) :
242 m_triangleNrs.push_back(triangleNr);
243 m_voronoiRegions.push_back(voronoiRegion);
245 m_shapeNumbers.push_back(shapeNr);
254 ContactsToTest m_toTest;
261 const char* groupName,
262 const char* testName,
264 bool onlyForDoublePrecision =
false);
269 const char* groupName,
270 const char* testName,
272 bool onlyForDoublePrecision =
false)
276 return testResting( simulation, bodies, groupName, testName, preTestingTime, onlyForDoublePrecision );
282 const char* groupName,
283 const char* testName,
284 ContactTester* tester,
285 bool onlyForDoublePrecision =
false);
void push_back(const T &value)
This namespace consists of a set of classes for handling geometric intersection tests including boole...
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
Base class providing referencing counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
The rigid body class, combining a geometric model and a frame of reference.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
AGXOSG_EXPORT osg::Group * testResting(agxSDK::Simulation *simulation, agxOSG::ExampleApplication *application, OneBodyRestingScenePtr restingScene, const char *groupName, const char *testName, agx::Real preTestingTime=agx::Real(1))
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()