warp.volume_sample_i#
- warp.volume_sample_i(id: uint64, uvw: vec3f) int#
Kernel
Python
Sample the
warp.int32volume given byidat the index-space pointuvw.Integer volumes only support nearest-voxel sampling, so there is no
sampling_modeargument (warp.Volume.CLOSESTis always used) and the result is not differentiable.uvwis in index space (voxel coordinates) and may be fractional; it is rounded to the nearest voxel, with halfway cases rounded away from zero. Sampling uses the resolved NanoVDB value (seevolume_sample()), and the result is0ifidis not anint32volume.See
volume_sample()for a usage example.