warp.volume_sample_f#

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

  • Python

  • Differentiable

Sample the warp.float32 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. Sampling uses the resolved NanoVDB value (see volume_sample()), and the sample is 0 if id is not a float32 volume. In kernels, equivalent to volume_sample() with dtype=float, which documents the coordinate-frame, value-resolution, boundary, and differentiability behavior.

See volume_sample() for a usage example.