function paintBBx(ctx, maxima, color) {
        var tw = maxima.xMax - maxima.xMin;
        var th = maxima.yMax - maxima.yMin;
        var x, y;

        ctx.fillStyle = "#" + color.getHexString();

        for (x = maxima.xMin; x < maxima.xMin + tw; x++) {

            ctx.fillRect(x, maxima.yMax, 1, 1);
            ctx.fillRect(x, maxima.yMin, 1, 1);

        }

        for (y = maxima.yMin; y < maxima.yMin + th; y++) {

            ctx.fillRect(maxima.xMin, y, 1, 1);
            ctx.fillRect(maxima.xMax, y, 1, 1);

        }

    }
/**
     * This method paints a box to visualize the bounding box on the light map
     * @param ctx
     * @param maxima
     * @param color
     */
This method paints a box to visualize the bounding box on the light map
@param ctx
@param maxima
@param color
This method paints a box to visualize the bounding box on the light map @param ctx @param maxima @param color
function paintBBx(ctx, maxima, color) {
        var tw = maxima.xMax - maxima.xMin;
        var th = maxima.yMax - maxima.yMin;
        var x, y;
        ctx.fillStyle = "#" + color.getHexString();
        for (x = maxima.xMin; x < maxima.xMin + tw; x++) {
            ctx.fillRect(x, maxima.yMax, 1, 1);
            ctx.fillRect(x, maxima.yMin, 1, 1);
        }
        for (y = maxima.yMin; y < maxima.yMin + th; y++) {
            ctx.fillRect(maxima.xMin, y, 1, 1);
            ctx.fillRect(maxima.xMax, y, 1, 1);
        }
    }
function paintBBx ( ctx , maxima , color ) { var tw = maxima . xMax - maxima . xMin ; var th = maxima . yMax - maxima . yMin ; var x , y ; ctx . fillStyle = "#" + color . getHexString ( ) ; for ( x = maxima . xMin ; x < maxima . xMin + tw ; x ++ ) { ctx . fillRect ( x , maxima . yMax , 1 , 1 ) ; ctx . fillRect ( x , maxima . yMin , 1 , 1 ) ; } for ( y = maxima . yMin ; y < maxima . yMin + th ; y ++ ) { ctx . fillRect ( maxima . xMin , y , 1 , 1 ) ; ctx . fillRect ( maxima . xMax , y , 1 , 1 ) ; } }
This method paints a box to visualize the bounding box on the light map
 @param ctx
 @param maxima
 @param color
This method paints a box to visualize the bounding box on the light map @param ctx @param maxima @param color