diff --git a/src/civil/RoadNavigator/index.html b/src/civil/RoadNavigator/index.html
index e7b84916b..eaf4b379c 100644
--- a/src/civil/RoadNavigator/index.html
+++ b/src/civil/RoadNavigator/index.html
@@ -59,12 +59,11 @@
scene.add(ambientLight);
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());
let fragments = new OBC.FragmentManager(components);
- let fragmentIfcLoader = new OBC.FragmentIfcLoader(components, fragments);
+ let fragmentIfcLoader = new OBC.FragmentIfcLoader(components);
const mainToolbar = new OBC.Toolbar(components, { name: 'Main Toolbar', position: 'bottom' });
components.ui.addToolbar(mainToolbar);
diff --git a/src/core/MaterialManager/index.html b/src/core/MaterialManager/index.html
index 3b9e4fbeb..452d6331a 100644
--- a/src/core/MaterialManager/index.html
+++ b/src/core/MaterialManager/index.html
@@ -54,7 +54,6 @@
scene.add(ambientLight);
const grid = new OBC.SimpleGrid(components);
- components.tools.add("grid", grid);
/*MD
### ๐จโ๐จ Seamless Material Control
diff --git a/src/core/ScreenCuller/index.html b/src/core/ScreenCuller/index.html
index 67990e8b6..aa223868c 100644
--- a/src/core/ScreenCuller/index.html
+++ b/src/core/ScreenCuller/index.html
@@ -56,7 +56,6 @@
scene.add(ambientLight);
const grid = new OBC.SimpleGrid(components);
- components.tools.add("grid", grid);
/*MD
diff --git a/src/core/Simple2DScene/index.html b/src/core/Simple2DScene/index.html
index 5aed28fb5..11587ec7f 100644
--- a/src/core/Simple2DScene/index.html
+++ b/src/core/Simple2DScene/index.html
@@ -41,7 +41,6 @@
components.camera.controls.setLookAt(10, 10, 10, 0, 0, 0);
const grid = new OBC.SimpleGrid(components);
- components.tools.add("grid", grid);
const boxMaterial = new THREE.MeshStandardMaterial({color: '#6528D7'});
const boxGeometry = new THREE.BoxGeometry(3, 3, 3);
@@ -72,7 +71,6 @@
*/
const simple2dScene = new OBC.Simple2DScene(components);
- components.tools.add("Simple2DScene", simple2dScene);
/*MD
Great! Now we can start adding things to it, just like we would with the
diff --git a/src/core/SimpleClipper/index.html b/src/core/SimpleClipper/index.html
index c8368f5bb..f993c2520 100644
--- a/src/core/SimpleClipper/index.html
+++ b/src/core/SimpleClipper/index.html
@@ -48,7 +48,6 @@
components.scene.setup();
const grid = new OBC.SimpleGrid(components);
- components.tools.add("grid", grid);
/*MD
### โ๏ธ Clipping Tool
@@ -110,15 +109,9 @@
*/
- components.tools.add("clipper", clipper);
clipper.enabled = true;
/*MD
- :::tip Adding it to the tools component
- The Tools Component will help you keep your code tidy. For more information about the Tools component, check out
- [its own tutorial](./ToolsComponent.mdx). ๐
-
- :::
### โ๏ธ Creating a Toolbar for the Clipper
---
diff --git a/src/core/SimpleRaycaster/index.html b/src/core/SimpleRaycaster/index.html
index 9260ef677..2a2d0939d 100644
--- a/src/core/SimpleRaycaster/index.html
+++ b/src/core/SimpleRaycaster/index.html
@@ -46,7 +46,6 @@
components.scene.setup();
const grid = new OBC.SimpleGrid(components);
- components.tools.add("grid", grid);
/*MD
### ๐ค Touching things
diff --git a/src/core/SimpleScene/index.html b/src/core/SimpleScene/index.html
index e3716a9ef..cca914358 100644
--- a/src/core/SimpleScene/index.html
+++ b/src/core/SimpleScene/index.html
@@ -116,15 +116,8 @@
*/
const grid = new OBC.SimpleGrid(components);
- components.tools.add("grid", grid);
/*MD
- :::tip Adding it to the tools component
-
- The Tools Component will help you keep your code tidy. For more information about the Tools component, check out
- [its own tutorial](./ToolsComponent.mdx). ๐
-
- :::
๐ Also, let's add some real geometry to our small 3D app. All the components are built on top of
[Three.js](https://threejs.org/), which means that Three.js code will work natively with them.
diff --git a/src/fragments/FragmentBoundingBox/index.html b/src/fragments/FragmentBoundingBox/index.html
index 558fd0c66..86fb199a4 100644
--- a/src/fragments/FragmentBoundingBox/index.html
+++ b/src/fragments/FragmentBoundingBox/index.html
@@ -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);
diff --git a/src/fragments/FragmentCacher/index.html b/src/fragments/FragmentCacher/index.html
index adc67b826..36a4f6117 100644
--- a/src/fragments/FragmentCacher/index.html
+++ b/src/fragments/FragmentCacher/index.html
@@ -76,7 +76,7 @@
*/
const fragments = new OBC.FragmentManager(components);
- let fragmentIfcLoader = new OBC.FragmentIfcLoader(components, fragments);
+ let fragmentIfcLoader = new OBC.FragmentIfcLoader(components);
fragmentIfcLoader.settings.webIfc.COORDINATE_TO_ORIGIN = true;
fragmentIfcLoader.settings.webIfc.OPTIMIZE_PROFILES = true;
fragmentIfcLoader.settings.wasm = {
diff --git a/src/fragments/FragmentExploder/index.html b/src/fragments/FragmentExploder/index.html
index ac584b3e4..7125e0b9c 100644
--- a/src/fragments/FragmentExploder/index.html
+++ b/src/fragments/FragmentExploder/index.html
@@ -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 = renderer.postproduction.customEffects;
effects.excludedMeshes.push(gridMesh);
@@ -113,7 +112,7 @@
*/
- const classifier = new OBC.FragmentClassifier(components, fragments);
+ const classifier = new OBC.FragmentClassifier(components);
/*MD
@@ -145,7 +144,7 @@
*/
- const exploder = new OBC.FragmentExploder(components, fragments, classifier);
+ const exploder = new OBC.FragmentExploder(components);
/*MD
diff --git a/src/fragments/FragmentHider/index.html b/src/fragments/FragmentHider/index.html
index e4be0dc91..83b4189c7 100644
--- a/src/fragments/FragmentHider/index.html
+++ b/src/fragments/FragmentHider/index.html
@@ -100,7 +100,7 @@
even after closing the browser and opening it again:
*/
- const hider = new OBC.FragmentHider(components, fragments, undefined, true);
+ const hider = new OBC.FragmentHider(components);
await hider.loadCached();
/*MD
diff --git a/src/fragments/FragmentIfcLoader/index.html b/src/fragments/FragmentIfcLoader/index.html
index 358375367..0a78d1508 100644
--- a/src/fragments/FragmentIfcLoader/index.html
+++ b/src/fragments/FragmentIfcLoader/index.html
@@ -71,7 +71,7 @@
*/
let fragments = new OBC.FragmentManager(components);
- let fragmentIfcLoader = new OBC.FragmentIfcLoader(components, fragments);
+ let fragmentIfcLoader = new OBC.FragmentIfcLoader(components);
/*MD
:::info Why not just IFC?
diff --git a/src/fragments/FragmentManager/index.html b/src/fragments/FragmentManager/index.html
index d680a822a..d6b185457 100644
--- a/src/fragments/FragmentManager/index.html
+++ b/src/fragments/FragmentManager/index.html
@@ -56,7 +56,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);
diff --git a/src/fragments/FragmentTree/index.html b/src/fragments/FragmentTree/index.html
index 2dfd0c6f6..d9336c936 100644
--- a/src/fragments/FragmentTree/index.html
+++ b/src/fragments/FragmentTree/index.html
@@ -60,7 +60,6 @@
scene.add(ambientLight);
const grid = new OBC.SimpleGrid(components, new THREE.Color(0x666666));
- components.tools.add("grid", grid);
components.renderer.postproduction.customEffects.excludedMeshes.push(grid.get());
/*MD
diff --git a/src/measurement/AngleMeasurement/index.html b/src/measurement/AngleMeasurement/index.html
index 14ae6e052..aa5c545bb 100644
--- a/src/measurement/AngleMeasurement/index.html
+++ b/src/measurement/AngleMeasurement/index.html
@@ -46,6 +46,7 @@
"openbim-components": "../../../resources/openbim-components.js"
}
}
+