From 0d51c6840859a0b37295221c48ae69f3ddad3d2b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 11 May 2014 23:04:40 +0100 Subject: [PATCH] brompton-computer-guard: wip --- brompton-computer-guard.scad | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/brompton-computer-guard.scad b/brompton-computer-guard.scad index b37bd9d..d7f8a26 100644 --- a/brompton-computer-guard.scad +++ b/brompton-computer-guard.scad @@ -24,6 +24,8 @@ attach_straight_len = attach_inrad + attach_tube_dia + attach_hole_dist + attach_hole_dia/2 - attach_w / 2 + attach_hole_dist; +attach_down = tube_dia + attach_hole_dist; + module RearSideTemplate(){ polygon([[0.1,0], [-base_len,0], @@ -50,6 +52,11 @@ module AttachTemplate(){ } } +module BodyPositive(){ + color("blue") linear_extrude(height=60) RearSideTemplate(); + translate([0,0,-attach_down]) linear_extrude(height=100) AttachTemplate(); +} + module Tube(){ %translate([attach_cx, -attach_cdy, -20]) { rotate_extrude(convexity=10) { @@ -78,7 +85,6 @@ module Bolts(){ } } -color("blue") RearSideTemplate(); -AttachTemplate(); Tube(); Bolts(); +BodyPositive(); -- 2.30.2