Răsfoiți Sursa

Add LIP_H param to control Y- split height independently

LIP_H defaults to FLANGE_H and replaces the hardcoded FLANGE_H in both
the base Y- wall cutout and the lid Y- lip, anchored at the ceiling so
increasing LIP_H extends the lip downward (z-) rather than upward.

Also reduce fpc_adapter fpc_yp from 15 to 6 and remove redundant color()
wrapper in lid module.
ZiB 4 luni în urmă
părinte
comite
9959bed923
3 a modificat fișierele cu 8 adăugiri și 9 ștergeri
  1. 2 2
      cpu_case.scad
  2. 5 7
      lid.scad
  3. 1 0
      params.scad

+ 2 - 2
cpu_case.scad

@@ -74,8 +74,8 @@ module base() {
       // ---- Y- wall step for lid flange clearance ----
       // Remove the full Y- wall above z=BASE_H-FLANGE_H-SLIDE_CLEAR so the lid
       // flanges can enter freely from Y-.
-      translate([-0.1, -0.1, BASE_H - FLANGE_H - SLIDE_CLEAR])
-        cube([OUT_L + 0.2, WALL + 0.2, FLANGE_H + SLIDE_CLEAR + 0.1]);
+      translate([-0.1, -0.1, BASE_H - LIP_H - SLIDE_CLEAR])
+        cube([OUT_L + 0.2, WALL + 0.2, LIP_H + SLIDE_CLEAR + 0.1]);
     }
 
     // Standoff bosses (added outside diff so cavity doesn't subtract them)

+ 5 - 7
lid.scad

@@ -121,10 +121,10 @@ module lid() {
       // Y- lip — same rounded_box profile clipped to the Y- wall zone so the
       // lip corners match the base exterior corners
       intersection() {
-        translate([0, -WALL, -SLIDE_CLEAR])
-          rounded_box(OUT_L, OUT_W, FLANGE_H + SLIDE_CLEAR, CORNER_R);
-        translate([-0.1, -WALL - 0.1, -SLIDE_CLEAR - 0.1])
-          cube([OUT_L + 0.2, WALL + 0.2, FLANGE_H + SLIDE_CLEAR + 0.2]);
+        translate([0, -WALL, FLANGE_H - LIP_H - SLIDE_CLEAR])
+          rounded_box(OUT_L, OUT_W, LIP_H + SLIDE_CLEAR, CORNER_R);
+        translate([-0.1, -WALL - 0.1, FLANGE_H - LIP_H - SLIDE_CLEAR - 0.1])
+          cube([OUT_L + 0.2, WALL + 0.2, LIP_H + SLIDE_CLEAR + 0.2]);
       }
     }
 
@@ -146,11 +146,9 @@ module lid() {
 
   // FPC adapter — bosses always (structural); PCB/connectors shown only in $preview.
   // rotate([0,180,0]) flips Z without disturbing ±Y connector exits; +_adpt_w re-centres X.
-  // Bosses inherit the enclosing color; PCB visual overrides to blue internally.
-  color("#004B49")
   translate([_adapt_ox + _adpt_w, _adapt_oy, FLANGE_H - BOSS_H])
     rotate([0, 180, 0])
-      fpc_adapter(fpc_yp=15, fpc_yn=0);
+      fpc_adapter(fpc_yp=6, fpc_yn=0);
 }
 
 // ============================================================

+ 1 - 0
params.scad

@@ -55,6 +55,7 @@ LID_T       = 1.5;
 FLANGE_H    = 3.0;
 FLANGE_W    = FLANGE_H * tan(30);
 SLIDE_CLEAR = 0.40;
+LIP_H       = FLANGE_H + 3;   // Y- lip height; increase to move split toward lid, decrease toward base
 
 /* [FPC Notch — must match EPD case slot geometry] */
 FPC_NOTCH_W = _fpc_xw;    // slot X width: cable 12.5 + 2×2.5 mm clearance