fix: share complex junction entry sections across layers

This commit is contained in:
que01 committed 2026-09-09 17:23:17 +08:00
1 parent 49212b3f34
commit cd65dbe879
5 files changed
+221 -50

No files matched your search

+13
View File
@@ -405,3 +405,16 @@ placeholder. Explicit transition stations are clamped to the source polyline
range for legacy/direct compiler inputs and marked
`insufficient-source-length` when the requested length cannot fit. The solver
rejects such values before they can be saved.
## Shared complex approach consumers
`compileGeometry()` builds each complex approach BoundaryGraph once. External
road surfaces, edges, sidewalks, center markings and published lane centerlines
read its source-polyline `outer.stationMeters`; do not independently reconstruct
`outerRadius - cutback` in a consumer. The complex surface generator receives the
same graph instance. Transition lane endpoints interpolate the respective outer
and inner section edges, preserving the fixed source width when the inner width
changes. Unsupported, invalid or excluded transitions do not publish preview
lanes or their derived markings. This contract does not yet replace the separate
corner sidewalk overrun geometry or validate all short-road suppression paths.