From 0f8050b8c046a77d590e6a5c1ff8099052495c45 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 02:59:05 +0200 Subject: [PATCH] Add road edge kind labeling and utilities --- src/app/App.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index bc4b3d1f..6e6f777f 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -241,6 +241,10 @@ import { getScenePathLabel, getScenePathPointIndex, getScenePaths, + normalizeScenePathRoadEdgeHeight, + normalizeScenePathRoadEdgeKind, + normalizeScenePathRoadEdgeMaterialId, + normalizeScenePathRoadEdgeWidth, normalizeScenePathRoadFalloff, normalizeScenePathRoadHeightOffset, normalizeScenePathRoadShoulderWidth, @@ -251,6 +255,8 @@ import { normalizeScenePathRoadMaterialId, type ScenePath, type ScenePathCurveMode, + type ScenePathRoadEdgeKind, + type ScenePathRoadEdgeSide, type ScenePathPoint } from "../document/paths"; import { @@ -1502,6 +1508,19 @@ function getPathLabelById(pathId: string, paths: ScenePath[]): string { : getScenePathLabel(paths[pathIndex], pathIndex); } +function getRoadEdgeKindLabel(kind: ScenePathRoadEdgeKind): string { + switch (kind) { + case "curb": + return "Curb"; + case "softShoulder": + return "Soft shoulder"; + case "bank": + return "Bank"; + case "ditch": + return "Ditch"; + } +} + function getTerrainLabel(terrain: Terrain, index: number): string { return terrain.name ?? `Terrain ${index + 1}`; }