AGX Dynamics  2.38.0.2
CachedContact.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 AGX_PHYSICS_GRANULARBODY_CACHEDCONTACT_H
18 #define AGX_PHYSICS_GRANULARBODY_CACHEDCONTACT_H
19 
20 #include <agxData/Type.h>
21 #include <agx/Real.h>
22 #include <agx/Integer.h>
23 // #include <agx/Physics/ParticleEntity.h>
26 #include <agx/SymmetricPair.h>
27 
28 namespace agx
29 {
30  namespace Physics
31  {
32  namespace GranularBody
33  {
35  {
37  {
38  for (size_t i = 0; i < 6; ++i)
39  lambda[i] = 0;
40  }
41 
43  };
44 
46  typedef std::pair<GranularBodyPtr, GeometryPtr> GranularGeometryPair;
47  }
48  }
49 }
50 
51 AGX_TYPE_BINDING(agx::Physics::GranularBody::ContactLambda, "Physics.GranularBody.ContactLambda")
52 AGX_TYPE_BINDING(agx::Physics::GranularBody::GranularGranularPair, "Physics.GranularBody.GranularGranularPair")
53 AGX_TYPE_BINDING(agx::Physics::GranularBody::GranularGeometryPair, "Physics.GranularBody.GranularGeometryPair")
54 
55 
56 #endif /* AGX_PHYSICS_GRANULARBODY_CACHEDCONTACT_H */
agx::SymmetricPair
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a)
Definition: SymmetricPair.h:31
agx::Real32
float Real32
Definition: Real.h:44
agx::Physics::GranularBody::ContactLambda::ContactLambda
ContactLambda()
Definition: CachedContact.h:36
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition: AddedMassInteraction.h:22
SymmetricPair.h
Type.h
Integer.h
GeometryEntity.h
agx::Physics::GranularBody::ContactLambda::lambda
agx::Real32 lambda[6]
Definition: CachedContact.h:42
agx::Physics::GranularBody::ContactLambda
Definition: CachedContact.h:34
agx::Physics::GranularBody::GranularGranularPair
SymmetricPair< GranularBodyPtr > GranularGranularPair
Definition: CachedContact.h:45
AGX_TYPE_BINDING
#define AGX_TYPE_BINDING(_Type, _Name)
Definition: Type.h:179
Real.h
agx::Physics::GranularBody::GranularGeometryPair
std::pair< GranularBodyPtr, GeometryPtr > GranularGeometryPair
Definition: CachedContact.h:46
GranularBodyEntity.h