AGX Dynamics 2.41.1.2
Loading...
Searching...
No Matches
agxUtil::TrimeshInterpolator Class Reference

#include <TrimeshInterpolator.h>

Public Member Functions

 TrimeshInterpolator ()
 Default constructor.
 
 ~TrimeshInterpolator ()
 

Static Public Member Functions

static agxCollide::TrimeshcreateInterpolationTrimesh (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 mesh.
 

Detailed Description

Definition at line 33 of file TrimeshInterpolator.h.

Constructor & Destructor Documentation

◆ TrimeshInterpolator()

agxUtil::TrimeshInterpolator::TrimeshInterpolator ( )
inline

Default constructor.

Definition at line 38 of file TrimeshInterpolator.h.

◆ ~TrimeshInterpolator()

agxUtil::TrimeshInterpolator::~TrimeshInterpolator ( )
inline

Definition at line 39 of file TrimeshInterpolator.h.

Member Function Documentation

◆ createInterpolationTrimesh()

static agxCollide::Trimesh * agxUtil::TrimeshInterpolator::createInterpolationTrimesh ( const agxCollide::Trimesh startTrimesh,
const agxCollide::Trimesh endTrimesh,
agx::Real  subTime 
)
static

Interpolate between two Trimeshes and create a Trimesh shape at an interpolation time.

Parameters
startTrimesh- Mesh at t0
endTrimesh- Mesh at t1
subTimeDecides what interpolation trimesh is created, ~0 = close to start trimesh, ~1 = close to end trimesh, 0.5 right between trimeshes
Returns
interpolated trimesh

◆ createVelocityVector()

static agx::Vec3Vector agxUtil::TrimeshInterpolator::createVelocityVector ( const agxCollide::Trimesh startTrimesh,
const agxCollide::Trimesh endTrimesh,
agx::Real  duration 
)
static

Extracts velocity values from interpolation of mesh and returns a velocity for each vertex on the mesh.

Parameters
durationThe time between the two meshes
startTrimesh- Mesh at t0
endTrimesh- Mesh at t1
Returns
Velocity values in a Vec3Vector

The documentation for this class was generated from the following file: