HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GU_Path Class Reference

#include <GU_Path.h>

Public Types

enum  gu_CalcMethod {
  GU_CALC_DEFAULT, GU_CALC_NONE, GU_CALC_QUAT, GU_CALC_TWIST_SHORT,
  GU_CALC_TWIST_FULL
}
 

Public Member Functions

 GU_Path ()
 
 ~GU_Path ()
 
bool computePathFromCurve (const GU_Detail *curve, const UT_DMatrix4 &mat, gu_CalcMethod normal_comp_type=GU_CALC_DEFAULT, int prim_num=0)
 
bool computeNaturalPathFromCurve (const GU_Detail *curve, const UT_Vector3 &normal, int cv_index=0)
 
void resamplePath (int num_of_segments, UT_Vector3Array &joints, UT_Vector3Array &normals) const
 
bool getBreakpointTwists (const UT_Vector3Array &vectors, UT_FloatArray &angles)
 
const UT_Vector3ArraygetVertices () const
 
const UT_Vector3ArraygetNormals () const
 
const UT_Vector3ArraygetBreakpointNormals () const
 
bool isClosed () const
 
UT_Vector3 getHeadTangent () const
 
UT_Vector3 getTailTangent () const
 

Static Public Member Functions

static UT_Vector3 slerp (const UT_Vector3 &v0, const UT_Vector3 &v1, double t)
 

Detailed Description

Definition at line 52 of file GU_Path.h.

Member Enumeration Documentation

Enumerator
GU_CALC_DEFAULT 
GU_CALC_NONE 
GU_CALC_QUAT 
GU_CALC_TWIST_SHORT 
GU_CALC_TWIST_FULL 

Definition at line 57 of file GU_Path.h.

Constructor & Destructor Documentation

GU_Path::GU_Path ( )
GU_Path::~GU_Path ( )

Member Function Documentation

bool GU_Path::computeNaturalPathFromCurve ( const GU_Detail curve,
const UT_Vector3 normal,
int  cv_index = 0 
)
bool GU_Path::computePathFromCurve ( const GU_Detail curve,
const UT_DMatrix4 mat,
gu_CalcMethod  normal_comp_type = GU_CALC_DEFAULT,
int  prim_num = 0 
)
const UT_Vector3Array& GU_Path::getBreakpointNormals ( ) const
inline

Definition at line 158 of file GU_Path.h.

bool GU_Path::getBreakpointTwists ( const UT_Vector3Array vectors,
UT_FloatArray angles 
)
UT_Vector3 GU_Path::getHeadTangent ( ) const
inline

Definition at line 170 of file GU_Path.h.

const UT_Vector3Array& GU_Path::getNormals ( ) const
inline

Definition at line 152 of file GU_Path.h.

UT_Vector3 GU_Path::getTailTangent ( ) const
inline

Definition at line 176 of file GU_Path.h.

const UT_Vector3Array& GU_Path::getVertices ( ) const
inline

Definition at line 146 of file GU_Path.h.

bool GU_Path::isClosed ( ) const
inline

Definition at line 164 of file GU_Path.h.

void GU_Path::resamplePath ( int  num_of_segments,
UT_Vector3Array joints,
UT_Vector3Array normals 
) const
static UT_Vector3 GU_Path::slerp ( const UT_Vector3 v0,
const UT_Vector3 v1,
double  t 
)
static

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