mini-led-cube/pcbracket/pcbracket.scad
2014-08-04 10:51:23 +02:00

85 lines
2.3 KiB
OpenSCAD

color ([0.8, 0.8, 0.8, ]) {
union () {
difference () {
cube ([40, 24.5, 4], center=true);
translate ([0, 0, 2]) {
cube ([36, 20.5, 4], center=true);
}
translate ([-1.5, 2, 0]) {
cube ([30, 13.5, 7], center=true);
}
translate ([-20, 2, 2]) {
cube ([5, 10, 4], center=true);
}
translate ([-1.5, -14, 1]) {
cube ([31, 14, 10], center=true);
}
translate ([21, -5.75, 1]) {
cube ([10, 9, 7], center=true);
}
translate ([21, -5.75, 1]) {
cube ([16, 9, 4], center=true);
}
}
scale ([0.75, 0.75, 0.75]) {
translate ([-31.5, -10, -0.7]) {
rotate (a=90.0, v=[0, 0, -1]) {
difference () {
cube ([10, 10, 4], center=true);
translate ([0, -0.5, 0]) {
cylinder (h=7, r=3, center=true);
}
translate ([0, -1.5, 3]) {
cube ([6.75, 9, 7], center=true);
}
translate ([0, -2, 3]) {
rotate (a=14.999999999999998, v=[1, 0, 0]) {
cube ([12, 15, 4], center=true);
}
}
}
}
}
}
scale ([0.75, 0.75, 0.75]) {
translate ([31.5, 8, -0.7]) {
rotate (a=90.0, v=[0, 0, 1]) {
difference () {
cube ([10, 10, 4], center=true);
translate ([0, -0.5, 0]) {
cylinder (h=7, r=3, center=true);
}
translate ([0, -1.5, 3]) {
cube ([6.75, 9, 7], center=true);
}
translate ([0, -2, 3]) {
rotate (a=14.999999999999998, v=[1, 0, 0]) {
cube ([12, 15, 4], center=true);
}
}
}
}
}
}
scale ([0.75, 0.75, 0.75]) {
translate ([-15, 21, -0.7]) {
rotate (a=180.0, v=[0, 0, 1]) {
difference () {
cube ([10, 10, 4], center=true);
translate ([0, -0.5, 0]) {
cylinder (h=7, r=3, center=true);
}
translate ([0, -1.5, 3]) {
cube ([6.75, 9, 7], center=true);
}
translate ([0, -2, 3]) {
rotate (a=14.999999999999998, v=[1, 0, 0]) {
cube ([12, 15, 4], center=true);
}
}
}
}
}
}
}
}