Closed Moufblu closed 2 years ago
@bchapuis You can have some context about my issue here.
The problem is solved thanks to the community of IFCjs 🎉
The problem was that I had to use the web-ifc api from web-ifc-three
instead of web-ifc
.
So to solve my problem I had to:
web-ifc
dependencyweb-ifc-three
in the code for writing IFC (commit)
Context
I'm trying to use the web-ifc library from IFCjs to write a simple IFC structure from scratch.
I can already import an IFC file into a 3D viewer that I set up with IFCjs
web-ifc-three
.I added a button to my frontend interface to log a simple IFC structure in the console. The logged structure must be generated from scratch with
web-ifc
.The IFC structure I want to log comes from an example from
web-ifc
. It's an IFC writer with a code editor. It does what I want to do which means logging an IFC structure generated from scratch: link to the exampleCurrent behavior
Here's my current behavior:
I get this behavior with these lines of codes (sample):
Links to the related files: App.vue ifcWriter.js
Expected behavior
A simple IFC structure generated from scratch with
web-ifc
is logged in the console