2019-06-10 15:45:23 +00:00
|
|
|
include<../sixinch_library.scad>
|
2019-06-10 14:58:20 +00:00
|
|
|
|
2019-06-24 19:24:08 +00:00
|
|
|
debug = false;
|
|
|
|
if (debug) {
|
|
|
|
$fn = 16;
|
|
|
|
color("red") {
|
|
|
|
sa50();
|
|
|
|
}
|
|
|
|
}
|
2019-06-10 14:58:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
// PASTE ALL OF: sixinch_library.scad IN HERE //
|
|
|
|
// Thingiverse can only accept one file. //
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
2019-06-24 19:24:08 +00:00
|
|
|
sa50_length = 117.5;
|
2019-06-30 20:21:48 +00:00
|
|
|
sa50_height = 38;
|
|
|
|
sa50_width = 88;
|
2019-06-10 14:58:20 +00:00
|
|
|
|
2019-06-25 20:47:00 +00:00
|
|
|
Part = "a"; // [a:All, b:FrontPlate, b2:FrontPlate2, c:Cabinet, d:Lid, e:BackPlate, f:Handles]
|
2019-06-10 15:45:23 +00:00
|
|
|
Units = 5;
|
2019-06-24 19:24:08 +00:00
|
|
|
Depth = sa50_length;
|
|
|
|
|
|
|
|
xoffset = (width - sa50_width) / 2;
|
|
|
|
yoffset = ((Units * unit) - sa50_height) / 2;
|
2019-06-30 20:22:13 +00:00
|
|
|
round_holes = [[xoffset + 14, yoffset + 16, 10],
|
|
|
|
[xoffset + 14, yoffset + 30, 10],
|
|
|
|
[xoffset + 37.5, yoffset + 12, 13],
|
|
|
|
[xoffset + 37.5, yoffset + 28, 13],
|
|
|
|
[xoffset + 56, yoffset + 12, 13],
|
|
|
|
[xoffset+ 56, yoffset + 28, 13],
|
|
|
|
[xoffset + 75, yoffset + 15.5, 7]];
|
2019-06-10 14:58:20 +00:00
|
|
|
|
|
|
|
go();
|
|
|
|
|
|
|
|
module go(){
|
|
|
|
rotate([90,0,-90]){
|
|
|
|
if(Part=="a"){
|
2019-06-24 19:24:08 +00:00
|
|
|
lower() {
|
|
|
|
frontplate(Units,[],[],[],[Units/2],[45],[45]);
|
|
|
|
}
|
|
|
|
upper() {
|
|
|
|
frontplate(Units,[],[],[],[Units/2],[45],[45]);
|
|
|
|
}
|
|
|
|
cabinet_supported () {
|
|
|
|
cabinet(Depth,Units,[45],[],[Units/2]);
|
|
|
|
}
|
|
|
|
lid_supported () {
|
|
|
|
lid(Depth,Units,[45],[45]);
|
|
|
|
}
|
|
|
|
back_plate(Units, Depth, [45], [45], [Units/2], [], round_holes);
|
2019-06-10 15:45:23 +00:00
|
|
|
handle(Units,false);
|
2019-06-10 14:58:20 +00:00
|
|
|
}else if(Part=="b"){
|
2019-06-10 15:45:23 +00:00
|
|
|
lower() {
|
|
|
|
frontplate(Units,[],[],[],[Units/2],[45],[45]);
|
|
|
|
}
|
|
|
|
}else if(Part=="b2"){
|
|
|
|
upper() {
|
|
|
|
frontplate(Units,[],[],[],[Units/2],[45],[45]);
|
|
|
|
}
|
2019-06-10 14:58:20 +00:00
|
|
|
}else if(Part=="c"){
|
2019-06-24 19:24:08 +00:00
|
|
|
cabinet_supported () {
|
|
|
|
cabinet(Depth,Units,[45],[],[Units/2]);
|
|
|
|
}
|
2019-06-10 14:58:20 +00:00
|
|
|
}else if(Part=="d"){
|
2019-06-24 19:24:08 +00:00
|
|
|
lid_supported () {
|
|
|
|
lid(Depth,Units,[45],[45]);
|
|
|
|
}
|
2019-06-10 14:58:20 +00:00
|
|
|
}else if(Part=="e"){
|
2019-06-24 19:24:08 +00:00
|
|
|
back_plate(Units, Depth, [45], [45], [Units/2], [], round_holes);
|
|
|
|
|
|
|
|
/* translate([-sa50_length, -sa50_width - ((sixinch - sa50_width) / 2), ((Units * unit) - sa50_height) / 2]) { */
|
|
|
|
/* cube([10, 10, 10]); */
|
|
|
|
/* } */
|
2019-06-10 14:58:20 +00:00
|
|
|
}else if(Part=="f"){
|
|
|
|
handle(Units,true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-10 15:45:23 +00:00
|
|
|
module lower () {
|
|
|
|
difference() {
|
|
|
|
children();
|
2019-06-24 19:24:08 +00:00
|
|
|
rotate([0, 90, 90]){
|
|
|
|
sa50();
|
|
|
|
}
|
|
|
|
rotate([0, 90, 90]){
|
|
|
|
translate([0, 0, -sa50_height + 1]) {
|
|
|
|
sa50();
|
2019-06-10 15:45:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-10 14:58:20 +00:00
|
|
|
|
2019-06-10 15:45:23 +00:00
|
|
|
module upper () {
|
2019-06-24 19:24:08 +00:00
|
|
|
intersection() {
|
|
|
|
children();
|
|
|
|
rotate([0, 90, 90]){
|
|
|
|
translate([0, 0, -sa50_height + 1]) {
|
|
|
|
sa50();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
rotate([-90,90,0]) {
|
|
|
|
/* translate([-6, -36, 2]) { */
|
|
|
|
/* (width - sa50_width / 2) + 5 */
|
|
|
|
translate([-6, -(width - sa50_width + 10), 2]) {
|
|
|
|
/* translate([-6, -(width - sa50_width / 2), 2]) { */
|
|
|
|
cube([3, 8, 14]);
|
|
|
|
}
|
|
|
|
/* translate([-6, -126, 2]) { */
|
|
|
|
translate([-6, - width - 10, 2]) {
|
|
|
|
cube([3, 8, 14]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module lid_supported () {
|
|
|
|
children();
|
|
|
|
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
translate([(sixinch - sa50_width) / 2 , (Units * unit), (sa50_length / 2) + 20]) {
|
|
|
|
rotate([90, 0, 0]) {
|
|
|
|
cylinder(h=20, r=5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
translate([((sixinch - sa50_width) / 2) + sa50_width, (Units * unit), (sa50_length / 2) + 20]) {
|
|
|
|
rotate([90, 0, 0]) {
|
|
|
|
cylinder(h=20, r=5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
rotate([0, 90, 90]){
|
|
|
|
sa50();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module cabinet_supported () {
|
|
|
|
children();
|
|
|
|
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
translate([(sixinch - sa50_width) / 2, 20, (sa50_length / 2) - 45]) {
|
|
|
|
rotate([90, 0, 0]) {
|
|
|
|
cylinder(h=20, r=5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
translate([((sixinch - sa50_width) / 2) + sa50_width, 20, (sa50_length / 2) - 45]) {
|
|
|
|
rotate([90, 0, 0]) {
|
|
|
|
cylinder(h=20, r=5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
translate([(sixinch - sa50_width) / 2, 20, (sa50_length / 2)]) {
|
|
|
|
rotate([90, 0, 0]) {
|
|
|
|
cylinder(h=20, r=5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
translate([((sixinch - sa50_width) / 2) + sa50_width, 20, (sa50_length / 2)]) {
|
|
|
|
rotate([90, 0, 0]) {
|
|
|
|
cylinder(h=20, r=5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
difference () {
|
|
|
|
translate([((sixinch - sa50_width) / 2) + 15, 20, sa50_length - 13 - 5]) {
|
|
|
|
rotate([90, 0, 0]) {
|
|
|
|
cylinder(h=20, r=5 + 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
translate([((sixinch - sa50_width) / 2) + 5 + 10, 20, sa50_length - 13]) {
|
2019-06-25 20:47:00 +00:00
|
|
|
rotate([90, 0, 0]) {
|
|
|
|
cylinder(h=8, r=5.5);
|
2019-06-24 19:24:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
difference () {
|
2019-06-30 20:22:51 +00:00
|
|
|
translate([((sixinch - sa50_width) / 2) + sa50_width - 5 - 10, 20, sa50_length - 12 - 5]) {
|
2019-06-24 19:24:08 +00:00
|
|
|
rotate([90, 0, 0]) {
|
|
|
|
cylinder(h=20, r=5 + 2);
|
|
|
|
}
|
|
|
|
}
|
2019-06-30 20:22:51 +00:00
|
|
|
translate([((sixinch - sa50_width) / 2) + sa50_width - 5 - 10, 20, sa50_length - 12]) {
|
2019-06-25 20:47:00 +00:00
|
|
|
rotate([90, 0, 0]) {
|
|
|
|
cylinder(h=8, r=5.5);
|
2019-06-24 19:24:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
rotate([0, 90, 90]){
|
|
|
|
sa50();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module sa50 () {
|
|
|
|
rotate([0,0,0]) {
|
|
|
|
translate([-sa50_length, -sa50_width - ((sixinch - sa50_width) / 2), ((Units * unit) - sa50_height) / 2]) {
|
|
|
|
cube([sa50_length, sa50_width, sa50_height ]);
|
|
|
|
}
|
|
|
|
}
|
2019-06-10 15:45:23 +00:00
|
|
|
}
|