Open bartgrundeken opened 1 month ago
Hi, that's not actually working yet and really shouldn't be in any releases yet.
It's been tricky to get the non-zip option working correctly for some reason. This is where the option is applied:
https://github.com/xeokit/xeokit-convert/blob/main/src/XKTModel/writeXKTModelToArrayBuffer.js#L352
We'd love to be able to disable ZIPping, because it would actually load a lot of models faster and be easier on low-spec devices as well. If you happen to see where that can be fixed, feel free to make a fix though. Thanks
We have been trying to convert an IFC file into an XKT model and then converting that model into an array buffer using
writeXKTModelToArrayBuffer
, then turning it into an object url. We use version 1.1.19 of xeokit-convert and 0.0.56 of web-ifc. This is the (typescript) code we use:If we set the
zip
option totrue
it works. If we omit thezip
option it works as well (and strangely enough generates a smaller file). However, settingzip
explicitly tofalse
gives the following error:(Running a inside a vite/svelte app on Arc Browser, line numbers might not be reliable)
We tried the same code inside a Node script, and it also gives the same error.