Enclosure Base Snap V1
implemented unverified
Enclosure base for a SNAP-ON lid (pure recipe): the R2 shell plus receiver windows through both X walls — no screws, the lid's cantilever hooks click in. Window position chains from the shared hook dimensions and the snap_joint verifies undercut and flexure strain before any CAD.
Declaration example
A minimal product declaration for this archetype — exposed parameters at
their defaults. Validate and build it with
forge validate / forge build.
schema: product/v1
id: my_enclosure_base_snap
archetype: enclosure_base_snap_v1@1
params:
box_l: 82mm
box_w: 52mm
box_h: 26mm
port_z: 12mm
modifiers:
- id: add_grid_slot_field
target: floor Parameters
| parameter | type | default | range | role | |
|---|---|---|---|---|---|
box_l | length | 82mm | 40mm … 200mm | functional | exposed |
box_w | length | 52mm | 30mm … 160mm | functional | exposed |
box_h | length | 26mm | 12mm … 80mm | functional | exposed |
wall | length | 2.4mm | 1.6mm … 5mm | manufacturing | |
floor_t | length | 3mm | 2mm … 6mm | manufacturing | |
corner_r | length | 6mm | 2mm … 14mm | aesthetic | |
port_z | length | 12mm | 6mm … expr(box_h - 5) | functional | exposed |
port | choice | usb_c | usb_c | micro_usb | usb_a | hdmi | audio_35 | sd | barrel_55 | functional | |
hook_w | length | 8mm | 5mm … 16mm | assembly | |
lip_h | length | 3mm | 2mm … 5mm | assembly | |
plug_depth | length | 3.5mm | 2mm … 8mm | assembly | |
hook_len | length | 9mm | 6mm … 18mm | assembly |
Regions
-
shellmounting surface -
flooraesthetic lightening
Contract
Guarantees
must-have features and invariants — verified on every build
box_shellpass_through_cutouthook_len + 4 < box_h
Will refuse
explicit prohibitions — the engine refuses to build these
- none declared
Not claimed
what passing validation does not mean
- Provided “as is” under Apache-2.0 — no warranty of fitness for a particular purpose.
Built from operations
rounded_box_shellport_cutoutsnap_window_pair
Allowed modifiers
add_grid_slot_fieldadd_hex_perforationfillet_soften
Subscribed validators (4)
form.shell_walls_okform.cuts_respect_keepoutstopology.single_connected_solidtopology.cutout_present