occlude_rays function

Determine the non-occluded segments of the rays