Skip to content

Commit

Permalink
rename: tempVolumeGroup -> volumeGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
frasercl committed Oct 11, 2024
1 parent d2b8e72 commit 0033592
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/visGeometry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -1049,7 +1049,7 @@ class VisGeometry {
canvasHeight,
orthoScale
);
this.tempVolumeGroup.add(volObj);
this.volumeGroup.add(volObj);
}
} else {
const meshEntry = entry as MeshGeometry;
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 0033592

Please sign in to comment.