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 volume value (see volume_sample()). id must identify a vec3f volume. In kernels, volume_sample_v() is equivalent to volume_sample() with dtype=warp.vec3f.

Returns:

The sampled warp.vec3f value.

See volume_sample() for a usage example.