hawk.geometry.closest_hit#
- hawk.geometry.closest_hit(tables, o, d, tmax=None, *, depth=32)[source]#
The nearest hit of the ray
o + t d,0 <= t <= tmax, against the tree:[hit, t, u, v, leaf_position], witht = 0and zeros elsewhere when nothing is hit. The stack holdsdepthlevels; a tree deeper than that is refused, never traversed with a truncated stack.- Parameters:
tables (BVHTables)
o (Any)
d (Any)
tmax (Any)
depth (int)