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

#include <GU_Feather.h>

Classes

struct  BarbAttribInterpolateTemp
 
struct  BarbInterpCoeffs
 
struct  ShaftData
 

Static Public Member Functions

template<typename WVEC , typename IVEC >
static UT_Tuple< WVEC, IVEC > computeShaftPointCoeffs (int i, int to_ptcount, int from_ptcount)
 
static void populateShaftData (const GEO_PrimPoly &poly, int firstbarbindex, const GA_ROHandleI &firstindexhandle, ShaftData &shaftdata)
 
static void interpolateBarbAttribs (bool use_subd, const GU_Detail &from_detail, GU_Detail &detail, const GA_PrimitiveGroup *group, const UT_Array< GU_Feather::AttribMap > &attribmaps, int shaft_base_segs, const GA_ROHandleI &firstbarb_handle, const GA_ROHandleS &from_side, const GA_ROHandleS &side, const GA_ROHandleF &blendattrib, const GU_FeatherTemplateSet &templateset, const GU_FeatherTemplateInterpolate *templateinterp=nullptr)
 
static void interpolateBarbAttribs (GA_Offset primoff, BarbAttribInterpolateTemp &temp, GA_OffsetArray &source_primoffs, UT_FloatArray &source_primweights, UT_ValArray< bool > &source_flips, UT_Array< BarbInterpCoeffs > &barb_coeffs, bool use_subd, const GU_Detail &from_detail, GU_Detail &detail, const UT_Array< GU_Feather::AttribMap > &attribmaps, int shaft_base_segs, float alpha, const GU_FeatherTemplateSet &templateset)
 
template<typename T >
static void interpolateVSubD (UT_Array< T > &out_values, const GA_OffsetArray &from_ptoffs, const UT_Vector4Array &s_coeffs, const UT_Vector4iArray &s_indices, const GA_ROHandleT< T > &from_attrib)
 
template<typename T , typename WVEC , typename IVEC >
static void interpolateV (GU_FeatherBarbFlat< T > &from_v_values, UT_Array< T > &temp, const GA_OffsetArray &from_ptoffs, const UT_ValArray< WVEC > &s_coeffs, const UT_ValArray< IVEC > &s_indices, const GU_FeatherBarbROHandle< T > &from_attrib)
 
template<typename T >
static void interpolateUSubD (GU_FeatherBarbFlat< T > &attrib_outvalues, int to_ptcount, const GU_FeatherBarbFlat< T > &from_v_values, const BarbInterpCoeffs &barb_coeffs, float weight, bool flip)
 
template<typename WVEC , typename IVEC >
static void computeShaftCoeffs (UT_ValArray< WVEC > &s_coeffs, UT_ValArray< IVEC > &s_indices, const GEO_PrimPoly &poly, int to_firstbarbindex, int to_ptcount, int from_firstbarbpt, int from_ptcount)
 
static void computeBarbInterpCoeffs (int from_barbpts, int to_barbpts, BarbInterpCoeffs &interpdata)
 
static void computeBarbInterpCoeffs (const UT_Array< GU_Feather::AttribMap > &attribmaps, UT_Array< BarbInterpCoeffs > &barb_coeffs)
 
template<typename T , typename WVEC , typename IVEC >
static void interpolate (GU_FeatherBarbFlat< T > &attrib_outvalues, GU_FeatherBarbFlat< T > &from_v_values, UT_Array< T > &temp, const GA_OffsetArray &from_ptoffs, const UT_ValArray< WVEC > &s_coeffs, const UT_ValArray< IVEC > &s_indices, const GU_FeatherBarbROHandle< T > &from_attrib, int to_ptcount, const BarbInterpCoeffs &barb_coeffs, float weight, bool flip)
 
template<typename T >
static void setBarbs (const GU_FeatherBarbFlat< T > &attrib_values, const GA_OffsetArray &to_ptoffs, const GU_FeatherBarbRWHandle< T > &to_attrib)
 
template<typename T >
static void blendBarbs (const GU_FeatherBarbFlat< T > &attrib_values, const GA_OffsetArray &to_ptoffs, const GU_FeatherBarbRWHandle< T > &to_attrib, float alpha)
 

Detailed Description

Definition at line 1051 of file GU_Feather.h.

Member Function Documentation

template<typename T >
static void GU_FeatherBarbInterpolate::blendBarbs ( const GU_FeatherBarbFlat< T > &  attrib_values,
const GA_OffsetArray to_ptoffs,
const GU_FeatherBarbRWHandle< T > &  to_attrib,
float  alpha 
)
static
static void GU_FeatherBarbInterpolate::computeBarbInterpCoeffs ( int  from_barbpts,
int  to_barbpts,
BarbInterpCoeffs interpdata 
)
static
static void GU_FeatherBarbInterpolate::computeBarbInterpCoeffs ( const UT_Array< GU_Feather::AttribMap > &  attribmaps,
UT_Array< BarbInterpCoeffs > &  barb_coeffs 
)
static
template<typename WVEC , typename IVEC >
static void GU_FeatherBarbInterpolate::computeShaftCoeffs ( UT_ValArray< WVEC > &  s_coeffs,
UT_ValArray< IVEC > &  s_indices,
const GEO_PrimPoly poly,
int  to_firstbarbindex,
int  to_ptcount,
int  from_firstbarbpt,
int  from_ptcount 
)
static
template<typename WVEC , typename IVEC >
static UT_Tuple<WVEC, IVEC> GU_FeatherBarbInterpolate::computeShaftPointCoeffs ( int  i,
int  to_ptcount,
int  from_ptcount 
)
static
template<typename T , typename WVEC , typename IVEC >
static void GU_FeatherBarbInterpolate::interpolate ( GU_FeatherBarbFlat< T > &  attrib_outvalues,
GU_FeatherBarbFlat< T > &  from_v_values,
UT_Array< T > &  temp,
const GA_OffsetArray from_ptoffs,
const UT_ValArray< WVEC > &  s_coeffs,
const UT_ValArray< IVEC > &  s_indices,
const GU_FeatherBarbROHandle< T > &  from_attrib,
int  to_ptcount,
const BarbInterpCoeffs barb_coeffs,
float  weight,
bool  flip 
)
static
static void GU_FeatherBarbInterpolate::interpolateBarbAttribs ( bool  use_subd,
const GU_Detail from_detail,
GU_Detail detail,
const GA_PrimitiveGroup group,
const UT_Array< GU_Feather::AttribMap > &  attribmaps,
int  shaft_base_segs,
const GA_ROHandleI firstbarb_handle,
const GA_ROHandleS from_side,
const GA_ROHandleS side,
const GA_ROHandleF blendattrib,
const GU_FeatherTemplateSet templateset,
const GU_FeatherTemplateInterpolate templateinterp = nullptr 
)
static
static void GU_FeatherBarbInterpolate::interpolateBarbAttribs ( GA_Offset  primoff,
BarbAttribInterpolateTemp temp,
GA_OffsetArray source_primoffs,
UT_FloatArray source_primweights,
UT_ValArray< bool > &  source_flips,
UT_Array< BarbInterpCoeffs > &  barb_coeffs,
bool  use_subd,
const GU_Detail from_detail,
GU_Detail detail,
const UT_Array< GU_Feather::AttribMap > &  attribmaps,
int  shaft_base_segs,
float  alpha,
const GU_FeatherTemplateSet templateset 
)
static
template<typename T >
static void GU_FeatherBarbInterpolate::interpolateUSubD ( GU_FeatherBarbFlat< T > &  attrib_outvalues,
int  to_ptcount,
const GU_FeatherBarbFlat< T > &  from_v_values,
const BarbInterpCoeffs barb_coeffs,
float  weight,
bool  flip 
)
static
template<typename T , typename WVEC , typename IVEC >
static void GU_FeatherBarbInterpolate::interpolateV ( GU_FeatherBarbFlat< T > &  from_v_values,
UT_Array< T > &  temp,
const GA_OffsetArray from_ptoffs,
const UT_ValArray< WVEC > &  s_coeffs,
const UT_ValArray< IVEC > &  s_indices,
const GU_FeatherBarbROHandle< T > &  from_attrib 
)
static
template<typename T >
static void GU_FeatherBarbInterpolate::interpolateVSubD ( UT_Array< T > &  out_values,
const GA_OffsetArray from_ptoffs,
const UT_Vector4Array s_coeffs,
const UT_Vector4iArray s_indices,
const GA_ROHandleT< T > &  from_attrib 
)
static
static void GU_FeatherBarbInterpolate::populateShaftData ( const GEO_PrimPoly poly,
int  firstbarbindex,
const GA_ROHandleI firstindexhandle,
ShaftData shaftdata 
)
inlinestatic

Definition at line 1094 of file GU_Feather.h.

template<typename T >
static void GU_FeatherBarbInterpolate::setBarbs ( const GU_FeatherBarbFlat< T > &  attrib_values,
const GA_OffsetArray to_ptoffs,
const GU_FeatherBarbRWHandle< T > &  to_attrib 
)
static

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