Roadmap 0.11, Release

FX.351 CivilCraft swept path: the outline draws stair-stepped on a long alignment

  • Fix
  • Built · in the lab
  • CivilCraft

Along the 1.68 km Ridge Road alignment (showcase file) the swept outline is drawn stair-stepped (a grid envelope), not as a smooth band; on short feature lines it is smooth. The envelope resolution should follow the path length (or trace the vehicle edges) so long paths stay smooth. Seen while filming the 0.10 launch videos (L.3, 2026-11-17) in the released 0.10 app; not fixed yet. For 0.10.1 (docs/0.10.1.md).

2026-11-20 (civil-site-11): cause found: the core fills a dense grid over the path's whole bounding box and coarsens the cell to fit 4 million cells, so a 1.7 km alignment gets a cell of a metre or two. New sweptEnvelope (lib/sweptpath/envelope.js) stores only the touched cells as runs per row: cell 0.045 m at any length, the outline thins to a straight band (8 vertices for 1.68 km). Test with a 1.68 km diagonal run; in the Swept path add-on now. The core tool in the app still uses its grid until civil-11 mounts it.

LANDED 2026-11-20 (inbox-11b) civilcraft/a Discord member/swept.js envelope() now uses the sparse envelope (swept-envelope.js, a byte copy of lib/sweptpath/envelope.js, kept by tools/sweptpath-engine/sync.mjs); the old grid stays as envelopeGrid / {grid:true}. test-civilcraft-swept 45/0, test-sweptpath 94/0. (inbox-11b)

Verified 2026-11-20 (0.11 close-out): the core civilcraft swept path tool now uses the sparse envelope. In a real lab CivilCraft page (headless Chromium) Project.sweptOf on a 1.68 km line gave a cell of 0.045 m and a 10-vertex outline in 2.8 s, where the old grid gave a 0.74 m cell and 3028 vertices. test-civilcraft-swept 45/0, test-sweptpath 95/0, sweptpath browser 18/0.

Add a comment

Community comments

No comments yet

Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.

Sign in or create a free account to add a comment.