chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of chiark:/u/ianmdlvl/reprap/play
[reprap-play.git]
/
brompton-computer-guard.scad
diff --git
a/brompton-computer-guard.scad
b/brompton-computer-guard.scad
index ea334d5261a20550a0c37a729d3824338f2e493b..f8fce45be4df4530642d7b74e22883b462741c9b 100644
(file)
--- a/
brompton-computer-guard.scad
+++ b/
brompton-computer-guard.scad
@@
-11,7
+11,7
@@
arch_breadth = 25;
hole_dia = 4 + 0.5;
pbase_tab = 12;
hole_dia = 4 + 0.5;
pbase_tab = 12;
-pbase_thick =
2
;
+pbase_thick =
4
;
// computed
// 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);
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;
end_thick = arch_thick;
-holes = [[[
5 , 5 ], [16
, 21]], // left
- [[
18.5, 4.5], [ 4.5
, 21]]]; // right
+holes = [[[
18.5, 4.5], [ 4.5
, 21]], // left
+ [[
5 , 5 ], [16
, 21]]]; // right
module ArchCircle(rad){
translate([0,-arch_to_chord])
module ArchCircle(rad){
translate([0,-arch_to_chord])
@@
-64,22
+69,33
@@
module Holes(){
}
module MainCutout(){
}
module MainCutout(){
- translate([0,0,-1]) linear_extrude(height=100)
- ArchCircle(arch_in_rad);
+ ArchCircle(arch_in_rad);
}
module Arch(){
difference(){
rotate([0,0,180]){
}
module Arch(){
difference(){
rotate([0,0,180]){
+ linear_extrude(height=arch_breadth) {
+ difference(){
+ ArchProfile(false);
+ MainCutout();
+ }
+ }
difference(){
difference(){
- union(){
- linear_extrude(height=arch_breadth) ArchProfile(false);
- linear_extrude(height=pbase_thick) hull(){
- ArchProfile(true);
- ArchProfile(false);
+ 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);
+ }
}
}
}
}
- MainCutout();
}
}
Holes();
}
}
Holes();