Embarking on a creative journey into the realm of geometry generation and manipulation, I am eager to explore intricate and large-scale projects. While I am familiar with the conventional methods of achieving this, as demonstrated in the informative response to this query, my background lies in image manipulation using typed array buffers on the GPU.
var geom = new THREE.Geometry();
var v1 = new THREE.Vector3(0,0,0);
var v2 = new THREE.Vector3(0,500,0);
var v3 = new THREE.Vector3(0,500,500);
geom.vertices.push(v1);
geom.vertices.push(v2);
geom.vertices.push(v3);
geom.faces.push( new THREE.Face3( 0, 1, 2 ) );
geom.computeFaceNormals();
var object = new THREE.Mesh( geom, new THREE.MeshNormalMaterial() );
object.position.z = -100;
object.rotation.y = -Math.PI * .5;
scene.add(object);
Given my experience in working with typed arrays for fast image processing, it would be intriguing to access the three.js geometry directly as a typed array buffer. Imagine the possibilities if I can utilize gpu.js to leverage the GPU for performance enhancements instead of relying solely on the CPU.
Is there an equivalent method within three.js akin to canvas's getImageData that allows direct manipulation of geometry through typed arrays? This could revolutionize my approach to geometric transformations!