build/browser/index.js
/**
     * Pushes positions and colors into the the aPositions and aColors arrays.
     * A quad call pushes two triangles, making a square face.
     * The dimensionality of each position is 3, but could be changed.
     * The first parameter, a, is used to pick the color of the entire face.
     * @hidden
     */
Pushes positions and colors into the the aPositions and aColors arrays.
A quad call pushes two triangles, making a square face.
The dimensionality of each position is 3, but could be changed.
The first parameter, a, is used to pick the color of the entire face.
@hidden
Pushes positions and colors into the the aPositions and aColors arrays . A quad call pushes two triangles making a square face . The dimensionality of each position is 3 but could be changed . The first parameter a is used to pick the color of the entire face . @hidden
function quad(a, b, c, d) {
        var indices = [a, b, c, a, c, d];
        for (var i = 0; i < indices.length; i++) {
            var vertex = vertices[indices[i]];
            var dims = vertex.length;
            for (var d_1 = 0; d_1 < dims; d_1++) {
                aCoords.push(vertex[d_1]);
            }
            aFaces.push(a - 1);
        }
    }
function quad ( a , b , c , d ) { var indices = [ a , b , c , a , c , d ] ; for ( var i = 0 ; i < indices . length ; i ++ ) { var vertex = vertices [ indices [ i ] ] ; var dims = vertex . length ; for ( var d_1 = 0 ; d_1 < dims ; d_1 ++ ) { aCoords . push ( vertex [ d_1 ] ) ; } aFaces . push ( a - 1 ) ; } }
Pushes positions and colors into the the aPositions and aColors arrays.
Pushes positions and colors into the the aPositions and aColors arrays .