HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::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

template<typename PositionType , typename CodecT , typename RandGenT , typename LeafNodeT >
void openvdb::OPENVDB_VERSION_NAME::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.

Definition at line 182 of file PointScatter.h.

template<typename PointDataGridT , typename GridT >
PointDataGridT::Ptr openvdb::OPENVDB_VERSION_NAME::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

Definition at line 158 of file PointScatter.h.