AGXDynamics  2.35.0.3
TrimeshDeformer.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. 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 AGXUTIL_TRIMESHDEFORMER_H
18 #define AGXUTIL_TRIMESHDEFORMER_H
19 
20 #include <agx/agx.h>
21 #include <agxUtil/agxUtil.h>
22 
23 namespace agxCollide {
24  class Trimesh;
25 }
26 
27 namespace agxUtil {
28 
34  {
35  public:
36 
42  agxCollide::Geometry* trimeshGeometry);
43 
67  bool activateDualFrameInterapolation( agx::Frame* interpolationFrame1,
68  agx::Frame* interpolationFrame2,
69  agx::Vec3 localMeshDir);
70 
74  void update();
75 
76  void last(const agx::TimeStamp&);
77 
81  agxCollide::Geometry* getGeometry();
82 
86  agxCollide::Trimesh* getTrimesh();
87 
91  bool isValid() const;
92 
98  void setEnableUpdateCollisionGeometry(bool enable);
99 
105  bool getEnableUpdateCollisionGeometry() const;
106 
108 
109 
110  protected:
111  TrimeshDeformer();
112  virtual ~TrimeshDeformer();
113 
114  void updateDualFrameInterpolation();
126 
127  };
128 }
129 
130 #endif
131 
agxUtil::TrimeshDeformer
Definition: TrimeshDeformer.h:33
agx::Real
double Real
Definition: Real.h:42
agxSDK::StepEventListener
Derive from this class to implement a listener for simulation step events.
Definition: StepEventListener.h:37
agxUtil::TrimeshDeformer::m_enableUpdate
bool m_enableUpdate
Definition: TrimeshDeformer.h:121
agx::AffineMatrix4x4T< Real >
agxUtil::TrimeshDeformer::m_verticesRelative1
agx::Vec3Vector m_verticesRelative1
Definition: TrimeshDeformer.h:124
agxUtil::TrimeshDeformer::m_trimeshGeometry
agxCollide::GeometryObserver m_trimeshGeometry
Definition: TrimeshDeformer.h:116
AGXSTREAM_DECLARE_SERIALIZABLE
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
agx::VectorPOD< Vec3 >
agx::observer_ptr< Trimesh >
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agx::ref_ptr< Frame >
agxUtil::TrimeshDeformer::m_fullInterpolationLength
agx::Real m_fullInterpolationLength
Definition: TrimeshDeformer.h:119
agxCollide::Geometry
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
agx.h
agxUtil::TrimeshDeformer::m_trimesh
agxCollide::TrimeshObserver m_trimesh
Definition: TrimeshDeformer.h:115
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agxUtil::TrimeshDeformer::m_originalVertices
agx::Vec3Vector m_originalVertices
Definition: TrimeshDeformer.h:123
agxCollide
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Definition: ContactForceFilterParticipant.h:22
agx::TimeStamp
agx::Real TimeStamp
Definition: TimeStamp.h:26
agxUtil::TrimeshDeformer::m_localMeshNormal
agx::Vec3 m_localMeshNormal
Definition: TrimeshDeformer.h:120
agxUtil::TrimeshDeformer::m_interpolationFrame1
agx::FrameRef m_interpolationFrame1
Definition: TrimeshDeformer.h:117
agx::Vec3T< Real >
agxCollide::Trimesh
Triangle mesh for geometric intersection tests.
Definition: Trimesh.h:42
agxUtil::TrimeshDeformer::m_verticesRelative2
agx::Vec3Vector m_verticesRelative2
Definition: TrimeshDeformer.h:125
agx::Frame
The object defining a frame of reference and providing transformations operations.
Definition: Frame.h:67
agxUtil::TrimeshDeformer::m_interpolationFrame2
agx::FrameRef m_interpolationFrame2
Definition: TrimeshDeformer.h:118
agxUtil
The agxUtil namespace contain classes and methods for utility functionality.
Definition: CylindricalJoint.h:22
agxUtil::TrimeshDeformer::m_localFrame1VertexRotation
agx::AffineMatrix4x4 m_localFrame1VertexRotation
Definition: TrimeshDeformer.h:122
agxUtil.h