#include <openvdb/tools/PointPartitioner.h>
◆ ConstPtr
◆ IndexType [1/2]
◆ IndexType [2/2]
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
◆ Ptr
◆ VoxelOffsetArray
◆ VoxelOffsetType
◆ anonymous enum
◆ IndexIterator()
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
◆ clear()
Removes all data and frees up memory.
◆ construct()
Partitions point indices into BucketLog2Dim
aligned buckets.
- Parameters
-
points | list of world space points. |
xform | world to index space transform. |
voxelOrder | sort point indices by local voxel offsets. |
recordVoxelOffsets | construct local voxel offsets |
cellCenteredTransform | toggle the cell-centered interpretation that imagines world space as divided into discrete cells (e.g., cubes) centered on the image of the index-space lattice points. |
◆ create()
Partitions point indices into BucketLog2Dim
aligned buckets.
- Parameters
-
points | list of world space points. |
xform | world to index space transform. |
voxelOrder | sort point indices by local voxel offsets. |
recordVoxelOffsets | construct local voxel offsets |
cellCenteredTransform | toggle the cell-centered interpretation that imagines world space as divided into discrete cells (e.g., cubes) centered on the image of the index-space lattice points. |
◆ empty()
true if the container size is 0, false otherwise.
◆ getBBox()
Returns the coordinate-aligned bounding box for bucket n.
◆ increment()
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
◆ indices()
Returns the point indices for bucket n.
◆ next()
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
Advance to the next item.
◆ operator bool()
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
Return true
if this iterator is not yet exhausted.
◆ operator!=()
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
◆ operator*() [1/2]
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
Returns the item to which this iterator is currently pointing.
◆ operator*() [2/2]
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
◆ operator++()
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
Advance to the next item.
◆ operator==()
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
◆ origin()
const Coord & origin |
( |
size_t | n | ) |
const |
|
inline |
Returns the origin coordinate for bucket n.
◆ PointPartitioner()
◆ reset()
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
◆ size() [1/2]
Returns the number of buckets.
◆ size() [2/2]
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
Number of point indices in the iterator range.
◆ swap()
Exchanges the content of the container by another.
◆ test()
template<typename PointIndexType = uint32_t,
Index BucketLog2Dim = 3>
◆ usingCellCenteredTransform()
bool usingCellCenteredTransform |
( |
| ) |
const |
|
inline |
Returns true
if this point partitioning was constructed using a cell-centered transform.
- Note
- Cell-centered interpretation is the default behavior.
◆ voxelOffsets()
Returns a list of LeafNode
voxel offsets for the points.
- Note
- The list is optionally constructed.
◆ bits