function visDebugThisFun(pointOnSurface, color) {

        var debugGeomSphere, debugMat, debugMeshSphere;

        var le2 = pointOnSurface.x > -5.2;
        var le = pointOnSurface.x < -4.9;
        var ri = pointOnSurface.x > 4.75;

        if ((le && le2 && !ri )) {

            debugGeomSphere = new THREE.SphereGeometry(0.02, 2, 2);
            debugMat = new THREE.MeshBasicMaterial();

            if (color.r === 0) {

                debugMat.color.setRGB(1, 0, 0);

            } else {

                debugMat.color.setRGB(0, color.g, 0);

            }

            debugMeshSphere = new THREE.Mesh(debugGeomSphere, debugMat);

            debugMeshSphere.translateX(pointOnSurface.x);
            debugMeshSphere.translateY(pointOnSurface.y);
            debugMeshSphere.translateZ(pointOnSurface.z);
            __debugObjects.push(debugMeshSphere);

        }

    }
/**
     * Used to debug the lightmap visually
     * @param pointOnSurface
     * @param color
     */
Used to debug the lightmap visually
@param pointOnSurface
@param color
Used to debug the lightmap visually @param pointOnSurface @param color
function visDebugThisFun(pointOnSurface, color) {
        var debugGeomSphere, debugMat, debugMeshSphere;
        var le2 = pointOnSurface.x > -5.2;
        var le = pointOnSurface.x < -4.9;
        var ri = pointOnSurface.x > 4.75;
        if ((le && le2 && !ri )) {
            debugGeomSphere = new THREE.SphereGeometry(0.02, 2, 2);
            debugMat = new THREE.MeshBasicMaterial();
            if (color.r === 0) {
                debugMat.color.setRGB(1, 0, 0);
            } else {
                debugMat.color.setRGB(0, color.g, 0);
            }
            debugMeshSphere = new THREE.Mesh(debugGeomSphere, debugMat);
            debugMeshSphere.translateX(pointOnSurface.x);
            debugMeshSphere.translateY(pointOnSurface.y);
            debugMeshSphere.translateZ(pointOnSurface.z);
            __debugObjects.push(debugMeshSphere);
        }
    }
function visDebugThisFun ( pointOnSurface , color ) { var debugGeomSphere , debugMat , debugMeshSphere ; var le2 = pointOnSurface . x > - 5.2 ; var le = pointOnSurface . x < - 4.9 ; var ri = pointOnSurface . x > 4.75 ; if ( ( le && le2 && ! ri ) ) { debugGeomSphere = new THREE . SphereGeometry ( 0.02 , 2 , 2 ) ; debugMat = new THREE . MeshBasicMaterial ( ) ; if ( color . r === 0 ) { debugMat . color . setRGB ( 1 , 0 , 0 ) ; } else { debugMat . color . setRGB ( 0 , color . g , 0 ) ; } debugMeshSphere = new THREE . Mesh ( debugGeomSphere , debugMat ) ; debugMeshSphere . translateX ( pointOnSurface . x ) ; debugMeshSphere . translateY ( pointOnSurface . y ) ; debugMeshSphere . translateZ ( pointOnSurface . z ) ; __debugObjects . push ( debugMeshSphere ) ; } }
Used to debug the lightmap visually
 @param pointOnSurface
 @param color
Used to debug the lightmap visually @param pointOnSurface @param color