Parse the IFC
This is where the fun begins!
We are going to modify the orignal source code. Take a look at IFC.js
.
src/IFC.js
As we discuessed earlier, we cannot build the entire gemoetry inside the Web Worker
.
example/web-worker/worker/worker.js
If we run this code, it won't work. The Web Worker has no idea what IFC.js
is. We must import the scripts.
example/web-worker/worker/worker.js
Again, please note that this will not work! The Web Worker
will complain that Three and Chevrotain is missing.
Again, to clarify - WE CANNOT USE THREE INSIDE THE WEB WORKER.
Last updated