Seeking advice on how to update the color of a Three.js Object3D. Initially created using MeshStandardMaterial, this object is later retrieved from the scene by its ID. Is it possible to change the color of the Mesh at this stage?
If needing to replace the 3D object entirely, is there a method to retrieve the original geometry used in its construction directly from the Object3D? Avoiding a mapping of geometry to ID due to code clutter, one potential solution is storing the geometry in Object3D.UserData. However, this approach is less efficient as meshes are initially constructed elsewhere and then added to the scene (UserData is only accessible after adding to the scene).