Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IfcManager uses local IFCWorker.js #152

Open
ThomasvanHoutum opened this issue Feb 15, 2023 · 1 comment
Open

IfcManager uses local IFCWorker.js #152

ThomasvanHoutum opened this issue Feb 15, 2023 · 1 comment

Comments

@ThomasvanHoutum
Copy link

I am using the IFCjs with vue example project. In the IfcManager.js function "setupIfcLoader" a path to a local IFCWorker is used:

async setupIfcLoader() {
        let self = this;
        await self.ifcLoader.ifcManager.useWebWorkers(true, '../IFCjs/IFCWorker.js')
        await self.ifcLoader.ifcManager.applyWebIfcConfig({
            COORDINATE_TO_ORIGIN: true,
            USE_FAST_BOOLS: false
        });
        self.setupThreeMeshBVH();
    }

Can that path be changed to the IFCWorker that is in the node module, so the local file can be removed from the project directory?

@fedelaport
Copy link

That's loaded on runtime. It has to be an accesible URL. The browser will request the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants