chiark / gitweb /
pattress-boxes-3-cover: RailProfile, introduce lslop (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 26 Dec 2015 00:28:14 +0000 (00:28 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 26 Dec 2015 00:28:14 +0000 (00:28 +0000)
pattress-boxes-3-cover.scad

index 03927c55c6eceb9b987b32678bcd1780717f9693..6122f5d0e95e452db38acce12fb4698305a5c4eb 100644 (file)
@@ -72,15 +72,15 @@ module LidSideProfile(){
           [-lid_top_wall,     -lid_front_wall]]);
 }
 
-module RailProfile(){
+module RailProfile(lslop=0.1){
   yt_base = thinbox_front_z;
   yt = yt_base - lid_rail_behindslop;
   pegx = (lid_inner_w_nom - patbox_centres)/2;
   
-  polygon([[-0.1,                  yt],
+  polygon([[-lslop,                  yt],
           [pegx - peg_main_dia/2, yt],
           [pegx - peg_main_dia/2, yt_base - peg_straight_len],
-          [-0.1,
+          [-lslop,
            yt_base - peg_straight_len - (pegx - peg_main_dia/2)/peg_slope
           -0.1]]);
 }