AGX Dynamics 2.41.1.2
Loading...
Searching...
No Matches
TrimeshInterpolator.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx 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
23namespace agxCollide {
24 class Trimesh;
25}
26
27namespace 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:254
#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:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
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.
double Real
Definition: Real.h:42