Manifold WASM Developer Guide
    Preparing search index...

    Module lib/export-model

    Export models out of manifoldCAD.

    ManifoldCAD uses gltf-transform internally to represent scenes. Exporters must accept in-memory gltf-transform Documents.

    Exporters and importers can each accept one or more type of file. Each format must have a defined extension and mime type. In the case of duplicates, order is not guaranteed. While an implementation may support both import and export of a format, this is not required. At the time of writing, manifoldCAD supports both import and export of glTF, but only exports 3mf.

    Low Level Functions

    toArrayBuffer

    Convert an in-memory GLTF document to an ArrayBuffer.

    toBlob

    Convert an in-memory GLTF document to a binary Blob.

    writeFile

    Write a model to disk.

    Management

    Exporter

    Through this interface, manifoldCAD can infer what formats each exporter may support.

    register

    Register an exporter.

    supports

    Returns true if a given extension or mimetype can be exported.