cad_generate_battery_cover
Generate a parametric battery cover with cantilever snap-fit clip and grip ribs, producing editable OpenSCAD and watertight STL for 3D printing.
Instructions
Generates a complete parametric 3D-printable battery cover (TV remote, controller, toy) with cantilever snap-fit clip, alignment retention prongs, and grip ribs. Emits both human-editable OpenSCAD (.scad) code and ready-to-print watertight binary STL (.stl).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Nominal cavity width in millimeters (e.g. 33.2). | |
| length | Yes | Nominal cavity length in millimeters (e.g. 62.4). | |
| filename | No | Base filename without extension. | |
| gripRibs | No | Number of ergonomic thumb traction ridges (default: 5). | |
| tabWidth | No | Rear retention tab width in mm (default: 8.0 mm). | |
| clearance | No | Printing clearance tolerance offset in mm (default: 0.25 mm for slide-fit). | |
| clipWidth | No | Cantilever snap latch width in mm (default: 12.0 mm). | |
| outputDir | No | Directory path where .scad and .stl files will be saved. | |
| tabLength | No | Rear retention tab insertion depth in mm (default: 3.5 mm). | |
| thickness | No | Main plate wall thickness in mm (default: 1.6 mm - optimal for 0.4mm nozzle). | |
| clipLength | No | Cantilever flex arm length in mm (default: 8.0 mm). | |
| cornerRadius | No | Corner fillet radius in mm (default: 2.5 mm). | |
| hookOverhang | No | Catch tooth latch depth in mm (default: 1.2 mm). |