12 #ifndef __GEO_PointGrid_h__
13 #define __GEO_PointGrid_h__
23 template <
typename INDEX,
typename KEY>
101 if (
fpreal(numGroupPts) / numPts < 0.9)
124 template <
typename INDEX,
typename KEY>
GA_OffsetList * myOffsets
Iteration over a range of elements This class implements a point-in-grid acceleration structure that ...
Iteration over a range of elements.
GA_OffsetListType< GA_Size > GA_OffsetList
GA_OffsetList is a map from index to offset.
GA_Size entries() const overridefinal
Will return the number of primary elements.
UT_PointGrid< GEO_PointGridGDPAccessor< GA_Size, GA_Offset > > GEO_PointGrid
SYS_FORCE_INLINE UT_Vector3 getPos3(GA_Offset ptoff) const
The ptoff passed is the point offset.
exint GA_Size
Defines the bit width for index and offset types in GA.
GA_Size maxKeyValue() const
GEO_PointGrid::queuetype GEO_PointGridQueue
SYS_FORCE_INLINE int64 getMemoryUsage(bool inclusive) const
Report memory usage (includes all shared memory)
void set(FromType index, ToType value)
Set the index to the value.
UT_PointGrid< GEO_PointGridGDPAccessor< int32, uint32 > > GEO_PointGrid32
GA_Range getPointRange(const GA_PointGroup *group=0) const
Get a range of all points in the detail.
const GA_IndexMap & getPointMap() const
UT_Vector3 getPos(indextype idx) const
GA_Iterator begin() const
int64 getMemoryUsage() const
keytype getKey(indextype idx) const
GEO_PointGrid32::queuetype GEO_PointGrid32Queue
~GEO_PointGridGDPAccessor()
GEO_PointGridGDPAccessor(const GEO_Detail *gdp, const GA_PointGroup *ptgrp=NULL)
SYS_FORCE_INLINE bool containsOffset(GA_Offset offset) const
const GA_PointGroup * myPtgrp
static const keytype INVALIDKEY
Invalid key value.
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
void setEntries(FromType sz, bool doresize=true)
SYS_FORCE_INLINE ToType get(FromType index) const
Get the the value at the index.
SYS_FORCE_INLINE GA_Offset pointOffset(GA_Index index) const
Given a point's index (in append order), return its data offset.
SYS_FORCE_INLINE GA_Offset offsetSize() const
SYS_FORCE_INLINE GA_Size getNumPoints() const
Return the number of points.
SYS_FORCE_INLINE FromType entries() const
Returns the number of used elements in the list (always <= capacity())