You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(print): correct 3D rendering of wall features + face-a-wall default
Three fixes for the 3D preview:
1. Near-plane projection bug: projectPoint culled at camZ <= 1 (mm),
but values like camZ = 1.5 still produce NDC like (camX*1.73 / 1.5)
that map to screen coords thousands of pixels off-canvas. When one
endpoint of a line projects normally and the other lands in this
degenerate zone, the rendered line stretches across half the
viewport — the user reported wall features appearing as huge
garbage lines. Bumped the near plane to 50 mm; nothing in a normal
room ever sits inside that volume.
2. Holes inside no-paint cutouts: pdf-builder.ts § 4 already drops
stars whose centres fall inside a no-paint feature (FR-013). The 3D
preview wasn't applying the same exclusion, so windows showed star
dots inside them — misleading because those holes won't print.
Added a local pointInPolygonUV mirroring the pdf-builder helper and
filter holes before binning, so the preview matches the PDF.
3. Default camera now faces a wall instead of looking straight up at
the ceiling. Picks the first ENABLED wall (or wall-0 as fallback)
and computes yaw from its midpoint relative to the observer; pitch
is 0 (horizon). The user can immediately see what their stencil
looks like on a wall — including window/door/closet placement —
without having to drag through 90° of pitch first.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments