#include <openvdb/tools/PointPartitioner.h>
|
template<typename PointArray > |
static Ptr | create (const PointArray &points, const math::Transform &xform, bool voxelOrder=false, bool recordVoxelOffsets=false, bool cellCenteredTransform=true) |
| Partitions point indices into BucketLog2Dim aligned buckets. More...
|
|
|
static constexpr Index | bits = 1 + (3 * BucketLog2Dim) |
|
using VoxelOffsetType = typename std::conditional<(bits < 16), int16_t, typename std::conditional<(bits < 32), int32_t, int64_t>::type>::type |
Removes all data and frees up memory.
void construct |
( |
const PointArray & |
points, |
|
|
const math::Transform & |
xform, |
|
|
bool |
voxelOrder = false , |
|
|
bool |
recordVoxelOffsets = false , |
|
|
bool |
cellCenteredTransform = true |
|
) |
| |
|
inline |
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. |
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. |
true if the container size is 0, false otherwise.
CoordBBox getBBox |
( |
size_t |
n | ) |
const |
|
inline |
Returns the coordinate-aligned bounding box for bucket n.
Returns the point indices for bucket n.
const Coord& origin |
( |
size_t |
n | ) |
const |
|
inline |
Returns the origin coordinate for bucket n.
Returns the number of buckets.
Exchanges the content of the container by another.
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.
Returns a list of LeafNode
voxel offsets for the points.
- Note
- The list is optionally constructed.
constexpr Index bits = 1 + (3 * BucketLog2Dim) |
|
static |