manifold-3d
    Preparing search index...

    Module lib/gltf-io

    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.

    Interfaces

    Properties

    Import

    These properties implement the Importer interface. Through this interface, manifoldCAD can determine when to use this module to import a model.

    importFormats
    fromArrayBuffer

    Export

    These properties implement the Exporter interface. Through this interface, manifoldCAD can determine when to use this module to export a model.

    exportFormats
    toArrayBuffer

    Functions

    disposeMesh

    Helper function to dispose of a Mesh, useful when replacing an existing Mesh with one from writeMesh.

    loadTexture

    Helper function to download an image and apply it to the given texture.

    readMesh

    Read an input mesh into Manifold-compatible data structures, whether it contains the EXT_mesh_manifold extension or not.

    setupIO

    Call this first to register the manifold extension so that readMesh and writeMesh will work.

    writeMesh

    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.

    Variables

    attributeDefs

    Type Aliases

    Attribute