From 541bb78282a94efb5386a1ee92d7afd85c82ccf3 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 19 Oct 2026 02:14:10 +0000 Subject: [PATCH] fix(intro): keep restricted volumes to areas that fit the scene Fort Bragg's reservation polygon is larger than the scene, which turned every road into a convoy and floated curtain walls past the ground edge. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01KqP857pippaUs6konSDfe8 --- intro-sequence/src/city.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intro-sequence/src/city.js b/intro-sequence/src/city.js index e15dad663..55bc061b3 100644 --- a/intro-sequence/src/city.js +++ b/intro-sequence/src/city.js @@ -564,7 +564,8 @@ export function buildCity(d, opts = {}) { const pts = []; for (let i = 1; i < m.length - 1; i += 2) pts.push([m[i], m[i + 1]]); return { name: m[0], pts }; - }); + }).filter((p) => p.pts.length > 2 && p.pts.every(([x, y]) => Math.abs(x) < half * 1.35 && Math.abs(y) < half * 1.35)); + // the reservation itself is bigger than the scene: keep what fits out.milPolys = polys; insideMil = (x, y) => polys.some((p) => pip(x, y, p.pts)); }