Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Nov 28, 2023
1 parent f8057e5 commit 925ca79
Show file tree
Hide file tree
Showing 17 changed files with 265 additions and 178 deletions.
427 changes: 265 additions & 162 deletions resources/openbim-components.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/fragments/FragmentClipStyler/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
components.scene.setup();

const grid = new OBC.SimpleGrid(components, new THREE.Color(0x666666));
components.tools.add('grid', grid);
const gridMesh = grid.get();
postproduction._customEffects.excludedMeshes.push(gridMesh);

Expand Down
1 change: 0 additions & 1 deletion src/fragments/FragmentHider/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
scene.add(ambientLight);

const grid = new OBC.SimpleGrid(components, new THREE.Color(0x666666));
components.tools.add('grid', grid);
const gridMesh = grid.get();
const effects = components.renderer.postproduction.customEffects;
effects.excludedMeshes.push(gridMesh);
Expand Down
1 change: 0 additions & 1 deletion src/fragments/FragmentHighlighter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
scene.add(ambientLight);

const grid = new OBC.SimpleGrid(components, new THREE.Color(0x666666));
components.tools.add('grid', grid);
const gridMesh = grid.get();
const effects = components.renderer.postproduction.customEffects;
effects.excludedMeshes.push(gridMesh);
Expand Down
1 change: 0 additions & 1 deletion src/fragments/FragmentIfcLoader/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
components.scene.setup();

const grid = new OBC.SimpleGrid(components, new THREE.Color(0x666666));
components.tools.add('grid', grid);
const customEffects = components.renderer.postproduction.customEffects;
customEffects.excludedMeshes.push(grid.get());

Expand Down
1 change: 0 additions & 1 deletion src/fragments/FragmentPlans/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
components.scene.setup();

const grid = new OBC.SimpleGrid(components, new THREE.Color(0x666666));
components.tools.add('grid', grid);
const gridMesh = grid.get();
postproduction._customEffects.excludedMeshes.push(gridMesh);

Expand Down
1 change: 0 additions & 1 deletion src/ifc/IfcPropertiesFinder/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
components.scene.setup();

const grid = new OBC.SimpleGrid(components, new THREE.Color(0x666666));
components.tools.add('grid', grid);
const gridMesh = grid.get();
renderer.postproduction.customEffects.excludedMeshes.push(gridMesh);

Expand Down
1 change: 0 additions & 1 deletion src/ifc/IfcPropertiesManager/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
components.scene.setup();

const grid = new OBC.SimpleGrid(components, new THREE.Color(0x666666));
components.tools.add('grid', grid);
const gridMesh = grid.get();
renderer.postproduction.customEffects.excludedMeshes.push(gridMesh);

Expand Down
1 change: 0 additions & 1 deletion src/ifc/IfcPropertiesProcessor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
components.scene.setup();

const grid = new OBC.SimpleGrid(components, new THREE.Color(0x666666));
components.tools.add('grid', grid);
const gridMesh = grid.get();
renderer.postproduction.customEffects.excludedMeshes.push(gridMesh);

Expand Down
1 change: 0 additions & 1 deletion src/measurement/AngleMeasurement/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
scene.add(ambientLight);

const grid = new OBC.SimpleGrid(components);
components.tools.add('grid', grid);

/*MD
### 📏 Dimensions Tool
Expand Down
1 change: 0 additions & 1 deletion src/navigation/MiniMap/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
scene.add(ambientLight);

const grid = new OBC.SimpleGrid(components, new THREE.Color(0x666666));
components.tools.add('grid', grid);
const gridMesh = grid.get();
renderer.postproduction.customEffects.excludedMeshes.push(gridMesh);

Expand Down
1 change: 0 additions & 1 deletion src/navigation/PostproductionRenderer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
components.init();

const grid = new OBC.SimpleGrid(components, new THREE.Color(0x666666));
components.tools.add('grid', grid);

components.camera.controls.setLookAt(12, 6, 8, 0, 0, -10);

Expand Down
1 change: 0 additions & 1 deletion src/ui/DragAndDropInput/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
scene.add(ambientLight);

const grid = new OBC.SimpleGrid(components);
components.tools.add('grid', grid);

const dragAndDrop = new OBC.DragAndDropInput(components, {subTitle: "Any modern IFC file will do!"});
components.ui.add(dragAndDrop);
Expand Down
1 change: 0 additions & 1 deletion src/ui/Drawer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
scene.add(ambientLight);

const grid = new OBC.SimpleGrid(components);
components.tools.add('grid', grid);

const drawer = new OBC.Drawer(components);
components.ui.add(drawer);
Expand Down
1 change: 0 additions & 1 deletion src/ui/Modal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
scene.add(ambientLight);

const grid = new OBC.SimpleGrid(components);
components.tools.add('grid', grid);

const modal = new OBC.Modal(components, "Hello modal");
components.ui.add(modal);
Expand Down
1 change: 0 additions & 1 deletion src/ui/Spinner/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
scene.add(ambientLight);

const grid = new OBC.SimpleGrid(components);
components.tools.add('grid', grid);

const spinner = new OBC.Spinner(components);
components.ui.add(spinner);
Expand Down
1 change: 0 additions & 1 deletion src/ui/ToastNotification/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
scene.add(ambientLight);

const grid = new OBC.SimpleGrid(components);
components.tools.add('grid', grid);


const toast = new OBC.ToastNotification(components, {message: "Model loaded!"});
Expand Down

0 comments on commit 925ca79

Please sign in to comment.