upd thingiverse customizer to use include sixinch_library, added https://github.com/KronBjorn/SixInchRack/pull/3

master
Dmitry Maylarov 5 years ago
parent 3ea4c800d2
commit fa2783a666

@ -1,17 +1,7 @@
include<../sixinch_library.scad>
$fn = 50*1; $fn = 50*1;
Part = "a"; // [a:All, b:FrontPlate, c:Cabinet, d:Lid, e:BackPlate, f:Handles]
//////////////////////////////////////////////////
// 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; Units = 4;
Depth = 115; Depth = 115;
@ -38,15 +28,3 @@ module go(){
} }
} }
} }

@ -21,7 +21,7 @@ slip = 0.35;
module chimney() { module chimney() {
for(i=[0:8:80]){ for(i=[0:8:80]){
echo(i); echo(i);
translate([20 + (width-80)/2 +i,-1,20]){ translate([20 + (width-80)/2 +i,-1,20]){
minkowski(){ minkowski(){
@ -29,14 +29,14 @@ for(i=[0:8:80]){
sphere(d=2,h=1); sphere(d=2,h=1);
} }
} }
} }
} }
module back_plate(u,dp,screw_top,screw_bottom,screw_side,square_hole,round_hole){ module back_plate(u,dp,screw_top,screw_bottom,screw_side,square_hole,round_hole){
difference(){ difference(){
union(){ union(){
@ -88,7 +88,7 @@ for(i=[0:8:80]){
translate([20+6, unit*p ,gauge+dp+0.1]){rotate([0,180,0]){screw();}} translate([20+6, unit*p ,gauge+dp+0.1]){rotate([0,180,0]){screw();}}
} }
} }
} }
} }
@ -170,7 +170,7 @@ module cabinet (dp,u,screw_bottom_front,round_peg,screw_side_front){
} }
} }
@ -180,8 +180,8 @@ module box(dp,u,screw_bottom_front,round_peg,screw_side_front){
difference(){ difference(){
translate([20,0,gauge]){ translate([20,0,gauge]){
difference(){ difference(){
cube([115,u*unit,dp]); cube([(sixinch-40),u*unit,dp]);
translate([gauge_box,gauge_box,-1]){ cube([115-gauge_box*2,u*unit,dp+2]);} translate([gauge_box,gauge_box,-1]){ cube([(sixinch-40)-gauge_box*2,u*unit,dp+2]);}
} }
} }
//CHIMNEY //CHIMNEY
@ -291,7 +291,7 @@ module lid(dp,u,screw_front,screw_back){
chimney(); chimney();
} }
} }
@ -414,7 +414,7 @@ module leftbottomplate(t){
translate([(sixinch+20)/2,-1,-1]){ translate([(sixinch+20)/2,-1,-1]){
cube([(sixinch+20)/2+1,sixinch+20+2,t+2]); cube([(sixinch+20)/2+1,sixinch+20+2,t+2]);
} }
# translate([10,10,-1]){cylinder(r=2.5,h=base+2);} # translate([10,10,-1]){cylinder(r=2.5,h=base+2);}
translate([10,sixinch+20-10,-1]){cylinder(r=2.5,h=base+2);} translate([10,sixinch+20-10,-1]){cylinder(r=2.5,h=base+2);}
@ -428,12 +428,12 @@ module leftbottomplate(t){
module bottomplate(t){ module bottomplate(t){
translate([1,1,0]){ translate([1,1,0]){
minkowski(){ minkowski(){
cube([sixinch+20-2,sixinch+20-2,t-1]); cube([sixinch+20-2,sixinch+20-2,t-1]);
cylinder(r=1,h=1); cylinder(r=1,h=1);
} }
} }
} }
@ -508,8 +508,8 @@ module frontplate(u,square_hole,round_hole,round_peg,screw_side_front,screw_top,
he = round_peg[i][4]; he = round_peg[i][4];
translate([x,y,gauge]){ translate([x,y,gauge]){
difference(){ difference(){
# cylinder(r=od/2,h=he); # cylinder(r=od/2,h=he);
# cylinder(r=id/2,h=he+1); # cylinder(r=id/2,h=he+1);
} }
} }
@ -524,7 +524,7 @@ module frontplate(u,square_hole,round_hole,round_peg,screw_side_front,screw_top,
} }
@ -552,7 +552,7 @@ module baseplate(u,handle){
translate([10-0.5,(u*unit)/2,-gauge/2]) {cylinder(r=2.3,gauge*2);} translate([10-0.5,(u*unit)/2,-gauge/2]) {cylinder(r=2.3,gauge*2);}
translate([sixinch-10+0.5,(u*unit)/2,-gauge/2]) {cylinder(r=2.3,gauge*2);} translate([sixinch-10+0.5,(u*unit)/2,-gauge/2]) {cylinder(r=2.3,gauge*2);}
} }
} }
} }

Loading…
Cancel
Save