APC Powerbar mount

This commit is contained in:
Greyscale 2024-06-13 04:23:58 +02:00
parent 569051a1f4
commit 30c91dc519
2 changed files with 30 additions and 9 deletions

View file

@ -2,12 +2,18 @@ $fn=180;
use <Lib/mirrorcopy.scad>;
use <Lib/metric_screws.scad>;
powerbarDims = [58,200,45] + [-2,0,-1];
barRadius = 1;
module plastic(){
hull(){
mirrorCopy([1,0,0],[0,1,0]){
mirrorCopy([1,0,0]){
translate([60,20,10]){
cylinder(h=20, d=10, center=true);
}
translate([60,-20,10]){
cube([10,10,20],center=true);
}
}
}
hull(){
@ -16,7 +22,7 @@ module plastic(){
rotate([90,0,0])
cylinder(d=15, h=50, center=true);
translate([35-2,0,45])
translate([35-2,-5,45])
rotate([90,0,0])
cylinder(d=15, h=40, center=true);
}
@ -29,15 +35,30 @@ module screws(){
}
}
module powerbar(){
translate([0,0,45/2])
cube([58,200,45+0.01], center=true);
hull(){
mirrorCopy([1,0,0])
translate([powerbarDims.x/2,0,powerbarDims.z] + [-barRadius,0,-barRadius] + [0,0,0.01])
rotate([90,0,0])
cylinder(r=barRadius,h=200,center=true);
translate([0,0,0.5])
cube([powerbarDims.x,powerbarDims.y,1] + [0,0,0.01], center=true);
}
}
module bracket(){
difference(){
plastic();
powerbar();
screws();
}
}
difference(){
plastic();
powerbar();
screws();
if($preview){
bracket();
}else{
mirrorCopy([0,1,0])
translate([0,-5,0])
rotate([90,0,0])bracket();
}

BIN
powerbar_mount.stl Normal file

Binary file not shown.