brepjs API Reference
    Preparing search index...

    Function exportThreeMF

    • Export a ShapeMesh to 3MF format (ArrayBuffer).

      3MF is the standard format for modern 3D printing slicers (PrusaSlicer, Cura, etc.). The output is a store-only ZIP archive containing the OPC content types, relationships, and 3D model XML.

      Parameters

      Returns ArrayBuffer

      An ArrayBuffer containing the 3MF ZIP archive.

      No external compression library is needed; the archive uses store-only (uncompressed) ZIP entries with CRC-32 integrity checks.

      const mesh = meshShape(solid);
      const buf = exportThreeMF(mesh, { unit: 'millimeter' });
      const blob = new Blob([buf], { type: 'application/vnd.ms-package.3dmanufacturing-3dmodel+xml' });