1. A method comprising: generating a beam including a group of rays; evaluating the beam against a spatially ordered geometrical database until the beam can no longer be evaluated as a whole in order to discard a portion of the spatially ordered geometrical database from further consideration; noting the location where the beam can no longer be evaluated as a whole; and traversing, starting at the noted location, the spatially ordered geometrical database for each of the rays by executing a query against the spatially ordered geometrical database not discarded by the evaluating.