AGX Dynamics  2.35.0.1
TrimeshInterpolator.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 #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 
51  const agxCollide::Trimesh* startTrimesh,
52  const agxCollide::Trimesh* endTrimesh,
53  agx::Real subTime);
54 
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 
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
#define AGXPHYSICS_EXPORT
Triangle mesh for geometric intersection tests.
Definition: Trimesh.h:43
TrimeshInterpolator()
Default constructor.
static agxCollide::Trimesh * createInterpolationTrimesh(const agxCollide::Trimesh *startTrimesh, const agxCollide::Trimesh *endTrimesh, agx::Real subTime)
Interpolate between two Trimeshes and create a Trimesh shape at an interpolation time.
static agx::Vec3Vector createVelocityVector(const agxCollide::Trimesh *startTrimesh, const agxCollide::Trimesh *endTrimesh, agx::Real duration)
Extracts velocity values from interpolation of mesh and returns a velocity for each vertex on the mes...
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agxUtil namespace contain classes and methods for utility functionality.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
VectorPOD< Vec3 > Vec3Vector
double Real
Definition: Real.h:42