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

  • gridData The volume to query.

  • count The fixed number of points to randomly scatter (disabled by default).

  • density The uniform density of points per active voxel (disabled by default).

  • pointsPerVoxel number of points per active voxel (defaults to 8).

  • age Age (i.e. stack index) of the VDB grid. Defaults to 0, i.e. most recently inserted VDB.

Return

The points scattered.