multiResGrid

carb::volume::GridData* multiResGrid(carb::volume::GridData* gridData, int levels, size_t age, bool keep)

Construct a LoD sequences of VDB trees with powers of two refinements.

Arguments

  • gridData The volume to query.

  • levels Number of multi-resolution grids in the output LoD sequence.

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

  • keep Toggle whether the input VDB is preserved or deleted after the processing. Defaults to true.

Return

The multi-resolution level set volume created.