Manifold WASM Developer Guide
    Preparing search index...

    Module lib/import-model

    Import models into manifoldCAD.

    ManifoldCAD uses gltf-transform internally to represent scenes. Importers must convert their models to in-memory gltf-transform Documents.

    The high level functions importModel() and importManifold() will import models as display-only and full manifold objects respectively. These functions are available in manifoldCAD.

    Functions

    cleanup
    getDocumentByID
    importManifold

    Import a model, and convert it to a Manifold object for manipulation.

    importModel

    Import a model, for display only.

    Low Level Functions

    These functions are not available within manifoldCAD, but can be used when including manifold in another project.

    fetchModel

    Fetch a model over HTTP/HTTPS.

    fromArrayBuffer

    Read a model from an ArrayBuffer.

    fromBlob

    Read a model from a Blob.

    gltfDocToManifold

    Convert a gltf-transform Node and its descendants into a Manifold object.

    readFile

    Read a model from disk.

    readModel

    Resolve and read a model, be it a file, a URL or a Blob.

    Management

    Importer

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

    ImportOptions
    register

    Register an importer.

    supports

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