AGXDynamics  2.35.0.2
ElementaryMultiTangentsContactPoint.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 
17 #pragma once
18 
20 #include <agx/NlmcpCallback.h>
21 
22 namespace agx
23 {
26 
31  {
32  public:
38 
43  void setNumTangents( UInt numTangents );
44 
46 
47  public:
48  virtual void configure( agxCollide::ContactPoint& contactPoint, const InputData& inputData ) override;
49 
50  virtual UInt getJacobian( Jacobian6DOFElement* G, UInt numBlocks, UInt row, GWriteState::Enum writeState ) override;
51 
52  virtual ConstraintNlmcpCallback* getNlCallback() const override;
53 
54  virtual void onPostSolve( agxCollide::ContactPoint& contactPoint, const Real* solution, Real h ) const override;
55 
56  virtual void renderDebug() const override;
57 
58  protected:
60 
62 
63  private:
64  ConstraintNlmcpCallbackRef m_nlCallback;
65  };
66 
71  {
72  public:
79 
84  void setNumTangents( UInt numTangents );
85 
89  UInt getNumTangents() const;
90 
92 
93  public:
94  virtual ElementaryContactPoint* createInstance() override;
95 
96  protected:
98 
100 
101  private:
102  UInt m_numTangents;
103  };
104 }
agx::ElementaryMultiTangentsContactPointFactory
Factory for the ElementaryMultiTangentsContactPoint contact model.
Definition: ElementaryMultiTangentsContactPoint.h:70
agx::Real
double Real
Definition: Real.h:42
agx::Jacobian6DOFElementT
Definition: Jacobian.h:104
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
agxCollide::ContactPoint
A contact point in a contact data.
Definition: Contacts.h:55
agx::ElementaryContactPointFactory
Interface factory for custom contact point constraint implementations.
Definition: ElementaryContactPoint.h:220
agx::ElementaryMultiTangentsContactPoint
Elementary contact point supporting N >= 0 tangents.
Definition: ElementaryMultiTangentsContactPoint.h:30
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition: AddedMassInteraction.h:22
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agx::ElementaryContactPoint
Base class of custom implementations of contact point constraints.
Definition: ElementaryContactPoint.h:41
agx::ref_ptr< ConstraintNlmcpCallback >
agx::ConstraintNlmcpCallback
Constraint solver callback interface with context and start rows for context.
Definition: NlmcpCallback.h:246
NlmcpCallback.h
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agx::UInt
uint32_t UInt
Definition: Integer.h:34
agx::ElementaryContactPoint::InputData
Input data of the geometry contact, which is constant for all contact points.
Definition: ElementaryContactPoint.h:48
ElementaryContactPoint.h