In my current project, I have a complex scene filled with objects created using the ExtrudeGeometry
method. These objects need to be updated every frame, with the extrusion shape and amount constantly changing. The shapes are generated using d3's voronoi algorithm.
If you want to see an example, check out this link.
Currently, I am redrawing every object in the scene each frame by removing and recreating them. This process is very resource-intensive and is leading to performance issues. I'm wondering if there is a way to edit the meshes/geometry directly instead of removing and recreating them. Would this approach improve performance? Are there more efficient methods for updating the scene without sacrificing performance?
The key requirement is the ability to adjust both the extrusion shape and amount dynamically.
Thank you for your help!