# Pro IGES bridge

The MIT-licensed bridge reads IGES into XCAF and serializes exact OCCT B-rep prototypes, occurrence transforms, names and part colors. It uses OCCT revision `09983262f098f05ffe1e77e126f13ea3cbc173e8`, distributed under LGPL-2.1 with the OCCT exception. Browser calls to measurement, meshing and section algorithms use the separately served, unmodified occt-wasm 5.18.3 kernel.

Use Emscripten 5.0.3 and build static OCCT libraries with the flags in `Dockerfile.builder` from the occt-wasm v5.18.3 source archive. This build used the public `ghcr.io/andymai/occt-wasm-builder` linux/amd64 manifest at digest `sha256:434cf55632511b92892de1dfe66182c8334ed4dbbe583f12aeb71ffa54b1bbc4`, using the static archives and generated headers from layer `sha256:82f7f6d45d1e898758d7a646157cc488c4c79eaae1d264d5ba6f697d914c4520`. The OCCT source contents match the corresponding source archive listed on the licenses page. Use the bundled build script to link the bridge.

```sh
bash vendor/iges-brep/build.sh /path/to/occt /path/to/occt/build public/engine/iges-brep
```

If using the source downloaded from the licenses page, put the downloaded `iges-brep-bridge.cpp` at `vendor/iges-brep/bridge.cpp` and run the downloaded `iges-brep-build.sh` from the same workspace root. Replace both `engine/iges-brep/iges-brep.mjs` and its adjacent WASM in a served build, then reopen an IGES model and activate Precise measurement or Section view.
