From: Ian Jackson Date: Tue, 5 Aug 2014 15:52:14 +0000 (+0100) Subject: osstest-arm-psu-bracket: ready for first test print X-Git-Tag: filamentspool-v2-release~320 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=5bccef356c0eeffad0f9eebb50217aeee0881e98;hp=79296c4cc31891e87536cf235a02284773f49ae1 osstest-arm-psu-bracket: ready for first test print --- diff --git a/osstest-arm-psu-bracket.scad b/osstest-arm-psu-bracket.scad index 46dba84..7abb4cf 100644 --- a/osstest-arm-psu-bracket.scad +++ b/osstest-arm-psu-bracket.scad @@ -7,6 +7,7 @@ endwall = 5; sidewall = 8; basethick = 3; endwallheight = 20; +morebase = 20; plugwidth = 35; plugstartheight = 10; @@ -17,7 +18,8 @@ strapbotgap = 1; overstrap = 6; discdia = 60; -discoff = 10; +discoff_rear = 10; +discoff_front = 50; sidewallraise = strapbotgap + strapthick + overstrap; @@ -34,9 +36,10 @@ module Sides(){ } } -module Ell(){ +module Ell(baseoff){ translate([-endwall,0,0]) { - cube([mainlen + endwall, width, basethick]); + translate([baseoff,0,0]) + cube([mainlen + endwall + morebase, width, basethick]); cube([endwall+0.1, width, endwallheight + sidewallraise + basethick]); } } @@ -47,20 +50,39 @@ module Plug(){ cube([endwall*3, plugwidth, 100], center=true); } -module Disc(){ +module Disc(discoff){ translate([discoff + discdia/2, width/2, -1]) - cylinder(r=discdia/2, h=50); + cylinder(r=discdia/2, h=50, $fn=100); } -module Block(){ +module Main(baseoff){ difference(){ union(){ - Ell(); + Ell(baseoff); Sides(); } Plug(); - Disc(); } } -Block(); +module RearBlock(){ + difference(){ + Main(-morebase); + Disc(discoff_rear); + } +} + +module FrontBlock(){ + difference(){ + Main(0); + Disc(discoff_front - endwall); + } +} + +module Both(){ + RearBlock(); + translate([mainlen + endwall + 10, 0, 0]) + FrontBlock(); +} + +Both();