diff --git a/assets/app.js b/assets/app.js index f614f3a..f0d9b3d 100644 --- a/assets/app.js +++ b/assets/app.js @@ -5,7 +5,4 @@ import './bootstrap.js'; * This file will be included onto the page via the importmap() Twig function, * which should already be in your base.html.twig. */ -import './styles/app.css'; -import API_CONFIG from "./config.js"; - -window.API_CONFIG = API_CONFIG; \ No newline at end of file +import './styles/app.css'; \ No newline at end of file diff --git a/assets/bim.js b/assets/bim.js index 69638b2..97e6e4b 100644 --- a/assets/bim.js +++ b/assets/bim.js @@ -77,8 +77,8 @@ BIM.loadIfc = async function (buffer, name) { } const fragments = this.components.get(OBC.FragmentsManager); - const fragmentIfcLoader = this.components.get(OBC.IfcLoader); + const classifier = this.components.get(OBC.Classifier); // NOTE: loads web-ifc WASM from https://unpkg.com/web-ifc@0.0.53/ await fragmentIfcLoader.setup(); @@ -107,14 +107,20 @@ BIM.loadIfc = async function (buffer, name) { model.name = name; this.world.scene.three.add(model); + // To actually add the model to the scene... for (const fragment of model.items) { this.world.meshes.add(fragment.mesh); } + classifier.byEntity(model); + const entities = classifier.list.entities; + // Useful? this.fragments = fragments; this.model = model; + console.log(entities); + return model; } @@ -147,6 +153,7 @@ BIM.setupHighligther = async function (model) { li.innerHTML = `
Architettura | File IFC | Data creazione | Ultima modifica | Azioni |
---|---|---|---|---|
{{ project.building.name }} | +{{ project.ifc }} | +{{ project.createdAt.format('Y-m-d') }} | +{{ project.lastModified.format('Y-m-d H:i:s') }} | ++ | + +
{{ app.user.useridentifier }}
- + {{ app.user.email ?? 'no email' }}
@@ -40,7 +40,7 @@