Skip to content
This repository was archived by the owner on Jan 12, 2025. It is now read-only.
This repository was archived by the owner on Jan 12, 2025. It is now read-only.

Creating one mesh for the ThreeJS scene using the WASM #9

@vinnividivicci

Description

@vinnividivicci

Hello @aothms,

I have a question that's been bouncing around in my head for a while: is it currently possible (or how much work would it be...) to have the IfcOpenShell WASM generate one single mesh (or multiple) without having to iterate in javascript over the entire model and create unique meshes (which is very slow)?

If I understand correctly, this would be a similar approach to how IFC.js loads the model into ThreeJs. They have the heavy lifting of generating the mesh done by the WASM which spits out one mesh that is then loaded into the ThreeJs scene and then use subsets to turn things on and off.

I think this would be an interesting direction to take the IfcOpenShell WASM in the short term since it would make it into a possible alternative IFC loader for ThreeJs. I like the work IFC.js is doing but IfcOpenShell is a more mature API in my opinion and it's always good to have options 😃

Thanks for your time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions