brepjs API Reference
    Preparing search index...

    Function importThreeMF

    • Import a 3MF file from a Blob.

      Extracts the model XML from the ZIP archive, parses vertices and triangles, and builds a solid by sewing the resulting triangular faces.

      Parameters

      • blob: Blob

        A Blob or File containing 3MF data (.3mf).

      Returns Promise<Result<UnknownDimShape>>

      A Result wrapping the imported solid, or an error if parsing fails.

      const file = new File([data], 'model.3mf');
      const shape = unwrap(await importThreeMF(file));