warp.volume_sample_v#

warp.volume_sample_v(
id: uint64,
uvw: vec3f,
sampling_mode: int32,
) vec3f#
  • Kernel

  • Python

  • Differentiable

Sample the vector (warp.vec3f) volume given by id at the index-space point uvw.

uvw is in index space (voxel coordinates) and may be fractional; sampling_mode must be warp.Volume.CLOSEST or warp.Volume.LINEAR and is applied per component. Sampling uses the resolved NanoVDB value (see volume_sample()), and the sample is 0 if id is not a vec3f volume. In kernels, equivalent to volume_sample() with dtype=warp.vec3f.

See volume_sample() for a usage example.