chiark / gitweb /
pattress-boxes-3-cover: Rail, fix len
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 26 Dec 2015 00:22:43 +0000 (00:22 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 26 Dec 2015 00:22:43 +0000 (00:22 +0000)
pattress-boxes-3-cover.scad

index 9e3ab2dc03b29429212a1ff00e4df2321b9e96de..bfc1f22d21d82bdccf7aa7578f55593af71fcc63 100644 (file)
@@ -59,6 +59,8 @@ echo(peg_main_height);
 
 thinbox_front_z = lid_fatbox_switches_h + lid_fatbox_h - lid_thinbox_h;
 
+raillen = patbox_side/2 + peg_max_dia/2 * 1.5;
+
 module LidSideProfile(){
   polygon([[-lid_top_wall,     lid_inner_max_h],
           [lid_inner_kink[0], lid_inner_max_h],
@@ -104,7 +106,7 @@ module LidSide(){
   // rail
   rotate([90,0,90])
     translate([0,0,-0.1])
-    linear_extrude(height=100.1) //todo
+    linear_extrude(height=raillen+0.1) //todo
     RailProfile();
 }