I'm currently creating a mesh in three.js using the following:
sphereGeometry = new THREE.SphereGeometry( 1, 16,16 );
mesh = new THREE.Mesh( sphereGeometry, material );
I've also created a torus:
torusGeometry = new THREE.TorusGeometry( 1, 0.42 );
At any point in my animation loop, I want to be able to swap the sphere out for the torus. Is this possible? How do I swap one geometry for another?