Rebuilding the corrected WebAssembly engine on Windows

The numerical correction is CGAL_ALWAYS_ROUND_TO_NEAREST. CGAL then expands interval bounds with nextafter instead of relying on a hardware rounding mode. Keep CGAL_DEBUG enabled.

The original Linux build recipe remains in build/build.sh. The additional source patch in build/cgal-wasm-rounding.patch applies the definition only to the Emscripten target. It also triangulates faces before Nef construction and preserves exact Minkowski coordinates through the union, avoiding assertion-triggered recovery.

The tested Windows build used the files in work/configure-wasm.ps1, work/fetch-wasm-deps.cjs and work/prepare-wasm-source.py, with a working directory containing work/. configure-wasm.ps1 records the tested machine's CMake/Ninja/Python locations, which should be adjusted for another machine.

Required source inputs
OpenSCAD https://codeload.github.com/openscad/openscad/zip/04834adb
Clipper2 https://codeload.github.com/AngusJohnson/Clipper2/zip/c7f820f6a03fa91f189b866d27bf40dfe47abaa6
Manifold https://codeload.github.com/elalish/manifold/zip/cc8a7f66d7d5a560da94346258c5b546af27811e
sanitizers-cmake https://codeload.github.com/arsenm/sanitizers-cmake/zip/bcb1fc68616e9645ca5acea2992412606373ab04
CGAL https://github.com/CGAL/cgal/releases/download/v6.1/CGAL-6.1.tar.xz
CGAL archive SHA-256 618da8a8b3f5be46b4f0a47a1efb3c9e6c03d6aab0f5531d56d355d32701d79f

Toolchain inputs
Install and activate Emscripten 6.0.5 with the official emsdk.
https://github.com/emscripten-core/emsdk
Flex/Bison https://github.com/lexxmark/winflexbison/releases/download/v2.5.25/win_flex_bison-2.5.25.zip
Flex/Bison ZIP SHA-256 8d324b62be33604b2c45ad1dd34ab93d722534448f55a16ca7292de32b6ac135
pkgconf https://github.com/pkgconf/pkgconf/releases/download/pkgconf-3.0.11/pkgconf-x64-3.0.11.msi
pkgconf MSI SHA-256 ea99c87ab4a3dd8799d47ef196f66ca57d274ec4f49b25d2f48b7c9d9df0eb96
The MSI was extracted with 7-Zip. Its PkgconfExeFile was copied to work/wasm-toolchain/pkgconf.exe.
All helper tools and generated files were kept under the build workspace.

Dependencies
fetch-wasm-deps.cjs downloads the precompiled public dependencies whose exact blob digests are recorded in wasm-image-manifest.json. It verifies each SHA-256 digest. It extracts no application data and runs no container.
The dependency archive headers include an older CGAL copy. prepare-wasm-source.py removes this older include tree before selecting CGAL 6.1.

Execution
Place the upstream ZIP at work/upstream.zip, the submodule ZIPs under work/wasm-toolchain/{manifold,Clipper2,sanitizers-cmake}.zip, and the CGAL release under work/wasm-toolchain/cgal-6.1.tar.xz.
Place emsdk under work/wasm-toolchain/emsdk-main and the Flex/Bison binaries under work/wasm-toolchain/flexbison.
Run node work/fetch-wasm-deps.cjs.
Run Python on work/prepare-wasm-source.py.
Run work/configure-wasm.ps1.
Build with cmake --build work/wasm-build-fixed --target OpenSCADExe --parallel 3.
The outputs are work/wasm-build-fixed/openscad.js and openscad.wasm.

Translations are skipped for the WebAssembly build. Browser-visible NASSCAD labels are maintained separately, and the engine runs with the default English diagnostics.
