There are three ways to use manifold in your own projects:
The worker is a code evaluation sandbox intended to run as a web worker. It will bundle a script, include any dependencies, and even fetch those dependencies from a CDN if required. At run time, it will evaluate the script as a dynamically created function.
See:
There are slight behaviour differences between scripts running inside the manifoldCAD worker, and those outside.
See our import integration tests for examples.
When evaluated through the worker, isManifoldCAD() will return true. Otherwise it returns false.