chiark / gitweb /
poster-tube-lid: introduce middle_bot_z (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 Oct 2017 01:38:14 +0000 (02:38 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 Oct 2017 01:38:14 +0000 (02:38 +0100)
poster-tube-lid.scad

index d7539f7..2e3d6d3 100644 (file)
@@ -67,6 +67,8 @@ top_thick = max(top_minthick_middle,
 
 top_z = top_thick + seal_thick;
 
+middle_bot_z = top_z - top_minthick_middle;
+
 bayo_entry = bayo_behind / 3.0;
 bayo_top_z = bayo_behind + rivet_thick + bayo_above_gap;
 bayo_entry_ramp = bayo_entry + bayo_interf;
@@ -130,7 +132,7 @@ module MainProfile(){
          square([10,10]);
        }
       }
-      polygon([[ -11,                   top_z - top_minthick_middle ],
+      polygon([[ -11,                   middle_bot_z      ],
               [ -11,                   top_z             ],
               [ main_cnr_pos[0],       top_z             ],
               [ side_thick,            main_cnr_pos[1]   ],
@@ -200,7 +202,7 @@ module Cover(){ ////toplevel
       rotate_extrude(convexity=10)
        translate([main_dia/2, 0])
        MainProfile();
-      translate([0,0, top_z - top_minthick_middle])
+      translate([0,0, middle_bot_z])
        cylinder(h= top_minthick_middle, r = main_dia/2 - 10);
     }
     for (r=[0,180])