feat(junction): taper complex carriageway edits
This commit is contained in:
1 parent
d353b48a0b
commit
280b726c6f
4 files changed
+31
-6
No files matched your search
@@ -988,7 +988,13 @@ function applyDirectClusterPlans(model, junctionPlans, directEdit, clusters) {
|
||||
});
|
||||
for (const item of topology.carriageways) {
|
||||
const width = widths.get(item.key);
|
||||
if (Number.isFinite(width)) item.approach.widthMeters = width;
|
||||
if (Number.isFinite(width)) {
|
||||
// The outer section stays attached to the untouched source road. The
|
||||
// complex approach then tapers from that fixed width to this local
|
||||
// correction instead of opening a seam at the cluster boundary.
|
||||
item.approach.sourceWidthMeters ??= item.approach.widthMeters;
|
||||
item.approach.widthMeters = width;
|
||||
}
|
||||
const cutback = cutbacks.get(item.key);
|
||||
if (Number.isFinite(cutback)) item.approach.cutback = cutback;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user