Skip to content

Instantly share code, notes, and snippets.

@SET001
Created May 13, 2015 16:58
Show Gist options
  • Save SET001/5ba19aa4a1882ddd98ae to your computer and use it in GitHub Desktop.
Save SET001/5ba19aa4a1882ddd98ae to your computer and use it in GitHub Desktop.
geometry = new THREE.PlaneGeometry 2000, 2000, 596, 596
console.log geometry.vertices.length
j = 0
for i in [0..geometry.vertices.length-1]
geometry.vertices[i].z = (data[j])
j += 4
console.log "done"
geometry.computeFaceNormals()
geometry.computeVertexNormals()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment