I am working with mesh1 and Mesh2, both of which have extrusion properties.
mesh1 ->100 vertices
mesh2 ->200 vertices
In my programming code, I perform the following operations:
mesh1.geometry.verticesNeedUpdate = true;
mesh1 = Mesh2;
mesh1.geometry.computeBoundingBox ();
This successfully updates mesh1 in my original code. However, I want to ensure that there is a smooth transition rather than an abrupt change as mesh1 becomes the geometry of Mesh2.
Typically, I utilize tween.js library for animations. For instance:
new TWEEN.Tween (mesh1.scale) .to ({x: 1, y: 1, z: 1}, 1000) .start ();
But I am unsure how to create an animation in this scenario. I aim to smoothly transition or animate the changes from the vertices of mesh2 to mesh1 without any sudden shifts being visible.