Leveraging STLLoader, I successfully loaded an stl file onto a threeJS scene and obtained a BufferGeometry.
Following that, I utilized
myMesh.position.set(x, y, z)
myMesh.rotation.setFromQuaternion(quaternion, 'XYZ');
to manipulate the geometry. This led to changes in
myMesh.position
myMesh.quaternion
The translation took place within the scene without any issues. I was anticipating that the
myMesh.geometry.attributes.position.array
would show a difference before and after the translation, but it remained unchanged. I am eager to extract the updated vertices from the buffergeometry following the translation. My attempts involved calling
myMesh.geometry.dynamic = true;
myMesh.geometry.attributes.position.needsUpdate = true;
in the render loop, however, this did not yield results as the vertices were not explicitly updated.