js/index.js
//pushes point positions of custom mesh in an empty array.

pushes point positions of custom mesh in an empty array.
pushes point positions of custom mesh in an empty array .
function createVertices ( targetArray, points, yOffset ) {
        for( var i = 0; i < pCount; i++ )
        {
            var vertex = new THREE.Vector3();
            vertex.x = points[i]['x'];
            vertex.y = points[i]['y'] - yOffset;
            vertex.z = points[i]['z'];
            targetArray.vertices[i] = vertex;
        }
    }
function createVertices ( targetArray , points , yOffset ) { for ( var i = 0 ; i < pCount ; i ++ ) { var vertex = new THREE . Vector3 ( ) ; vertex . x = points [ i ] [ 'x' ] ; vertex . y = points [ i ] [ 'y' ] - yOffset ; vertex . z = points [ i ] [ 'z' ] ; targetArray . vertices [ i ] = vertex ; } }
pushes point positions of custom mesh in an empty array.
pushes point positions of custom mesh in an empty array .