14 #ifndef OPENVDB_POINTS_POINT_SCATTER_HAS_BEEN_INCLUDED
15 #define OPENVDB_POINTS_POINT_SCATTER_HAS_BEEN_INCLUDED
17 #include <type_traits>
32 #include <tbb/parallel_sort.h>
33 #include <tbb/parallel_for.h>
73 typename RandGenT = std::mt19937,
74 typename PositionArrayT = TypedAttributeArray<Vec3f, NullCodec>,
75 typename PointDataGridT = Grid<
77 typename InterrupterT = util::NullInterrupter>
78 inline typename PointDataGridT::Ptr
81 const unsigned int seed = 0,
82 const float spread = 1.0
f,
83 InterrupterT* interrupter =
nullptr);
102 typename RandGenT = std::mt19937,
103 typename PositionArrayT = TypedAttributeArray<Vec3f, NullCodec>,
104 typename PointDataGridT = Grid<
106 typename InterrupterT = util::NullInterrupter>
107 inline typename PointDataGridT::Ptr
109 const float pointsPerVoxel,
110 const unsigned int seed = 0,
111 const float spread = 1.0
f,
112 InterrupterT* interrupter =
nullptr);
134 typename RandGenT = std::mt19937,
135 typename PositionArrayT = TypedAttributeArray<Vec3f, NullCodec>,
136 typename PointDataGridT = Grid<
138 typename InterrupterT = util::NullInterrupter>
139 inline typename PointDataGridT::Ptr
141 const float pointsPerVoxel,
142 const unsigned int seed = 0,
143 const float spread = 1.0
f,
144 InterrupterT* interrupter =
nullptr);
152 #endif // OPENVDB_POINTS_POINT_SCATTER_HAS_BEEN_INCLUDED
GLdouble GLdouble GLint GLint const GLdouble * points
#define OPENVDB_USE_VERSION_NAMESPACE
Methods for counting points in VDB Point grids.
Defined various multi-threaded utility functions for trees.
PointDataGridT::Ptr nonUniformPointScatter(const GridT &grid, const float pointsPerVoxel, const unsigned int seed, const float spread, InterrupterT *interrupter)
Non uniformly scatter points per active voxel. The pointsPerVoxel value is used to weight each grids ...
PointDataGridT::Ptr uniformPointScatter(const GridT &grid, const Index64 count, const unsigned int seed, const float spread, InterrupterT *interrupter)
The free functions depend on the following class:
A LeafManager manages a linear array of pointers to a given tree's leaf nodes, as well as optional au...
Attribute Array storage templated on type and compression codec.
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Attribute-owned data structure for points. Point attributes are stored in leaf nodes and ordered by v...
PointDataGridT::Ptr denseUniformPointScatter(const GridT &grid, const float pointsPerVoxel, const unsigned int seed, const float spread, InterrupterT *interrupter)
Uniformly scatter a fixed number of points per active voxel. If the pointsPerVoxel value provided is ...