Skip to content

IfcManager uses local IFCWorker.js #152

@ThomasvanHoutum

Description

@ThomasvanHoutum

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?

Activity

fedelaport

fedelaport commented on Mar 2, 2023

@fedelaport

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @fedelaport@ThomasvanHoutum

        Issue actions

          IfcManager uses local IFCWorker.js · Issue #152 · ThatOpen/web-ifc-three