feat(cam): WebGL web rendering backend mockup (CAM/web) #68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patman/cam-web"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Self-contained raw-WebGL CAM toolpath viewer — the GPU-capable counterpart to
the CPU mockup in CAM/viz. Renders the same canned scene (orbit machine bed,
serpentine pocket toolpath as a cut-progress gradient ribbon, tool head + axis,
axis tripod) in real WebGL; HUD chrome is DOM/CSS over the canvas. Zero runtime
deps; classic script so it loads over file://. Toolpath drawn as triangle
ribbons (GL lineWidth is unreliable) and as a depth-independent overlay so the
pocket-floor pass is not buried in the solid stock.
Headless-verified on the Pi via the cached Playwright headless_shell +
SwiftShader (CAM/web/verify.sh) — no GPU/display. Wired into Buck as a GATED
genrule (//CAM/web:screenshot, -c cam.render=true) that runs verify.sh and emits
the validated PNG; incompatible-by-default so wildcard builds skip it (the action
is non-hermetic — host browser, local-exec only). Mockup geometry only, NOT the
CAM path core.
Adversarially reviewed twice (REWORK on the viewer, REJECT on the first
ungated buck target) -> addressed; re-reviewed PASS.
Stacks on #43.
Co-authored-by: patman-assist patrick-ai@kgroo.co