describe_tree

giant.ray_tracer.kdtree:

giant.ray_tracer.kdtree.describe_tree(tree)

This function describes the results of building a tree.

For each level of the tree, the total number of nodes are counted. Then the leaf nodes on that level are counted, and the min/max/mean number of facets for all of the leaf nodes on that level are computed. This is then printed to the screen in tabular format.

Parameters:

tree (KDTree) – the tree we are to describe