Interior gen algorithm

Devising proper ray-traversal for a given region.
interior gen

Removed some compiler warnings in the renderer, fixed subregion
intersection issues for the interior generator.