brepjs API Reference
    Preparing search index...

    Function importIGES

    • Import an IGES file from a Blob.

      Reads every part in the file: one solid comes back as that solid, several as a Compound of every part.

      Parameters

      • blob: Blob

        A Blob or File containing IGES data (.iges / .igs).

      Returns Promise<Result<UnknownDimShape>>

      A Result wrapping the imported shape (a Compound when the file holds several parts), or an error if parsing fails.

      The temporary file on the WASM FS is cleaned up automatically. The default occt-wasm kernel is built without an IGES translator, so there this returns an UNSUPPORTED_CAPABILITY error; import STEP instead.

      const shape = unwrap(await importIGES(igesBlob));