Hi, I am trying to use SimplifyModifier from here:
https://threejs.org/examples/jsm/modifiers/SimplifyModifier.js
but, when I import the BufferGeometryUtils, it showed an error:
Attempted import error: ‘mergeVertices’ is not exported from ‘three/examples/jsm/utils/BufferGeometryUtils’ (imported as ‘BufferGeometryUtils’).
anyone know what the issue with this?
Thanks
oh, it solved!
I take the buffergeometryutils from here:
https://cdn.jsdelivr.net/npm/three@0.125.2/examples/jsm/utils/BufferGeometryUtils.js
from this:
Unfortunately, but the library crashes an error:
Uncaught TypeError: Cannot read property ‘mergeBufferGeometries’ of undefined
The library loads correctly because it adds console.log (“lib load”) to this library and it appears in my logs.
Unfortunately, the use of:
THREE.BufferGeometryUtils.mergeBufferGeometries (Geometry, true);
It shows the above-mentioned error.