This example demonstrates reading and writing glTF models using gltf-transform and using this to feed Manifold's output into <model-viewer>. It also shows how to pass mesh properties like UV coordinates through Manifold and how to re-associate textures and materials after operations, made simple using our `gltf-io.ts` library. The resulting glTF includes the EXT_mesh_manifold extension, using our `manifold-gltf.ts` extension to gltf-transform, which ensures lossless data transfer.
Please open dev tools to inspect our source code - everything is source mapped back to our TS files and commented thoroughly. A more basic three.js example is here.