浏览代码

cap: keep z- wall untapered, taper only y± and z+ edges

ZiB 4 月之前
父节点
当前提交
b76887eb93
共有 1 个文件被更改,包括 3 次插入 和 4 次删除
  1. 3 4
      cable_cap.scad

+ 3 - 4
cable_cap.scad

@@ -141,11 +141,10 @@ module cable_cap() {
     translate([case_w - CAP_ENGAGE + CAP_EXPLODE, -CAP_TOL - CAP_WALL, -CAP_TOL - CAP_WALL])
     difference() {
         // Outer shell: hull between two square profiles
-        //   X- (open end): inset to CAP_TIP wall thickness
-        //   X+ (closed end): full CAP_WALL thickness
+        //   z- wall is untapered (full CAP_WALL throughout); y±, z+ taper to CAP_TIP at open end
         hull() {
-            translate([0, CAP_WALL - CAP_TIP, CAP_WALL - CAP_TIP])
-                cube([0.01, _cap_bore_w + 2 * CAP_TIP, _cap_bore_h + 2 * CAP_TIP]);
+            translate([0, CAP_WALL - CAP_TIP, 0])
+                cube([0.01, _cap_bore_w + 2 * CAP_TIP, _cap_bore_h + CAP_WALL + CAP_TIP]);
 
             translate([CAP_ENGAGE + CAP_WALL - 0.01, 0, 0])
                 cube([0.01, _cap_bore_w + 2 * CAP_WALL, _cap_bore_h + 2 * CAP_WALL]);