Merging many (Fat) LineGeometries

I try to merge a list of LineGeometry as in this example:
https://threejs.org/examples/#webgl_lines_fat

Using BufferGeometryUtils.mergeGeometries

And get these errors:
failed while trying to merge the instanceStart attribute
And
InterleavedBufferAttributes are not supported.

Would appreciate if someone can shad a light on this one and suggest another solution to achieve it

You’ll need to deinterleave the geometry, convert all its attributes from InterleavedBufferAttribute to BufferAttribute.

You can use this helper method from the BufferGeometryUtils (It’s not officially documented, and I think there is a mistake with the iteration over the morphTargets attributes)

And use LineSegments2 :thinking:

1 Like