From f78400471f4ff161ba3c10367568934f3328e94a Mon Sep 17 00:00:00 2001 From: bmichalowski Date: Wed, 20 Jan 2021 13:25:15 +0100 Subject: [PATCH 1/2] profile.js, remove hardcoded cords The absence of this entry does not change the original example or in other uses of the ProfileWindow class. --- src/viewer/profile.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/viewer/profile.js b/src/viewer/profile.js index ca9a8028..89b78d65 100644 --- a/src/viewer/profile.js +++ b/src/viewer/profile.js @@ -663,8 +663,6 @@ export class ProfileWindow extends EventDispatcher { const sm = new THREE.MeshNormalMaterial(); const s = new THREE.Mesh(sg, sm); - s.position.set(589530.450, 231398.860, 769.735); - this.scene.add(s); } From bf43a683f3181b5ab60e56a4cfae6189572e32ae Mon Sep 17 00:00:00 2001 From: bmichalowski Date: Thu, 11 Feb 2021 09:49:27 +0100 Subject: [PATCH 2/2] remove unused sphere with default cords --- src/viewer/profile.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/viewer/profile.js b/src/viewer/profile.js index 89b78d65..84a1c9f7 100644 --- a/src/viewer/profile.js +++ b/src/viewer/profile.js @@ -658,14 +658,6 @@ export class ProfileWindow extends EventDispatcher { this.pickSphere = new THREE.Mesh(sg, sm); this.scene.add(this.pickSphere); - { - const sg = new THREE.SphereGeometry(2); - const sm = new THREE.MeshNormalMaterial(); - const s = new THREE.Mesh(sg, sm); - - this.scene.add(s); - } - this.viewerPickSphere = new THREE.Mesh(sg, sm); }