ShapeBufferGeometry to BufferGeometry


I want to add in my scece hundreds of ShapeBufferGeometrys and I have realized that performance is very bad.

Is it possible to turn a ShapeBufferGeometry into a standard BufferGeometry even losing precission?

Many thanks in advanced

Um, not sure what you mean by that. ShapeBufferGeometry is derived from BufferGeometry. The internal structure of both classes is completely identical.

Consider to merge your geometries via BufferGeometryUtils.mergeBufferGeometries() if you have performance issues.

Hi Michael.

Yes, it’s exactly what I did.

: )

The performance is now ok.

Best regards

1 Like