From d11ada6d34595b332c8558d30a3bf42887c3aa44 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 26 Dec 2015 00:28:14 +0000 Subject: [PATCH] pattress-boxes-3-cover: RailProfile, introduce lslop (nfc) --- pattress-boxes-3-cover.scad | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pattress-boxes-3-cover.scad b/pattress-boxes-3-cover.scad index 03927c5..6122f5d 100644 --- a/pattress-boxes-3-cover.scad +++ b/pattress-boxes-3-cover.scad @@ -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]]); } -- 2.30.2