This example shows how to marshal models between three.js and Manifold.
Manifold has full support for arbitrary vertex properties, and also has IDs that make it easy to keep track of materials and what surfaces belong to what input objects or faces. This example is a simple demonstration of combining objects with unique textures. The final result is shown using <model-viewer>.
This example will test a glTF model for manifoldness. Manifold models will be extended with EXT_mesh_manifold, a glTF extension for lossless transmission of manifold meshes.
Our implementation of EXT_mesh_manifold is manifold-gltf, an extension for glTF Transform. Although this example uses manifold to test for manifoldness, manifold-gltf depends only on glTF Transform.