48 bool combine_argsort =
false);
56 bool combine_argsort =
false);
63 bool combine_argsort =
false);
71 bool combine_argsort =
false);
78 bool combine_argsort =
false);
85 bool combine_argsort =
false);
93 bool combine_argsort =
false);
102 bool combine_argsort =
false);
109 bool combine_argsort =
false);
115 bool descending =
false);
136 return myPos(idx0)[dim] < myPos(idx1)[dim] ? -1 : 1;
138 const float *
getP(
int idx)
const override {
return myPos(idx).vec; }
void setBalancer(ut_KDBalancer balance)
Definition of a geometry attribute.
GU_API void GUargsortReverse(const GA_RWHandleID &indexattrib, const GA_ElementGroup *group=nullptr, bool combine_argsort=false)
GU_SortKDTree(size_t size)
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 GUargsortRandom(const GA_RWHandleID &indexattrib, int seed, bool combine_argsort=false)
void setMaxLeafNodes(int max_leaf_nodes)
IMF_EXPORT IMATH_NAMESPACE::V3f direction(const IMATH_NAMESPACE::Box2i &dataWindow, const IMATH_NAMESPACE::V2f &pixelPosition)
GU_API void GUargsortShift(const GA_RWHandleID &indexattrib, GA_Size shift, const GA_ElementGroup *group=nullptr, bool combine_argsort=false)
void setPos(int idx, const UT_Vector3 &pos)
exint GA_Size
Defines the bit width for index and offset types in GA.
A range of elements in an index-map.
GU_API void GUargsortPointsByVertexOrder(const GA_RWHandleID &indexattrib, const GA_PointGroup *group=nullptr, bool combine_argsort=false)
const int * getIndices() const
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)
GLdouble GLdouble GLint GLint order
GU_API void GUargsortProximity(const GA_RWHandleID &indexattrib, UT_Vector3F &point, const GA_ElementGroup *group=nullptr, bool combine_argsort=false)
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 GUsortAttribute(GA_Attribute *attrib, int component=0, bool descending=false)
Sort a component of an attribute as an array.
int comparePosition(int idx0, int idx1, int dim) const override
exint entries() const
Alias of size(). size() is preferred.
const float * getP(int idx) const override
Return the position associated with the given point.
GU_API void GUargsortSpatial(const GA_RWHandleID &indexattrib, const GA_ElementGroup *group=nullptr, bool combine_argsort=false)