HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Sort.h File Reference
#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>
+ Include dependency graph for GU_Sort.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...
 

Function Documentation

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

See Also
GU_Detail::sortElements()
GU_API void GUargsortElements ( const GA_RWHandleID indexattib,
GU_AxisType  axis,
const GA_ElementGroup group = nullptr,
bool  combine_argsort = false 
)

Axis argsort

See Also
GU_Detail::sortPoints()
GU_API void GUargsortPointsByVertexOrder ( const GA_RWHandleID indexattrib,
const GA_PointGroup group = nullptr,
bool  combine_argsort = false 
)

Vertex argsort

See Also
GU_Detail::vertexOrder()
GU_API void GUargsortProximity ( const GA_RWHandleID indexattrib,
UT_Vector3F point,
const GA_ElementGroup group = nullptr,
bool  combine_argsort = false 
)

Proximity argsort

See Also
GU_Detail::proximityPoints()
GU_API void GUargsortRandom ( const GA_RWHandleID indexattrib,
int  seed,
bool  combine_argsort = false 
)

Random argsort

See Also
GU_Detail::sortPoints()
GU_API void GUargsortReverse ( const GA_RWHandleID indexattrib,
const GA_ElementGroup group = nullptr,
bool  combine_argsort = false 
)

Reverse argsort

See Also
GU_Detail::reversePoints()
GU_API void GUargsortShift ( const GA_RWHandleID indexattrib,
GA_Size  shift,
const GA_ElementGroup group = nullptr,
bool  combine_argsort = false 
)

Shift argsort

See Also
GU_Detail::shiftPoints()
GU_API void GUargsortSpatial ( const GA_RWHandleID indexattrib,
const GA_ElementGroup group = nullptr,
bool  combine_argsort = false 
)

Spatial argsort

See Also
GU_Detail::sortPointsSpatial()
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

See Also
GU_Detail::sortPoints()
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.