HDK
|
Classes | |
struct | CurveFrameParms |
Enumerations | |
enum | TangentType { CIRCULAR, SUBD, PREV, NEXT, NONE } |
enum | RotationPer { EDGE, DISTANCE, ATTRIB, FULLEDGES, FULLDISTANCE } |
Functions | |
bool | getPolyProperties (const GEO_Detail *geometry, const GA_OffsetListRef &vertices, exint &nedges, bool &closed, bool &unrolled) |
template<typename T > | |
void | computeCurveTransforms (const GEO_Detail *const geo, const GA_PrimitiveGroup *curve_group, const GA_RWHandleT< UT_Matrix4T< T >> &transform_attrib, const CurveFrameParms< T > &parms) |
SYS_FORCE_INLINE bool | getPolyProperties (const GEO_Detail *geometry, const GA_Offset primoff, exint &nedges, bool &closed, bool &unrolled) |
template<typename T , typename OUTPUT_T , typename FUNCTOR > | |
void | extractAttribFromTransform (GEO_Detail *geo, const GA_PrimitiveGroup *curve_group, const GA_ROHandleT< UT_Matrix4T< T >> &transform_attrib, const GA_RWHandleT< OUTPUT_T > &output_attrib, FUNCTOR &&extract_functor) |
template<int AXIS, typename T , typename OUTPUT_T > | |
void | extractAxisAttrib (GEO_Detail *geo, const GA_PrimitiveGroup *curve_group, const GA_ROHandleT< UT_Matrix4T< T >> &transform_attrib, const GA_RWHandleT< UT_Vector3T< OUTPUT_T >> &axis_attrib) |
This works for AXIS == 0 (x), 1 (y), 2 (z), and 3 (translation). More... | |
Definition at line 85 of file GU_CurveFrame.h.
Definition at line 56 of file GU_CurveFrame.h.
void HDK_Sample::GU_CurveFrame::computeCurveTransforms | ( | const GEO_Detail *const | geo, |
const GA_PrimitiveGroup * | curve_group, | ||
const GA_RWHandleT< UT_Matrix4T< T >> & | transform_attrib, | ||
const CurveFrameParms< T > & | parms | ||
) |
Computes transforms for vertex attribute transform_attrib based on primitives (assumed to be polygon primitives if not NURBS or Bezier) in geo and based on settings in parms.
NOTE: End vertices on unrolled curves are not written-to. Use extractAttribFromTransform to extract values to a more permanent vertex attribute.
This is instantiated for fpreal32 and fpreal64.
Definition at line 1342 of file GU_CurveFrame.C.
void HDK_Sample::GU_CurveFrame::extractAttribFromTransform | ( | GEO_Detail * | geo, |
const GA_PrimitiveGroup * | curve_group, | ||
const GA_ROHandleT< UT_Matrix4T< T >> & | transform_attrib, | ||
const GA_RWHandleT< OUTPUT_T > & | output_attrib, | ||
FUNCTOR && | extract_functor | ||
) |
Definition at line 204 of file GU_CurveFrame.h.
void HDK_Sample::GU_CurveFrame::extractAxisAttrib | ( | GEO_Detail * | geo, |
const GA_PrimitiveGroup * | curve_group, | ||
const GA_ROHandleT< UT_Matrix4T< T >> & | transform_attrib, | ||
const GA_RWHandleT< UT_Vector3T< OUTPUT_T >> & | axis_attrib | ||
) |
This works for AXIS == 0 (x), 1 (y), 2 (z), and 3 (translation).
Definition at line 273 of file GU_CurveFrame.h.
SYS_FORCE_INLINE bool HDK_Sample::GU_CurveFrame::getPolyProperties | ( | const GEO_Detail * | geometry, |
const GA_Offset | primoff, | ||
exint & | nedges, | ||
bool & | closed, | ||
bool & | unrolled | ||
) |
Definition at line 116 of file GU_CurveFrame.h.
bool HDK_Sample::GU_CurveFrame::getPolyProperties | ( | const GEO_Detail * | geometry, |
const GA_OffsetListRef & | vertices, | ||
exint & | nedges, | ||
bool & | closed, | ||
bool & | unrolled | ||
) |
Definition at line 1284 of file GU_CurveFrame.C.