2
0
Fork 0

feat: even bezel, tighter rear corners and a floor scoop #21

Merged
aleksei merged 13 commits from feat/gamma-rear-corner-radius into main 2026-11-29 16:10:50 +00:00
Owner

Summary

Rear corner radius, equal bezel and a smooth floor scoop for the front rows.

Tighten the rear corner radius

  • Added CASE_R_BACK = EDGE_R, so the two rear plan corners are R2.0, the
    same radius as the bottom/rear edge fillet.
  • The two front corners stay at R12.0.
  • Added rrect2d2 / rrect3d2 with separate front and rear corner radii, used
    by the pan wall, bottom fillet, top fillet, cavity and WKL blocker clip.
  • The rear cavity corner is clamped to at least R2.0 so the rear wall does
    not become paper thin in the corner.

Equal bezel all round

  • BACK_EXTRA set to 0, so the rear wall comes forward 5 mm.
  • The bezel is derived once: BEZEL = (CASE_W - OPEN_W)/2 = 5.7 mm.
  • OPEN_D = CASE_D_EXT - 2*BEZEL = 97.8 mm.
  • Result: 5.7 mm front, 5.7 mm sides, 5.7 mm rear.
  • Case depth drops from 114.2 to 109.2 mm; width stays 299.6 mm.
  • The rear wall is now 3.3 mm behind the PCB edge, the GH60 standard.
  • The USB opening follows the closer wall automatically (centre 15.25 → 14.72).

Floor clearance: flat floor, rim unchanged

The floor scoop is gone and the rim does not need to move either.

  • A Kailh hotswap socket on a DZ60RGB V2 sits partly inside the PCB and
    protrudes only 1.8 mm below it (measured), not the 4.5 mm first assumed.
  • SOCKET_H is now 1.8 mm, and TOP_FRONT_H is derived from it and clamped
    to a minimum of 18.0 mm.
  • With 1.8 mm the formula wants 16.8 mm, so the clamp applies: the rim stays
    at its original 18.0 mm
    and the case does not get taller.
  • The pan floor stays flat 3.0 mm everywhere; the front-row socket corner
    sits 0.5 mm above it.
  • The derived-rim formula stays in the model as a safeguard: raising SOCKET_H
    lifts rim, standoffs and PCB together, so the 6.5 mm switch recess is
    preserved.
  • Bumper recess back to 1.2 mm, 1.8 mm of floor under them.

PCB another millimetre lower

  • PCB_DROP raised from 2.0 to 3.0 mm: PCB, plate and standoffs sit 1 mm
    deeper (RECESS + PCB_DROP = 7.5 mm).
  • The USB opening follows automatically: centre 14.72 → 13.72 mm, bottom
    9.47 mm, still well above the pan rim.
  • The rim stays at 18.0 mm (the derived value is 17.8 mm, so the clamp
    applies), and the front-row socket keeps 0.48 mm of clearance.
  • Another millimetre would need the rim to rise (3.5 mm drop → 18.4 mm rim).

USB opening rounding

  • Replaced USB_EDGE_R and the hard-coded 2.5 mm corner radius with a single
    USB_ROUND = 1.2 mm.
  • The opening corners and the entry fillet now match the crisp edges of the rear
    face instead of a wide flare.
  • Entry envelope shrinks from 18 × 12.5 to 16.4 × 10.9 mm (R2.4 corners).

WKL blocker gap

  • The blockers are positioned from the key layout, not from the opening, so
    widening the case never moved them.
  • Their gap was measured from the key footprint at 0.4 mm, while a 1u keycap
    overhangs its footprint by about 0.42 mm per side — so the left shift and
    the Super keys were touching the blockers by ~0.02 mm.
  • BLOCKER_GAP raised to 0.9 mm, which is about 0.48 mm of real
    clearance to a keycap, in both X and Y.
  • The blockers still cover the plate cutouts and merge into the bezel.

USB opening clipped at the bottom

  • The opening was cut inside the top shell only, while the pan wall reaches
    0.8 mm higher (Z = 8.8). With the PCB now 3 mm lower the entry flare bottom
    dropped to Z = 8.27, so that step cut the lower half of the flare flat.
  • The cut moved into a usb_cut() module and is subtracted from the unioned
    body
    , so nothing can clip it any more.
  • Measured the flare before/after at several depths: the void now follows the
    quarter circle exactly (8.75 vs 8.74 at z-depth 0.10, etc.).
  • Nothing else moved: same opening, same height, same fillet.

Verification

  • case_body.stl: 1 shell, 0 non-manifold edges, 164.13 cm³;
    bbox 299.6 × 109.2 × 29.235 mm.
  • plate.stl: 1 shell, 0 non-manifold edges, 21.46 cm³.
  • case_assembly.stl: 3 shells (body, plate, PCB), 0 non-manifold edges,
    228.72 cm³.
  • main_body intersections with the PCB and plate are empty.
  • A 12 × 6.4 × 4.5 mm hotswap envelope under every switch, including a 0.5 mm
    forward offset, does not touch the body.
  • Section render shows a smooth, symmetric dish; top view shows an even frame.
  • ./generate.sh, dprint check and git diff --check pass.

Notes

  • Socket clearance in the scoop is about 0.15 mm for a 4.5 mm socket; a
    4.6 mm socket does not clear.
  • If a thicker floor is preferred over the 2 mm PCB drop, PCB_DROP = 1.6
    keeps everything else and allows a shallower scoop.
  • The bumper recess is now 0.5 mm, so bumpers protrude 2.5 mm instead of 1.8 mm;
    the case sits 0.7 mm higher with the same 6° angle.
## Summary Rear corner radius, equal bezel and a smooth floor scoop for the front rows. ### Tighten the rear corner radius - Added `CASE_R_BACK = EDGE_R`, so the two rear plan corners are **R2.0**, the same radius as the bottom/rear edge fillet. - The two front corners stay at **R12.0**. - Added `rrect2d2` / `rrect3d2` with separate front and rear corner radii, used by the pan wall, bottom fillet, top fillet, cavity and WKL blocker clip. - The rear cavity corner is clamped to at least **R2.0** so the rear wall does not become paper thin in the corner. ### Equal bezel all round - `BACK_EXTRA` set to **0**, so the rear wall comes forward 5 mm. - The bezel is derived once: `BEZEL = (CASE_W - OPEN_W)/2 = 5.7 mm`. - `OPEN_D = CASE_D_EXT - 2*BEZEL = 97.8 mm`. - Result: **5.7 mm** front, **5.7 mm** sides, **5.7 mm** rear. - Case depth drops from 114.2 to **109.2 mm**; width stays 299.6 mm. - The rear wall is now **3.3 mm** behind the PCB edge, the GH60 standard. - The USB opening follows the closer wall automatically (centre `15.25 → 14.72`). ### Floor clearance: flat floor, rim unchanged The floor scoop is gone and the rim does not need to move either. - A Kailh hotswap socket on a DZ60RGB V2 sits partly inside the PCB and protrudes only **1.8 mm** below it (measured), not the 4.5 mm first assumed. - `SOCKET_H` is now **1.8 mm**, and `TOP_FRONT_H` is derived from it and clamped to a minimum of **18.0 mm**. - With 1.8 mm the formula wants 16.8 mm, so the **clamp applies: the rim stays at its original 18.0 mm** and the case does not get taller. - The pan floor stays **flat 3.0 mm** everywhere; the front-row socket corner sits **0.5 mm** above it. - The derived-rim formula stays in the model as a safeguard: raising `SOCKET_H` lifts rim, standoffs and PCB together, so the 6.5 mm switch recess is preserved. - Bumper recess back to **1.2 mm**, 1.8 mm of floor under them. ### PCB another millimetre lower - `PCB_DROP` raised from **2.0** to **3.0 mm**: PCB, plate and standoffs sit 1 mm deeper (`RECESS + PCB_DROP = 7.5 mm`). - The USB opening follows automatically: centre `14.72 → 13.72 mm`, bottom `9.47 mm`, still well above the pan rim. - The rim stays at **18.0 mm** (the derived value is 17.8 mm, so the clamp applies), and the front-row socket keeps **0.48 mm** of clearance. - Another millimetre would need the rim to rise (3.5 mm drop → 18.4 mm rim). ### USB opening rounding - Replaced `USB_EDGE_R` and the hard-coded 2.5 mm corner radius with a single **`USB_ROUND = 1.2 mm`**. - The opening corners and the entry fillet now match the crisp edges of the rear face instead of a wide flare. - Entry envelope shrinks from **18 × 12.5** to **16.4 × 10.9 mm** (R2.4 corners). ### WKL blocker gap - The blockers are positioned from the **key layout**, not from the opening, so widening the case never moved them. - Their gap was measured from the key *footprint* at 0.4 mm, while a 1u keycap overhangs its footprint by about **0.42 mm** per side — so the left shift and the Super keys were touching the blockers by ~0.02 mm. - `BLOCKER_GAP` raised to **0.9 mm**, which is about **0.48 mm** of real clearance to a keycap, in both X and Y. - The blockers still cover the plate cutouts and merge into the bezel. ### USB opening clipped at the bottom - The opening was cut **inside the top shell only**, while the pan wall reaches 0.8 mm higher (`Z = 8.8`). With the PCB now 3 mm lower the entry flare bottom dropped to `Z = 8.27`, so that step cut the lower half of the flare flat. - The cut moved into a `usb_cut()` module and is subtracted from the **unioned body**, so nothing can clip it any more. - Measured the flare before/after at several depths: the void now follows the quarter circle exactly (`8.75` vs `8.74` at z-depth 0.10, etc.). - Nothing else moved: same opening, same height, same fillet. ## Verification - `case_body.stl`: 1 shell, 0 non-manifold edges, **164.13 cm³**; bbox 299.6 × 109.2 × 29.235 mm. - `plate.stl`: 1 shell, 0 non-manifold edges, 21.46 cm³. - `case_assembly.stl`: 3 shells (body, plate, PCB), 0 non-manifold edges, 228.72 cm³. - `main_body` intersections with the PCB and plate are empty. - A 12 × 6.4 × 4.5 mm hotswap envelope under every switch, including a 0.5 mm forward offset, does not touch the body. - Section render shows a smooth, symmetric dish; top view shows an even frame. - `./generate.sh`, `dprint check` and `git diff --check` pass. ## Notes - Socket clearance in the scoop is about **0.15 mm** for a 4.5 mm socket; a 4.6 mm socket does not clear. - If a thicker floor is preferred over the 2 mm PCB drop, `PCB_DROP = 1.6` keeps everything else and allows a shallower scoop. - The bumper recess is now 0.5 mm, so bumpers protrude 2.5 mm instead of 1.8 mm; the case sits 0.7 mm higher with the same 6° angle.
- add CASE_R_BACK, defaulting to EDGE_R, so the rear plan corners use the same 2 mm radius as the bottom/rear fillet
- keep the front corners at R12
- add rrect2d2/rrect3d2 with separate front and rear corner radii
- update the pan, bottom fillet, top fillet, cavity and blocker clip to use them
- keep the rear cavity corner at least R2 to keep the wall thick
- document the front/rear radii and parameters
- set BACK_EXTRA to 0 so the rear bezel matches the front
- derive the bezel width from the case and opening widths
- derive OPEN_D from the case depth and the bezel, so all sides are 5.7 mm
- case depth drops from 114.2 to 109.2 mm; the rear wall is 3.3 mm behind the PCB edge
- the USB opening follows the closer rear wall automatically
- update the README dimensions, USB heights and parameters
aleksei changed title from feat: tighten the gamma rear corner radius to feat: tighten the gamma rear corners and even out the bezel 2026-11-07 15:35:12 +00:00
- add a shallow floor scoop so the front-row hotswap sockets clear the floor
- 1.4 mm deep with a 6 mm smoothstep blend built from 24 lofted slices
- the blend is tangent to the floor and to the scoop bottom, so there is no step or visible rim
- footprint spans the interior width minus 2 mm and Y=-50.2..-25.0 with R12 corners
- reduce the bumper recess depth to 0.5 mm so the front feet keep 1.1 mm of floor
- document the scoop, floor thicknesses and new parameters
aleksei changed title from feat: tighten the gamma rear corners and even out the bezel to feat: even bezel, tighter rear corners and a floor scoop 2026-11-07 16:15:25 +00:00
- move the scoop 1 mm inboard of the cavity instead of 2 mm
- derive the front corners from the cavity front radius (R7.0)
- use a tighter rear corner radius (R1.0) from the cavity rear radius
- shorten the blend from 6 to 3 mm
- keep the 1.4 mm depth and the socket clearance
- update the README notes and parameters
- drive the scoop height from the horizontal inset instead of the height
- use (1 - cos)/2 so the surface is tangent to the floor and to the scoop bottom
- widen the blend to 5 mm so the dish reads as a soft dip, not a chamfer
- keep the 1 mm wall gap, the contour radii and the 1.4 mm depth
- keep the socket clearance
- the rear corner radius was shrunk by the blend inset and collapsed to a square corner
- keep a constant R4.0 at the rear so the corners stay visibly rounded
- keep the front corners following the big front radius (R7.0 minus inset)
- document the two radii in the README
- replace USB_EDGE_R and the hard-coded 2.5 corner radius with one USB_ROUND of 1.2 mm
- the opening corners and the entry fillet now match the crisp edges of the rear face
- the entry envelope shrinks from 18 x 12.5 to 16.4 x 10.9 mm
- update the README USB note and parameters
- remove the floor scoop and all its parameters and modules
- raise TOP_FRONT_H from 18.0 to 19.5, so the rim and the PCB rise together while the pan floor stays put
- keep RECESS + PCB_DROP at 6.5 mm, so the switches stay as deeply recessed
- the extra 1.5 mm buys the hotswap clearance instead of the scoop
- restore the bumper recess to 1.2 mm now that the floor is flat
- update the README floor-clearance section, heights and parameters
- the socket height is the only unknown, so make it a parameter (SOCKET_H)
- derive TOP_FRONT_H from it so the worst front-row socket corner keeps SOCKET_CLEAR above the flat pan floor
- never go below the original 18 mm rim
- default SOCKET_H 4.0 gives a 19.1 mm rim; 3.6 gives 18.7, 3.3 gives 18.4
- keep the flat 3.0 mm floor and the 6.5 mm switch recess
- update the README clearance section and parameters
- the socket sits partly inside the PCB and protrudes only 1.8 mm below it
- with SOCKET_H=1.8 the derived rim wants 16.8 mm, so the 18.0 mm clamp applies
- the rim stays at its original height and the front-row socket keeps 1.5 mm of clearance
- keep the flat 3.0 mm floor and the derived-rim formula as a safeguard
- update the README numbers
- PCB_DROP 2.0 -> 3.0, so the PCB, plate and standoffs sit 1 mm deeper
- the USB opening follows automatically: centre 14.72 -> 13.72, bottom 9.47
- the rim stays at 18.0 mm, the derived value is 17.8 and the clamp applies
- the front-row socket corner keeps 0.48 mm above the flat floor
- one more millimetre is not available without raising the rim
- update the README seating depth, socket clearance and USB heights
- the blockers are placed from the key layout, so widening the case never moved them
- BLOCKER_GAP was 0.4 mm from the key footprint, while a 1u keycap overhangs its footprint by about 0.42 mm per side, so the left shift and the Super keys touched the blockers by a hair
- raise the gap to 0.9 mm: about 0.48 mm of real clearance to a keycap
- blockers still cover the plate cutouts and merge into the bezel
- document the gap rule in the README
- the opening was cut inside the top shell only, so the pan wall (which reaches 0.8 mm higher) clipped the lower half of the entry flare
- with the PCB 3 mm lower the flare bottom dropped to Z=8.27, below that step, and the port read as cut off at the bottom
- move the cut into a usb_cut() module and subtract it from the unioned body
- measured the flare profile before and after: it now follows the quarter circle at every depth
- note the cut order in the README
aleksei deleted branch feat/gamma-rear-corner-radius 2026-11-29 16:10:50 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zoo/keyboard!21
No description provided.