Merge multiple meshes threejs

I am trying to merge multiple meshes using threejs.

There is many examples that i would find using r71, but none work with the latest because of the changes with geometry.

anyone have a function that I could use to merge meshes in the latest version of threejs? thanks!

@TacoError
Please see my example of merge in:
https://jrlazz.eu5.org/anim/pinus_noSh.html

Is that in the latest version of three js (sorry I cannot check, I am currently on my school chromebook with restricts viewing page source. I am on 0.150

IĀ“ve tried with 147 and received an errorā€¦
THREE.BufferGeometry.merge() has been removed. Use THREE.BufferGeometryUtils.mergeBufferGeometries() instead.
Sorry!

1 Like

You want to use BufferGeometryUtils.mergeBufferGeometries() like demonstrated in webgl_geometry_minecraft to merge multiple static meshes into a single one.

@TacoError
I did an example to merge five geometriesā€¦
Please check if this is useful.

PS: @Mugen87
Please write if is there a simple way to set color attributes for each geometry.
Thanks for the attention.

mergo