I would consider using something like https://github.com/jkuhlmann/cgltf to export glTF, which will be loaded in three.js (by THREE.GLTFLoader) as BufferGeometry. That may be easier than trying to maintain a separate implementation of three.js’s custom format.
2 Likes