CAD importer sources and redistribution notices
================================================

This bundle accompanies the unmodified browser files from occt-import-js
0.0.23. The STEP/IGES importer uses Open CASCADE Technology (OCCT) 7.6.1.
Per-file notices identify the authors and applicable terms. The importer
is under LGPL-2.1 and OCCT under LGPL-2.1 with the Open CASCADE exception
1.0. These components are distributed without warranty under their licences.
See notices/ for the upstream licence texts.

Corresponding source
--------------------
cad-importer-sources.tar.gz contains the importer's C++ code, JavaScript
interface, CMake files, build scripts and the OCCT sources with their
original notices. The occt/ submodule is already in its build location.
emscripten-runtime-sources.tar.gz contains the Emscripten 3.1.69 system/
and src/ runtime sources (including musl, libc++, libc++abi and
compiler-rt) with per-file terms. Their separate notices, the Emscripten
licences and its AUTHORS file are also available under notices/.

Build on Windows
----------------
Extract importer-source.zip into a short working directory. Use a recent
CMake 3.x, Git and Python available on PATH. The upstream Windows build
uses emsdk 3.1.69 and mingw32-make. The setup script downloads the SDK
and MinGW 7.1.0 on first use. From a Windows command prompt:

  tar -xzf cad-importer-sources.tar.gz
  cd occt-import-js
  tools\setup_emscripten_win.bat
  tools\build_wasm_win.bat Release

Use the JS and WASM from build\wasm\Release\ together. In a local copy
of the viewer replace cad\occt-import-js.js and cad\occt-import-js.wasm
with this pair. Keep their names and serve the local site over HTTP. Open
/cad/ and choose a local STEP or IGES file. The unbundled application
loads the library from these relative URLs inside cad/parse-worker.js.
A compatible replacement can be used or debugged this way. For a minimal
standalone integration see examples/browser_step.html in the source tree.

Versions and integrity
----------------------
npm https://registry.npmjs.org/occt-import-js/-/occt-import-js-0.0.23.tgz
npm SHA-512 RFfYQXYFX5C1mB1Aywm0ShcUKzXOr/VzTnlzhBSDJOR6YCAPt1HYCzeXWg1vwwjn/cUxwqRNhhtf1dlewoZYCQ==
Importer https://github.com/kovacsv/occt-import-js/tree/c2148e54b456b571238d35cac037d304053d64b2
OCCT gitlink https://github.com/Open-Cascade-SAS/OCCT/tree/d2abb6d844231cb8f29be6894440874a4700e4a5
Toolchain https://github.com/emscripten-core/emscripten/tree/3.1.69
See SHA256SUMS for the source bundles, upstream input archives and the
two browser files in the website's cad/ directory.
