Fixed multiple issues with the OpenSCAD files, modified README.scad

This commit is contained in:
LazyAssassin445
2017-01-30 19:17:42 +00:00
parent 3e6dce143e
commit 7c6b9ad14d
3 changed files with 61 additions and 52 deletions

View File

@@ -14,5 +14,5 @@ pi@pibox:~ $ git clone https://github.com/LazyAssassin445/pi-box.git
* A Raspberry Pi 3 * A Raspberry Pi 3
* A Pi Camera * A Pi Camera
* Infa red light * Infa red light
* A scales set * A weight sensitive resistor (specifically https://goo.gl/8EGmAL)
* 4 infa red sensors * 4 infa red sensors

View File

@@ -1,37 +1,37 @@
//bottom plank (red) //bottom plank (red)
color([1, 0, 0]) translate([12, 0, 0]) cube([194, 194, 12]); color([1, 0, 0]) translate([12, 0, 0]) cube([194, 150, 12]);
//back plank (blue) //back plank (blue)
color([0, 0, 1]) translate([206, -12, 0]) cube([12, 218, 550]); color([0, 0, 1]) translate([206, -12, 0]) cube([12, 174, 550]);
difference() { difference() {
//front plank (green) //front plank (green)
color([0, 1, 0]) cube([12, 194, 234]); color([0, 1, 0]) cube([12, 150, 234]);
//hole //hole
translate([-10, 97, 196.5]) rotate(90, [0, 1, 0]) translate([-10, 75, 196.5]) rotate(90, [0, 1, 0])
cylinder(44, 12.5, 12.5, false); cylinder(44, 12.5, 12.5, false);
}; };
//top plank (red) //top plank (red)
color([1, 0, 0]) translate([0, 0, 234]) cube([206, 194, 12]); color([1, 0, 0]) translate([0, 0, 234]) cube([206, 150, 12]);
//top plank (yellow) //top plank (yellow)
color([1,1,0]) translate([-25, -12, 221]) rotate(45, [0,1,0]) cube([12, 218, 325]); color([1,1,0]) translate([-25, -12, 225]) rotate(45, [0,1,0]) cube([12, 174, 325]);
//bird section //bird section
translate([0,0,0]) { translate([0,0,0]) {
//bottom plank (yellow) //bottom plank (yellow)
translate([34, 34, 22]) cube([150, 150, 12]); translate([34, 0, 22]) cube([150, 150, 12]);
//back plank (green) //back plank (green)
color([0, 1, 0]) translate([184, 34, 22]) cube([12, 150, 215]); color("purple") translate([184, 0, 22]) cube([12, 150, 212]);
difference() { difference() {
//front plank (blue) //front plank (blue)
color([0, 0, 1]) translate([22, 34, 22]) cube([12, 150, 215]); color([0, 0, 1]) translate([22, 0, 22]) cube([12, 150, 212]);
//hole //hole
translate([-10, 97, 196.5]) rotate(90, [0, 1, 0]) translate([-10, 75, 196.5]) rotate(90, [0, 1, 0])
cylinder(49, 12.5, 12.5, false); cylinder(49, 12.5, 12.5, false);
}; };
}; };
@@ -39,7 +39,22 @@ translate([0,0,0]) {
//side planks (turquoise) //side planks (turquoise)
color([0, 1, 1]) translate([0, 0, 0]) { color([0, 1, 1]) translate([0, 0, 0]) {
//left side (from front) //left side (from front)
translate([0, 150, 0]) {
//square section
cube([206, 12, 234]);
//triangle section
translate([0, 12, 234])
rotate(90, [1, 0, 0])
linear_extrude(height = 12)
polygon([[0, 0], [206, 0], [206, 206]]);
}
//right side (from front)
translate([0, -12, 0]) { translate([0, -12, 0]) {
//square section //square section
cube([206, 12, 234]); cube([206, 12, 234]);
@@ -48,20 +63,7 @@ color([0, 1, 1]) translate([0, 0, 0]) {
translate([0, 12, 234]) translate([0, 12, 234])
rotate(90, [1, 0, 0]) rotate(90, [1, 0, 0])
linear_extrude(height = 12) linear_extrude(height = 12)
polygon([[0, 0], [206, 0], [206, 218]]); polygon([[0, 0], [206, 0], [206, 206]]);
}
//right side (from front)
translate([0, 194, 0]) {
//square section
cube([206, 12, 234]);
//triangle section
translate([0, 12, 234])
rotate(90, [1, 0, 0])
linear_extrude(height = 12)
polygon([[0, 0], [206, 0], [206, 218]]);
} }

View File

@@ -1,40 +1,60 @@
//bottom plank (red) //bottom plank (red)
color([1, 0, 0]) translate([12, 0, 0]) cube([194, 194, 12]); color([1, 0, 0]) translate([12, 0, 0]) cube([194, 150, 12]);
//back plank (blue) //back plank (blue)
color([0, 0, 1]) translate([206, -12, 0]) cube([12, 218, 550]); color([0, 0, 1]) translate([206, -12, 0]) cube([12, 174, 550]);
difference() { difference() {
//front plank (green) //front plank (green)
color([0, 1, 0]) cube([12, 194, 234]); color([0, 1, 0]) cube([12, 150, 234]);
//hole //hole
translate([-10, 97, 196.5]) rotate(90, [0, 1, 0]) translate([-10, 75, 196.5]) rotate(90, [0, 1, 0])
cylinder(44, 12.5, 12.5, false); cylinder(44, 12.5, 12.5, false);
}; };
//top plank (red) //top plank (red)
color([1, 0, 0]) translate([0, 0, 234]) cube([206, 194, 12]); color([1, 0, 0]) translate([0, 0, 234]) cube([206, 150, 12]);
//top plank (yellow) //top plank (yellow)
color([1,1,0]) translate([-25, -12, 221]) rotate(45, [0,1,0]) cube([12, 218, 325]); color([1,1,0]) translate([-25, -12, 225]) rotate(45, [0,1,0]) cube([12, 174, 325]);
//bird section //bird section
translate([0,400,0]) { translate([0,400,0]) {
//bottom plank (yellow) //bottom plank (yellow)
translate([34, 34, 22]) cube([150, 150, 12]); translate([34, 0, 22]) cube([150, 150, 12]);
//back plank (green) //back plank (green)
color([0, 1, 0]) translate([184, 34, 22]) cube([12, 150, 215]); color("purple") translate([184, 0, 22]) cube([12, 150, 212]);
difference() {
//front plank (blue) //front plank (blue)
color([0, 0, 1]) translate([22, 34, 22]) cube([12, 150, 215]); color([0, 0, 1]) translate([22, 0, 22]) cube([12, 150, 212]);
//hole
translate([-10, 75, 196.5]) rotate(90, [0, 1, 0])
cylinder(49, 12.5, 12.5, false);
};
}; };
//side planks (turquoise) //side planks (turquoise)
color([0, 1, 1]) translate([0, -400, 0]) { color([0, 1, 1]) translate([0, -400, 0]) {
//left side (from front) //left side (from front)
translate([0, 150, 0]) {
//square section
cube([206, 12, 234]);
//triangle section
translate([0, 12, 234])
rotate(90, [1, 0, 0])
linear_extrude(height = 12)
polygon([[0, 0], [206, 0], [206, 206]]);
}
//right side (from front)
translate([0, -12, 0]) { translate([0, -12, 0]) {
//square section //square section
cube([206, 12, 234]); cube([206, 12, 234]);
@@ -43,20 +63,7 @@ color([0, 1, 1]) translate([0, -400, 0]) {
translate([0, 12, 234]) translate([0, 12, 234])
rotate(90, [1, 0, 0]) rotate(90, [1, 0, 0])
linear_extrude(height = 12) linear_extrude(height = 12)
polygon([[0, 0], [206, 0], [206, 218]]); polygon([[0, 0], [206, 0], [206, 206]]);
}
//right side (from front)
translate([0, 194, 0]) {
//square section
cube([206, 12, 234]);
//triangle section
translate([0, 12, 234])
rotate(90, [1, 0, 0])
linear_extrude(height = 12)
polygon([[0, 0], [206, 0], [206, 218]]);
} }