1
0
mirror of https://github.com/pgrondek/SixInchRack.git synced 2024-11-22 20:13:42 +00:00
SixInchRack/RackCabinets/ThingiverseCustomizer/thingiverse_customizer.scad
2017-03-05 14:25:00 +01:00

53 lines
1.1 KiB
OpenSCAD
Executable File

$fn = 50*1;
//////////////////////////////////////////////////
// PASTE ALL OF: sixinch_library.scad IN HERE //
// Thingiverse can only accept one file. //
//////////////////////////////////////////////////
Part = "-"; // [a:All, b:FrontPlate, c:Cabinet, d:Lid, e:BackPlate, f:Handles]
Units = 4;
Depth = 115;
go();
module go(){
rotate([90,0,-90]){
if(Part=="a"){
frontplate(Units,[],[],[],[Units/2],[45],[45]);
cabinet(Depth,Units,[45],[],[Units/2]);
lid(Depth,Units,[45],[45]);
back_plate(Units,Depth,[45],[45],[Units/2],[],[]);
handle(Units,false);
}else if(Part=="b"){
frontplate(Units,[],[],[],[Units/2],[45],[45]);
}else if(Part=="c"){
cabinet(Depth,Units,[45],[],[Units/2]);
}else if(Part=="d"){
lid(Depth,Units,[45],[45]);
}else if(Part=="e"){
back_plate(Units,Depth,[45],[45],[Units/2],[],[]);
}else if(Part=="f"){
handle(Units,true);
}
}
}