chiark / gitweb /
pattress-boxes-3-cover: Fix Demo with thinbox_front_z
[reprap-play.git] / pattress-boxes-3-cover.scad
index 1fb88b0ef9ddb08de540bfc07102bbe04a49160b..52fb22fbdf1307488c94909de680cc31e47ce039 100644 (file)
@@ -57,6 +57,8 @@ peg_main_height = peg_straight_len + (peg_max_dia - peg_main_dia)/2/peg_slope;
 
 echo(peg_main_height);
 
+thinbox_front_z = lid_fatbox_switches_h + lid_fatbox_h - lid_thinbox_h;
+
 module LidSideProfile(){
   polygon([[-lid_top_wall,     lid_inner_max_h],
           [lid_inner_kink[0], lid_inner_max_h],
@@ -67,7 +69,7 @@ module LidSideProfile(){
 }
 
 module RailProfile(){
-  yt_base = lid_seatline_h + lid_fatbox_h - lid_thinbox_h;
+  yt_base = thinbox_front_z;
   yt = yt_base - lid_rail_behindslop;
   pegx = (lid_inner_w - patbox_centres)/2;
   
@@ -144,7 +146,7 @@ module TopPattressBox(){
 
 module Demo(){
   translate([0, -lid_inner_w/2, 0]) LidSide();
-  translate([0,0, lid_fatbox_h])
+  translate([0,0, thinbox_front_z])
     rotate([0,180,0]) translate([0, -patbox_side/2, 0])
     rotate([0,0,90]) union(){
       %TopPattressBox();