warp.geometry.super_fibonacci#
- warp.geometry.super_fibonacci(i: int, n: int) quatf[source]#
Return the
i-th ofnrotations spread near-uniformly over SO(3).The rotations follow the Super-Fibonacci spiral of Alexa, “Super-Fibonacci Spirals: Fast, Low-Discrepancy Sampling of SO(3)”, CVPR 2022. Together, the
nrotations form a low-discrepancy sample of SO(3), sonrotations evaluated in parallel, one per thread, cover the rotations evenly without any random state. The sequence is deterministic: the sameiandnalways give the same rotation.This function can be called from kernels and other Warp functions.
- Parameters:
i – Sample index, in
[0, n).n – Total number of samples. The spread is near-uniform over the
nsamples taken together, so changingnchanges every sample.
- Returns:
The rotation as a unit quaternion.