Manifold WASM Developer Guide
    Preparing search index...

    Module lib/gltf-node

    Nodes enable ManifoldCAD users to build models that are beyond a single Manifold object. This can range from assembling models to animation to even including non-manifold objects from other sources.

    ManifoldCAD uses the GLTFNode class to manage objects that will be exported into a gltf-transform document.

    It's important to note that gltf-transform also has a Node class, representing objects that are already part of a gltf-transform document. That class can mostly be seen in import and export related code.

    This leads to the confusing case where, NonManifoldGLTFNode is both. It is a manifoldCAD node that contains an imported gltf-transform Node. It specifies how that gltf-transform node will be scaled, rotated and translated when it is eventually copied into a new gltf-transform document at export time.

    Classes

    BaseGLTFNode

    The abstract class from which other classes inherit. Common methods and properties live here.

    GLTFNode

    Position a manifold model for later export.

    GLTFNodeTracked

    Track created GLTFNodes for top level scripts.

    VisualizationGLTFNode

    Include an imported model for visualization purposes.

    Interfaces

    GLTFMaterial

    Type Aliases

    GLTFAttribute

    Functions

    anyToGLTFNodeList

    Map various types to a flat array of GLTFNodes

    cleanup
    getGLTFNodes

    Get a list of GLTF nodes that have been created in this model.

    resetGLTFNodes

    Clear the list of cached GLTF nodes.