X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=brompton-computer-guard.scad;h=35b0a182b6e9849e80609278345c2121e857b2ee;hp=8b1fcb239b3ca5828ea8aa71810aa9c1bc04feb4;hb=55000fa41db8d2fb6c8aba14cc5e47148c8fc189;hpb=4ae94ff85f008a89f51204570db56f2b6fb20c1c diff --git a/brompton-computer-guard.scad b/brompton-computer-guard.scad index 8b1fcb2..35b0a18 100644 --- a/brompton-computer-guard.scad +++ b/brompton-computer-guard.scad @@ -1,17 +1,17 @@ // -*- C -*- -arch_height = 24; +arch_height = 18; arch_width = 75; end_width = 25; -arch_thick = 5; +arch_thick = 4; arch_breadth = 25; -hole_dia = 3 + 0.5; +hole_dia = 4 + 0.5; -pbase_tab = 15; -pbase_thick = 2; +pbase_tab = 12; +pbase_thick = 4; // computed @@ -21,10 +21,15 @@ echo(arch_alpha,arch_beta); arch_in_rad = arch_width/2 / sin(arch_beta); arch_to_chord = arch_in_rad * cos(arch_beta); +inner_pbase_thick = 8; +echo(inner_pbase_thick); + +inner_pbase_rad = arch_in_rad * 2; + end_thick = arch_thick; holes = [[[ 5 , 5 ], [16 , 21]], // left - [[ 18.5, 4.5], [ 4.5, 22]]]; // right + [[ 18.5, 4.5], [ 4.5, 21]]]; // right module ArchCircle(rad){ translate([0,-arch_to_chord]) @@ -63,23 +68,39 @@ module Holes(){ } } +module MainCutout(){ + ArchCircle(arch_in_rad); +} + module Arch(){ difference(){ rotate([0,0,180]){ + linear_extrude(height=arch_breadth) { + difference(){ + ArchProfile(false); + MainCutout(); + } + } difference(){ - union(){ - linear_extrude(height=arch_breadth) ArchProfile(false); - linear_extrude(height=pbase_thick) hull(){ - ArchProfile(true); - ArchProfile(false); + translate([0,0, arch_breadth - pbase_thick]) + linear_extrude(height=pbase_thick){ + difference(){ + hull(){ + ArchProfile(true); + ArchProfile(false); + } + intersection(){ + MainCutout(); + translate([0, -inner_pbase_thick + - (inner_pbase_rad - arch_in_rad)]) + ArchCircle(inner_pbase_rad); + } } } - translate([0,0,-1]) linear_extrude(height=100) - ArchCircle(arch_in_rad); } } Holes(); } } -rotate([0,0,45]) Arch(); +rotate([0,0,45]) translate([0,0,arch_breadth]) rotate([0,180,0]) Arch();