From e3bdc61e77f80e8eaa0e041aecbbc5e60e4b3b5a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 14:35:17 +0200 Subject: [PATCH] auto-git: [change] src/viewport-three/viewport-host.ts --- src/viewport-three/viewport-host.ts | 60 ++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/src/viewport-three/viewport-host.ts b/src/viewport-three/viewport-host.ts index 4d846e89..6c50bb94 100644 --- a/src/viewport-three/viewport-host.ts +++ b/src/viewport-three/viewport-host.ts @@ -996,6 +996,22 @@ export class ViewportHost { }) ); private readonly terrainGridResizeOverlayGroup = new Group(); + private readonly terrainGridResizeEdgeOutline = new Mesh( + new BufferGeometry(), + new MeshBasicMaterial({ + color: TERRAIN_GRID_RESIZE_OUTLINE_COLOR, + depthTest: false, + depthWrite: false + }) + ); + private readonly terrainGridResizeEdgeTube = new Mesh( + new BufferGeometry(), + new MeshBasicMaterial({ + color: TERRAIN_GRID_RESIZE_EDGE_COLOR, + depthTest: false, + depthWrite: false + }) + ); private readonly terrainGridResizeEdgeLine = new Line( new BufferGeometry(), new LineBasicMaterial({ @@ -1004,6 +1020,32 @@ export class ViewportHost { depthWrite: false }) ); + private readonly terrainGridResizeArrowShaftOutline = new Mesh( + new CylinderGeometry( + TERRAIN_GRID_RESIZE_ARROW_SHAFT_OUTLINE_RADIUS, + TERRAIN_GRID_RESIZE_ARROW_SHAFT_OUTLINE_RADIUS, + 1, + 16 + ), + new MeshBasicMaterial({ + color: TERRAIN_GRID_RESIZE_OUTLINE_COLOR, + depthTest: false, + depthWrite: false + }) + ); + private readonly terrainGridResizeArrowShaft = new Mesh( + new CylinderGeometry( + TERRAIN_GRID_RESIZE_ARROW_SHAFT_RADIUS, + TERRAIN_GRID_RESIZE_ARROW_SHAFT_RADIUS, + 1, + 16 + ), + new MeshBasicMaterial({ + color: TERRAIN_GRID_RESIZE_ARROW_COLOR, + depthTest: false, + depthWrite: false + }) + ); private readonly terrainGridResizeArrowLine = new Line( new BufferGeometry(), new LineBasicMaterial({ @@ -1012,8 +1054,24 @@ export class ViewportHost { depthWrite: false }) ); + private readonly terrainGridResizeArrowHeadOutline = new Mesh( + new ConeGeometry( + TERRAIN_GRID_RESIZE_ARROW_HEAD_OUTLINE_RADIUS, + TERRAIN_GRID_RESIZE_ARROW_HEAD_OUTLINE_LENGTH, + 24 + ), + new MeshBasicMaterial({ + color: TERRAIN_GRID_RESIZE_OUTLINE_COLOR, + depthTest: false, + depthWrite: false + }) + ); private readonly terrainGridResizeArrowHead = new Mesh( - new ConeGeometry(0.13, TERRAIN_GRID_RESIZE_ARROW_HEAD_LENGTH, 16), + new ConeGeometry( + TERRAIN_GRID_RESIZE_ARROW_HEAD_RADIUS, + TERRAIN_GRID_RESIZE_ARROW_HEAD_LENGTH, + 24 + ), new MeshBasicMaterial({ color: TERRAIN_GRID_RESIZE_ARROW_COLOR, depthTest: false,