scatterPointsToVolume
PointData* scatterPointsToVolume(carb::volume::GridData* gridData,
size_t count,
float density,
int pointsPerVoxel,
size_t age)
Scatter point into the active values of an input VDB grid.
Arguments
gridDataThe volume to query.countThe fixed number of points to randomly scatter (disabled by default).densityThe uniform density of points per active voxel (disabled by default).pointsPerVoxelnumber of points per active voxel (defaults to 8).ageAge (i.e. stack index) of the VDB grid. Defaults to 0, i.e. most recently inserted VDB.
Return
The points scattered.