From 7415cdc8b12cfd0765046081c5bc0cfe7d37443a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 17:16:36 +0200 Subject: [PATCH] Refactor edge geometry calculation in RuntimeHost --- src/runtime-three/runtime-host.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 8ba5642b..f84d5df6 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -84,8 +84,7 @@ import { } from "../geometry/spline-road-mesh"; import { buildSplineCorridorJunctionEdgeMeshGeometry, - buildSplineCorridorJunctionMeshGeometry, - resolveSplineCorridorJunctionEdgeSettings + buildSplineCorridorJunctionMeshGeometry } from "../geometry/spline-corridor-junction-mesh"; import { createStarterMaterialSignature, @@ -4434,12 +4433,9 @@ export class RuntimeHost { meshes.push(mesh); } - const edge = resolveSplineCorridorJunctionEdgeSettings({ - junction, - paths: runtimeScene.paths - }); + const edge = junction.edge; const edgeGeometry = - edge === null + !edge.enabled || edge.width <= 0 ? null : buildSplineCorridorJunctionEdgeMeshGeometry({ junction, @@ -4448,7 +4444,7 @@ export class RuntimeHost { edge }); - if (edge !== null && edgeGeometry !== null) { + if (edgeGeometry !== null) { const edgeMesh = new Mesh( edgeGeometry, this.createRuntimeRoadEdgeMaterial(edge)