OpenVDB  7.0.0
Functions
openvdb::v7_0::points::point_scatter_internal Namespace Reference

Functions

template<typename PointDataGridT , typename GridT >
PointDataGridT::Ptr initialisePointTopology (const GridT &grid)
 initialise the topology of a PointDataGrid and ensure everything is voxelized More...
 
template<typename PositionType , typename CodecT , typename RandGenT , typename LeafNodeT >
void generatePositions (LeafNodeT &leaf, const AttributeSet::Descriptor::Ptr &descriptor, const Index64 &count, const float spread, RandGenT &rand01)
 Generate random point positions for a leaf node. More...
 

Function Documentation

void openvdb::v7_0::points::point_scatter_internal::generatePositions ( LeafNodeT &  leaf,
const AttributeSet::Descriptor::Ptr &  descriptor,
const Index64 count,
const float  spread,
RandGenT &  rand01 
)
inline

Generate random point positions for a leaf node.

Parameters
leafThe leaf node to initialize
descriptorThe descriptor containing the position type
countThe number of points to generate
spreadThe spread of points from the voxel center
rand01The random number generator, expected to produce floating point values between 0 and 1.
PointDataGridT::Ptr openvdb::v7_0::points::point_scatter_internal::initialisePointTopology ( const GridT &  grid)
inline

initialise the topology of a PointDataGrid and ensure everything is voxelized

Parameters
gridThe source grid from which to base the topology generation