lib/toxi/geom/mesh/meshCommon.js
function(array){
                array = array || [];
                var i = 0;
                for(f=0; f<this.faces.length; f++){
                    var face = this.faces[f];
                    array[i++] = face.uvA ? face.uvA.x : 0;
                    array[i++] = face.uvA ? face.uvA.y : 0;
                    array[i++] = face.uvB ? face.uvB.x : 0;
                    array[i++] = face.uvB ? face.uvB.y : 0;
                    array[i++] = face.uvC ? face.uvC.x : 0;
                    array[i++] = face.uvC ? face.uvC.y : 0;
                }

                return array;
            }
function(array){
                array = array || [];
                var i = 0;
                for(f=0; f<this.faces.length; f++){
                    var face = this.faces[f];
                    array[i++] = face.uvA ? face.uvA.x : 0;
                    array[i++] = face.uvA ? face.uvA.y : 0;
                    array[i++] = face.uvB ? face.uvB.x : 0;
                    array[i++] = face.uvB ? face.uvB.y : 0;
                    array[i++] = face.uvC ? face.uvC.x : 0;
                    array[i++] = face.uvC ? face.uvC.y : 0;
                }

                return array;
            }
function ( array ) { array = array || [ ] ; var i = 0 ; for ( f = 0 ; f < this . faces . length ; f ++ ) { var face = this . faces [ f ] ; array [ i ++ ] = face . uvA ? face . uvA . x : 0 ; array [ i ++ ] = face . uvA ? face . uvA . y : 0 ; array [ i ++ ] = face . uvB ? face . uvB . x : 0 ; array [ i ++ ] = face . uvB ? face . uvB . y : 0 ; array [ i ++ ] = face . uvC ? face . uvC . x : 0 ; array [ i ++ ] = face . uvC ? face . uvC . y : 0 ; } return array ; }
get the UVs of all faces in flattened array that is, usefl for OpenGL attributes
any missing UV coordinates are returned as 0
@param {Array|Float32Array} [array] optionally pass in an array or typed-array to reuse
@return {Array|Float32Array}
get the UVs of all faces in flattened array that is usefl for OpenGL attributes any missing UV coordinates are returned as 0