HDK
|
#include <UT/UT_KDTree.h>
#include <UT/UT_Vector3.h>
#include <UT/UT_VectorTypes.h>
#include <GA/GA_Handle.h>
#include <GA/GA_Range.h>
#include <GA/GA_Types.h>
Go to the source code of this file.
Classes | |
class | GU_SortKDTree |
Functions | |
GU_API void | GUenumerateElements (const GA_RWHandleID &indexattrib, const GA_Range &range) |
Set the indexattrib value of each element in the range to its GA_Index. More... | |
GU_API void | GUenumerateElements (const GA_RWHandleID &indexattrib, const GA_ElementGroup *group=nullptr) |
Set the indexattrib value of each element in the group to its GA_Index. More... | |
GU_API void | GUargsortElements (const GA_RWHandleID &indexattrib, const GA_Attribute *order, int component=0, const GA_ElementGroup *group=nullptr, bool combine_argsort=false) |
GU_API void | GUargsortElements (const GA_RWHandleID &indexattib, GU_AxisType axis, const GA_ElementGroup *group=nullptr, bool combine_argsort=false) |
GU_API void | GUargsortRandom (const GA_RWHandleID &indexattrib, int seed, bool combine_argsort=false) |
GU_API void | GUargsortShift (const GA_RWHandleID &indexattrib, GA_Size shift, const GA_ElementGroup *group=nullptr, bool combine_argsort=false) |
GU_API void | GUargsortReverse (const GA_RWHandleID &indexattrib, const GA_ElementGroup *group=nullptr, bool combine_argsort=false) |
GU_API void | GUargsortSpatial (const GA_RWHandleID &indexattrib, const GA_ElementGroup *group=nullptr, bool combine_argsort=false) |
GU_API void | GUargsortProximity (const GA_RWHandleID &indexattrib, UT_Vector3F &point, const GA_ElementGroup *group=nullptr, bool combine_argsort=false) |
GU_API void | GUargsortVector (const GA_RWHandleID &indexattrib, const UT_Vector3F &origin, const UT_Vector3F &direction, const GA_ElementGroup *group=nullptr, bool combine_argsort=false) |
GU_API void | GUargsortPointsByVertexOrder (const GA_RWHandleID &indexattrib, const GA_PointGroup *group=nullptr, bool combine_argsort=false) |
GU_API void | GUsortAttribute (GA_Attribute *attrib, int component=0, bool descending=false) |
Sort a component of an attribute as an array. More... | |
GU_API void GUargsortElements | ( | const GA_RWHandleID & | indexattrib, |
const GA_Attribute * | order, | ||
int | component = 0 , |
||
const GA_ElementGroup * | group = nullptr , |
||
bool | combine_argsort = false |
||
) |
Argsort implementations of GU_Detail's sorting routines. Each fills the provided indexattrib with the sorted indices. Elements excluded from the group are set to their current GA_Index.
If combine_argsort is set to true, the existing indexattrib indices are used for argsorting.Attribute argsort
GU_API void GUargsortElements | ( | const GA_RWHandleID & | indexattib, |
GU_AxisType | axis, | ||
const GA_ElementGroup * | group = nullptr , |
||
bool | combine_argsort = false |
||
) |
Axis argsort
GU_API void GUargsortPointsByVertexOrder | ( | const GA_RWHandleID & | indexattrib, |
const GA_PointGroup * | group = nullptr , |
||
bool | combine_argsort = false |
||
) |
Vertex argsort
GU_API void GUargsortProximity | ( | const GA_RWHandleID & | indexattrib, |
UT_Vector3F & | point, | ||
const GA_ElementGroup * | group = nullptr , |
||
bool | combine_argsort = false |
||
) |
Proximity argsort
GU_API void GUargsortRandom | ( | const GA_RWHandleID & | indexattrib, |
int | seed, | ||
bool | combine_argsort = false |
||
) |
Random argsort
GU_API void GUargsortReverse | ( | const GA_RWHandleID & | indexattrib, |
const GA_ElementGroup * | group = nullptr , |
||
bool | combine_argsort = false |
||
) |
Reverse argsort
GU_API void GUargsortShift | ( | const GA_RWHandleID & | indexattrib, |
GA_Size | shift, | ||
const GA_ElementGroup * | group = nullptr , |
||
bool | combine_argsort = false |
||
) |
Shift argsort
GU_API void GUargsortSpatial | ( | const GA_RWHandleID & | indexattrib, |
const GA_ElementGroup * | group = nullptr , |
||
bool | combine_argsort = false |
||
) |
Spatial argsort
GU_API void GUargsortVector | ( | const GA_RWHandleID & | indexattrib, |
const UT_Vector3F & | origin, | ||
const UT_Vector3F & | direction, | ||
const GA_ElementGroup * | group = nullptr , |
||
bool | combine_argsort = false |
||
) |
Vector argsort
GU_API void GUenumerateElements | ( | const GA_RWHandleID & | indexattrib, |
const GA_Range & | range | ||
) |
Set the indexattrib value of each element in the range to its GA_Index.
GU_API void GUenumerateElements | ( | const GA_RWHandleID & | indexattrib, |
const GA_ElementGroup * | group = nullptr |
||
) |
Set the indexattrib value of each element in the group to its GA_Index.
GU_API void GUsortAttribute | ( | GA_Attribute * | attrib, |
int | component = 0 , |
||
bool | descending = false |
||
) |
Sort a component of an attribute as an array.