Skip to content

Commit

Permalink
Fix segment counts for 3D axes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Sep 3, 2023
1 parent f6ad165 commit b405dbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shared/visualizers/ThreeDimensionVisualizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,22 +194,22 @@ export default class ThreeDimensionVisualizer implements Visualizer {
this.axesTemplate.add(center);

const xAxis = new THREE.Mesh(
new THREE.CylinderGeometry(radius, radius, 1),
new THREE.CylinderGeometry(radius, radius, 1, 8),
new THREE.MeshPhongMaterial({ color: 0xff0000 })
);
xAxis.position.set(0.5, 0.0, 0.0);
xAxis.rotateZ(Math.PI / 2);
this.axesTemplate.add(xAxis);

const yAxis = new THREE.Mesh(
new THREE.CylinderGeometry(radius, radius, 1),
new THREE.CylinderGeometry(radius, radius, 1, 8),
new THREE.MeshPhongMaterial({ color: 0x00ff00 })
);
yAxis.position.set(0.0, 0.5, 0.0);
this.axesTemplate.add(yAxis);

const zAxis = new THREE.Mesh(
new THREE.CylinderGeometry(radius, radius, 1),
new THREE.CylinderGeometry(radius, radius, 1, 8),
new THREE.MeshPhongMaterial({ color: 0x2020ff })
);
zAxis.position.set(0.0, 0.0, 0.5);
Expand Down

0 comments on commit b405dbb

Please sign in to comment.