From 7c6b9ad14ddac3dde747b56f4626954cfa79952c Mon Sep 17 00:00:00 2001 From: LazyAssassin445 Date: Mon, 30 Jan 2017 19:17:42 +0000 Subject: [PATCH] Fixed multiple issues with the OpenSCAD files, modified README.scad --- README.md | 2 +- bird.scad | 50 +++++++++++++++++++------------------ birddismantled.scad | 61 +++++++++++++++++++++++++-------------------- 3 files changed, 61 insertions(+), 52 deletions(-) diff --git a/README.md b/README.md index f129342..db0f7bb 100644 --- a/README.md +++ b/README.md @@ -14,5 +14,5 @@ pi@pibox:~ $ git clone https://github.com/LazyAssassin445/pi-box.git * A Raspberry Pi 3 * A Pi Camera * Infa red light -* A scales set +* A weight sensitive resistor (specifically https://goo.gl/8EGmAL) * 4 infa red sensors diff --git a/bird.scad b/bird.scad index d900d8b..84b6f01 100644 --- a/bird.scad +++ b/bird.scad @@ -1,37 +1,37 @@ //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) -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() { //front plank (green) - color([0, 1, 0]) cube([12, 194, 234]); + color([0, 1, 0]) cube([12, 150, 234]); //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); }; //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) -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 translate([0,0,0]) { //bottom plank (yellow) - translate([34, 34, 22]) cube([150, 150, 12]); + translate([34, 0, 22]) cube([150, 150, 12]); //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) - 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, 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); }; }; @@ -39,7 +39,22 @@ translate([0,0,0]) { //side planks (turquoise) color([0, 1, 1]) translate([0, 0, 0]) { + + //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]) { //square section cube([206, 12, 234]); @@ -48,20 +63,7 @@ color([0, 1, 1]) translate([0, 0, 0]) { translate([0, 12, 234]) rotate(90, [1, 0, 0]) linear_extrude(height = 12) - polygon([[0, 0], [206, 0], [206, 218]]); - } - - //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]]); - + polygon([[0, 0], [206, 0], [206, 206]]); } diff --git a/birddismantled.scad b/birddismantled.scad index 932f0b5..eb5a2d5 100644 --- a/birddismantled.scad +++ b/birddismantled.scad @@ -1,40 +1,60 @@ //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) -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() { - //front plank (green) - color([0, 1, 0]) cube([12, 194, 234]); - //hole - translate([-10, 97, 196.5]) rotate(90, [0, 1, 0]) - cylinder(44, 12.5, 12.5, false); + //front plank (green) + color([0, 1, 0]) cube([12, 150, 234]); + //hole + translate([-10, 75, 196.5]) rotate(90, [0, 1, 0]) + cylinder(44, 12.5, 12.5, false); }; //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) -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 translate([0,400,0]) { //bottom plank (yellow) - translate([34, 34, 22]) cube([150, 150, 12]); + translate([34, 0, 22]) cube([150, 150, 12]); //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]); - //front plank (blue) - color([0, 0, 1]) translate([22, 34, 22]) cube([12, 150, 215]); + difference() { + //front plank (blue) + 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) color([0, 1, 1]) translate([0, -400, 0]) { + + //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]) { //square section cube([206, 12, 234]); @@ -43,20 +63,7 @@ color([0, 1, 1]) translate([0, -400, 0]) { translate([0, 12, 234]) rotate(90, [1, 0, 0]) linear_extrude(height = 12) - polygon([[0, 0], [206, 0], [206, 218]]); - } - - //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]]); - + polygon([[0, 0], [206, 0], [206, 206]]); }