Module bvh::flat_bvh [] [src]

This module exports methods to flatten the BVH and traverse it iteratively.

Structs

FlatNode

A structure of a node of a flat BVH. The structure of the nodes allows for an iterative traversal approach without the necessity to maintain a stack or queue.

Functions

pretty_print_flat_bvh

Prints a textual representation of a flat BVH.

traverse_flat_bvh

Traverses a flat BVH structure iteratively. Returns a Vec of indices which are hit by ray with a high probability.