From: Ian Jackson Date: Sun, 11 May 2014 21:49:25 +0000 (+0100) Subject: brompton-computer-guard: wip, after rename coords X-Git-Tag: filamentspool-v2-release~386 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c84772f73fdeeb9cc3d49210c86912846b6b0ab0;p=reprap-play.git brompton-computer-guard: wip, after rename coords --- diff --git a/brompton-computer-guard.scad b/brompton-computer-guard.scad index 37d10e6..1471a79 100644 --- a/brompton-computer-guard.scad +++ b/brompton-computer-guard.scad @@ -1,12 +1,12 @@ // -*- C -*- -cover_zsz = 45; +cover_ysz = 45; cover_len = 70; attach_tube_dia = 18; attach_cx = -15; -attach_cdz = -10; +attach_cdy = -10; attach_w = 25; attach_inrad = 25; /// @@ -16,7 +16,7 @@ attach_ang = 45; // calculated -cover_lcircle_r = cover_zsz / (1 + 1/sqrt(2)); +cover_lcircle_r = cover_ysz / (1 + 1/sqrt(2)); base_len = cover_len - cover_lcircle_r; @@ -26,9 +26,9 @@ attach_total_len = module RearSideTemplate(){ polygon([[0.1,0], [-base_len,0], - [-base_len,-cover_zsz], - [0.1, -cover_zsz]]); - translate([-base_len, -cover_zsz + cover_lcircle_r]) + [-base_len,-cover_ysz], + [0.1, -cover_ysz]]); + translate([-base_len, -cover_ysz + cover_lcircle_r]) circle(r=cover_lcircle_r); } @@ -36,9 +36,9 @@ module AttachTemplate(){ hull(){ // polygon([[0, 0], // [-0.1, 0], -// [-0.1, -cover_zsz], -// [0, -cover_zsz]]); - translate([attach_cx, -attach_cdz]) rotate([0,0,-attach_ang]) { +// [-0.1, -cover_ysz], +// [0, -cover_ysz]]); + translate([attach_cx, -attach_cdy]) rotate([0,0,-attach_ang]) { polygon([[-attach_cx, attach_w/2], [0, -attach_w/2], [attach_total_len, -attach_w/2],