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 03927c5..6122f5d 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]]);
 }