Lightmap generator rewrited to find intersection bug