For example ray-tracers use a such an algorithm to determine which surface a cast ray intersects with. I suspect something similar could be done with more simple targets (eg. a large cuboid for a building), and limiting the intersect-able objects based on their relative position.