AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TrimeshInterpolator.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_TRIMESHINTERPOLATOR_H
18 #define AGXUTIL_TRIMESHINTERPOLATOR_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 
40 
50  static agxCollide::Trimesh* createInterpolationTrimesh(
51  const agxCollide::Trimesh* startTrimesh,
52  const agxCollide::Trimesh* endTrimesh,
53  agx::Real subTime);
54 
63  static agx::Vec3Vector createVelocityVector(
64  const agxCollide::Trimesh* startTrimesh,
65  const agxCollide::Trimesh* endTrimesh,
66  agx::Real duration);
67 
69 
70 
79  static void replaceContactGeometry(
80  agx::RigidBody* newContactBody,
81  const agx::Vec3Vector* velocityVector,
82  agxCollide::GeometryContact* geometryContact,
83  size_t geoToReplace // Index 0 or 1
84  );
86 
87  };
88 }
89 
90 #endif
91 
VectorPOD< Vec3 > Vec3Vector
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
TrimeshInterpolator()
Default constructor.
double Real
Definition: Real.h:42
Triangle mesh for geometric intersection tests.
Definition: Trimesh.h:42
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:101
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:100