| 1234567891011121314151617181920212223 |
- // Cross-section viewer — open in the OpenSCAD GUI and drive from the Customizer
- // (Window > Customizer). Slices PART with a plane normal to AXIS at POS, keeping
- // the positive side (FLIP keeps the other half). Not a printable part.
- include <params.scad>
- use <combined.scad>
- use <cpu_case.scad>
- use <lid.scad>
- use <epd_case.scad>
- /* [Section] */
- PART = "lid"; // [lid, base, epd_case, assembly]
- AXIS = "X"; // [X, Y, Z]
- POS = 66.0; // [-10:0.5:200]
- FLIP = false;
- _v = AXIS == "X" ? [1, 0, 0] : AXIS == "Y" ? [0, 1, 0] : [0, 0, 1];
- half_of(v = FLIP ? -_v : _v, cp = POS * _v, s = 600) {
- if (PART == "lid") lid();
- else if (PART == "base") base();
- else if (PART == "epd_case") epd_case();
- else assembly();
- }
|