Helper function to dispose of a Mesh, useful when replacing an existing Mesh with one from writeMesh.
Helper function to download an image and apply it to the given texture.
Read an input mesh into Manifold-compatible data structures, whether it contains the EXT_mesh_manifold extension or not.
Call this first to register the manifold extension so that readMesh and writeMesh will work.
Write a Manifold Mesh into a glTF Mesh object, using the EXT_mesh_manifold extension to allow for lossless roundtrip of the manifold mesh through the glTF file.
These properties implement the Exporter interface. Through this interface, manifoldCAD can determine when to use this module to export a model.
These properties implement the Importer interface. Through this interface, manifoldCAD can determine when to use this module to import a model.
Convert between in-memory glTF-transform documents and their serialized formats. This module also includes some utilities for conversion between glTF meshes and manifold meshes.