docs: record segment-subdivision fix in design spec

This commit is contained in:
sjat 2026-06-11 11:36:37 +02:00
parent 8b7562786c
commit 14e8cf583f

View file

@ -88,8 +88,16 @@ calibration independent of display/canvas size.
## Data flow
> **Correction (found in live testing):** the warp bends a path only at its *vertices*. A
> straight G0/G1 move is a 2-point segment, so warping just its endpoints draws a straight
> chord and hides the curvature entirely (measured ~320px of bow on bed-spanning lines
> collapsed to nothing). `projectSegments` therefore **subdivides each segment in work space
> (~20mm steps) before warping**, so the rendered polyline follows the curve. Arcs were
> already flattened to dense vertices and are unaffected.
```
G-code (mm)
→ subdivide segments to ~20mm in work space
→ applyAlignment (per-job rotate/translate, mm)
→ applyPolyWarp forward (mm → normalized image)
→ scale to canvas px → draw overlay