E5-Microswiss-Spider/BaseLeft.scad

50 lines
1.2 KiB
OpenSCAD
Raw Normal View History

2022-07-07 16:30:42 +02:00
t = 7;
w = 35;
h = 47.7;
rc = 6.5;
rcs = 2;
$fn = 100;
module through(l=7, lh=3.3, lt=1, lb=1){
union(){
translate([0,0,l-lh])cylinder(h=lh+lt, d=5.6);
translate([0,0,-lb])cylinder(h=l+lh+lb, d=3.5);
}
}
module m3 (h=8, lb=1){
translate([0,0,-lb])cylinder(h+lb, d=2.5); // tapped M3
//translate([0,0,-lb])cylinder(h+lb, d=4); // rutex insert
}
difference(){
hull(){
translate([rc, rc])cylinder(h=t, r=rc);
translate([rc,h-rc])cylinder(h=t, r=rc);
translate([w-rcs, h-rcs])cylinder(h=t, r=rcs);
translate([w-rcs, rcs])cylinder(h=t, r=rcs);
}
translate([30.4, h-14.75])through(l=t);
translate([13.2, h-33.7])through(l=t);
translate([-1, h-24-14,-1])hull(){
cube([1,14, t+2]);
translate([5,3])cylinder(h=t+2,r=3);
translate([5,11])cylinder(h=t+2,r=3);
}
translate([35,h-19.5-31,-1])hull(){
translate([0,3])cylinder(h=t+2,r=3);
translate([0,28])cylinder(h=t+2,r=3);
}
translate([12,h-12,-1])cylinder(h=t+2,d=5.5);
translate([32.3,h-52.3,-1])cylinder(h=t+2,d=11);
//fan shroud
for(x=[24.6]){
for(y=[23.4,43.7]){
translate([x,h-y,0])m3();
}
}
}