76 lines
2.0 KiB
OpenSCAD
76 lines
2.0 KiB
OpenSCAD
|
|
//cube( [width,depth,height] );
|
|
//translate( [x,y,z] )
|
|
bracketl(94,4.5);
|
|
module bracketl(height,plexithick,$fn=100) {
|
|
material=5;
|
|
bracketthick = plexithick + material;
|
|
length=50;
|
|
intendention=length/2.45;
|
|
hole=6;
|
|
cutout=-hole/2;
|
|
thickcut=2;
|
|
spaceconnector=1.5;
|
|
//MAIN PIECE with CONNECTOR
|
|
echo(bracketthick);
|
|
difference(){
|
|
union() {
|
|
difference() {
|
|
cube([length,bracketthick,height]);
|
|
translate([0,material/2,0]){
|
|
cube([intendention,plexithick,height]);
|
|
}
|
|
echo(intendention);
|
|
translate([length-intendention,material/2,0]){
|
|
cube([intendention,plexithick,height]);
|
|
}
|
|
|
|
translate([length/5,bracketthick,height/4]) rotate([90,0,0]) cylinder(d=4.5,h=bracketthick);
|
|
translate([length/5,bracketthick,height/1.3]) rotate([90,0,0]) cylinder(d=4.5,h=bracketthick);
|
|
translate([length/1.27,bracketthick,height/1.3]) rotate([90,0,0]) cylinder(d=4.5,h=bracketthick);
|
|
translate([length/1.27,bracketthick,height/4]) rotate([90,0,0]) cylinder(d=4.5,h=bracketthick);
|
|
|
|
|
|
//CONNECTOR FEMALE
|
|
|
|
intersection(){
|
|
translate([(length/2),(bracketthick/2),0]){
|
|
cylinder(d=hole, h=height);
|
|
translate([cutout,-(bracketthick/1.9),0]){
|
|
cube([spaceconnector-0.2,bracketthick+1,height]);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
//CONNECTOR MALE
|
|
union(){
|
|
diff=0.4;
|
|
exthole=hole-diff;
|
|
extthickcut=spaceconnector-diff;
|
|
|
|
|
|
intersection(){
|
|
translate([(length/2),(bracketthick/2),0]){
|
|
cylinder(d=exthole, h=height);
|
|
translate([cutout,-(bracketthick/2),0]){
|
|
cube([extthickcut,bracketthick,height]);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
// intersection(){
|
|
// stop=length-(intendention*2);
|
|
// translate([(length/2-stop/2),(bracketthick/2-stop/2-0.2),0]){
|
|
// translate([0,0,1]){
|
|
// #cube([stop,bracketthick+0.2,0.2]);
|
|
// }
|
|
|
|
// }
|
|
// }
|
|
}
|
|
}
|