PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::TPointSweep3D< Real > Class Template Reference

#include <PrimitiveSweep3D.h>

Public Types

typedef ::dyno::Vector< Real, 2 > Coord2D
 
typedef ::dyno::Vector< Real, 3 > Coord3D
 

Public Member Functions

DYN_FUNC TPointSweep3D (TPoint3D< Real > &start, TPoint3D< Real > &end)
 
DYN_FUNC TPointSweep3D (const TPointSweep3D &point_sweep)
 
DYN_FUNC bool intersect (const TTriangleSweep3D< Real > &triangle_sweep, typename TTriangle3D< Real >::Param &baryc, Real &t, const Real threshold=Real(0.00001)) const
 Calculate the possible intersection for a moving point and a moving triangle. We assume both the point and the triangle move along a straight line. In case both the point and triangle does not move, it return 1 and t = 1.0;.
 
DYN_FUNC TPoint3D< Realinterpolate (Real t) const
 Return the intermediate state for a point.
 

Public Attributes

TPoint3D< Realstart_point
 
TPoint3D< Realend_point
 

Detailed Description

template<typename Real>
class dyno::TPointSweep3D< Real >

Definition at line 22 of file PrimitiveSweep3D.h.

Member Typedef Documentation

◆ Coord2D

template<typename Real>
typedef ::dyno::Vector<Real, 2> dyno::TPointSweep3D< Real >::Coord2D

Definition at line 25 of file PrimitiveSweep3D.h.

◆ Coord3D

template<typename Real>
typedef ::dyno::Vector<Real, 3> dyno::TPointSweep3D< Real >::Coord3D

Definition at line 26 of file PrimitiveSweep3D.h.

Constructor & Destructor Documentation

◆ TPointSweep3D() [1/2]

template<typename Real>
DYN_FUNC dyno::TPointSweep3D< Real >::TPointSweep3D ( TPoint3D< Real > & start,
TPoint3D< Real > & end )

Definition at line 10 of file PrimitiveSweep3D.inl.

Here is the caller graph for this function:

◆ TPointSweep3D() [2/2]

template<typename Real>
DYN_FUNC dyno::TPointSweep3D< Real >::TPointSweep3D ( const TPointSweep3D< Real > & point_sweep)

Definition at line 18 of file PrimitiveSweep3D.inl.

Here is the call graph for this function:

Member Function Documentation

◆ interpolate()

template<typename Real>
DYN_FUNC TPoint3D< Real > dyno::TPointSweep3D< Real >::interpolate ( Real t) const

Return the intermediate state for a point.

Parameters
tA paramenter ranging from 0 to 1
Returns
Intermediate point

Definition at line 59 of file PrimitiveSweep3D.inl.

◆ intersect()

template<typename Real>
DYN_FUNC bool dyno::TPointSweep3D< Real >::intersect ( const TTriangleSweep3D< Real > & triangle_sweep,
typename TTriangle3D< Real >::Param & baryc,
Real & t,
const Real threshold = Real(0.00001) ) const

Calculate the possible intersection for a moving point and a moving triangle. We assume both the point and the triangle move along a straight line. In case both the point and triangle does not move, it return 1 and t = 1.0;.

Parameters
triangle_sweep
t
threshold
Returns
DYN_FUNC intersect

Definition at line 25 of file PrimitiveSweep3D.inl.

Here is the call graph for this function:

Member Data Documentation

◆ end_point

template<typename Real>
TPoint3D<Real> dyno::TPointSweep3D< Real >::end_point

Definition at line 52 of file PrimitiveSweep3D.h.

◆ start_point

template<typename Real>
TPoint3D<Real> dyno::TPointSweep3D< Real >::start_point

Definition at line 51 of file PrimitiveSweep3D.h.


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