diff --git a/src/visGeometry/index.ts b/src/visGeometry/index.ts index c1f1377e..9298c6c7 100644 --- a/src/visGeometry/index.ts +++ b/src/visGeometry/index.ts @@ -153,7 +153,7 @@ class VisGeometry { public lightsGroup: Group; public agentPathGroup: Group; public instancedMeshGroup: Group; - public tempVolumeGroup: Group; // TODO remove + public volumeGroup: Group; // TODO remove private supportsWebGL2Rendering: boolean; private lodBias: number; private lodDistanceStops: number[]; @@ -220,9 +220,9 @@ class VisGeometry { this.instancedMeshGroup = new Group(); this.instancedMeshGroup.name = "instanced meshes for agents"; this.scene.add(this.instancedMeshGroup); - this.tempVolumeGroup = new Group(); - this.tempVolumeGroup.name = "volumes"; - this.scene.add(this.tempVolumeGroup); + this.volumeGroup = new Group(); + this.volumeGroup.name = "volumes"; + this.scene.add(this.volumeGroup); this.resetBounds(DEFAULT_VOLUME_DIMENSIONS); @@ -996,8 +996,8 @@ class VisGeometry { for (let i = this.instancedMeshGroup.children.length - 1; i >= 0; i--) { this.instancedMeshGroup.remove(this.instancedMeshGroup.children[i]); } - for (let i = this.tempVolumeGroup.children.length - 1; i >= 0; i--) { - this.tempVolumeGroup.remove(this.tempVolumeGroup.children[i]); + for (let i = this.volumeGroup.children.length - 1; i >= 0; i--) { + this.volumeGroup.remove(this.volumeGroup.children[i]); } const volRenderContext: HasThreeJsContext = { @@ -1049,7 +1049,7 @@ class VisGeometry { canvasHeight, orthoScale ); - this.tempVolumeGroup.add(volObj); + this.volumeGroup.add(volObj); } } else { const meshEntry = entry as MeshGeometry; @@ -1082,7 +1082,7 @@ class VisGeometry { this.boundingBoxMesh.visible = false; this.tickMarksMesh.visible = false; this.agentPathGroup.visible = false; - this.tempVolumeGroup.visible = false; + this.volumeGroup.visible = false; this.renderer.render( this.threejsrenderer, this.scene, @@ -1094,7 +1094,7 @@ class VisGeometry { this.boundingBoxMesh.visible = true; this.tickMarksMesh.visible = true; this.agentPathGroup.visible = true; - this.tempVolumeGroup.visible = true; + this.volumeGroup.visible = true; this.threejsrenderer.autoClear = false; // hide everything except the wireframe and paths, and render with the standard renderer