How to update geometry dynamicly after merged

I’m trying to render 5000(maybe more) different height boxGeometry with BufferGeometryUtils.mergeBufferGeometries.
When I trying to update each height, I couldn’t find a suitable solution to do it.
What I want to achieve is that every once in a while the height of these boxes will change randomly.
Does anyone know how to start?

Instead of merging geometries have you considered to use InstancedMesh instead? This would make it easier to modify each instance but without loosing the performance benefit of draw call reduction.

Notice that the height of a box can be modified by changing the scale property of a 3D object. So you don’t have to touch the geometry data.

1 Like

Thx, i’ll try this way