resampleVolume

carb::volume::GridData* resampleVolume(carb::volume::GridData* gridDataA,
                                       carb::volume::GridData* gridDataB,
                                       size_t order,
                                       size_t ageA,
                                       size_t ageB)

Resample one VDB grid into another VDB grid.

Arguments

  • gridDataA The volume A to query.

  • gridDataB The volume B to query.

  • order order of the polynomial interpolation kernel used during resampling (defaults to 1).

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

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

Return

The volume resampled.