build/module/lib/core/computeAttributes.js
/**
 * Computes the interleaved attribute values array.
 * @hidden
 */
Computes the interleaved attribute values array.
@hidden
Computes the interleaved attribute values array . @hidden
function computeAttributes(attributes, aNames) {
    var aNamesLen = aNames.length;
    var values = [];
    var iLen = computeCount(attributes, aNames);
    for (var i = 0; i < iLen; i++) {
        for (var a = 0; a < aNamesLen; a++) {
            var aName = aNames[a];
            var attrib = attributes[aName];
            var size = attrib.size;
            for (var s = 0; s < size; s++) {
                values.push(attrib.values[i * size + s]);
            }
        }
    }
    return values;
}
function computeAttributes ( attributes , aNames ) { var aNamesLen = aNames . length ; var values = [ ] ; var iLen = computeCount ( attributes , aNames ) ; for ( var i = 0 ; i < iLen ; i ++ ) { for ( var a = 0 ; a < aNamesLen ; a ++ ) { var aName = aNames [ a ] ; var attrib = attributes [ aName ] ; var size = attrib . size ; for ( var s = 0 ; s < size ; s ++ ) { values . push ( attrib . values [ i * size + s ] ) ; } } } return values ; }
Computes the interleaved attribute values array.
Computes the interleaved attribute values array .
// Looping over the attribute name as the inner loop creates the interleaving.