HDK
|
#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, float lod=1.f) |
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_Vector3Array & | getVertices () const |
const UT_Vector3Array & | getNormals () const |
const UT_Vector3Array & | getBreakpointNormals () 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) |
GU_Path::GU_Path | ( | ) |
GU_Path::~GU_Path | ( | ) |
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 , |
||
float | lod = 1.f |
||
) |
|
inline |
bool GU_Path::getBreakpointTwists | ( | const UT_Vector3Array & | vectors, |
UT_FloatArray & | angles | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
void GU_Path::resamplePath | ( | int | num_of_segments, |
UT_Vector3Array & | joints, | ||
UT_Vector3Array & | normals | ||
) | const |
|
static |