warp.volume_sample_v#
- warp.volume_sample_v( ) vec3f#
Kernel
Python
Differentiable
Sample the vector (
warp.vec3f) volume given byidat the index-space pointuvw.uvwis in index space (voxel coordinates) and may be fractional;sampling_modemust bewarp.Volume.CLOSESTorwarp.Volume.LINEARand is applied per component. Sampling uses the resolved volume value (seevolume_sample()).idmust identify avec3fvolume. In kernels,volume_sample_v()is equivalent tovolume_sample()withdtype=warp.vec3f.- Returns:
The sampled
warp.vec3fvalue.
See
volume_sample()for a usage example.