Add hollow ray cast.

This adds an extra parameter to every ray casting function
to perform a ray-cast assuming the shape is empty.