Manifold WASM Developer Guide
    Preparing search index...

    Function toArrayBuffer

    • Convert a GLTF-Transform document to a 3MF model.

      3MF files are more sophisticated than STL files; they can encode meshes, components and build items.

      3MF components are like a scene graph. Each component can have multiple children, and does have its own transformation matrix. This is flexible enough to allow putting several parts in the same file (multiple components, each with a mesh) as well as multi-material files (a tree containing multiple meshes, each for a particular material).

      Finally, build items define what the slicer software actually sees. ManifoldCAD doesn't have an equivalent comprehension. We assume that top level objects -- nodes with no parents -- are build objects.

      Parameters

      Returns Promise<ArrayBuffer>

      A blob containing the converted model.