diff --git a/Toothbrush holder.scad b/Toothbrush holder.scad index d510763..633c6e5 100644 --- a/Toothbrush holder.scad +++ b/Toothbrush holder.scad @@ -1,6 +1,7 @@ $fn = 100; dis = 35; hei = 20; +wid = 10; module base_holder() { @@ -12,16 +13,16 @@ { hull() { - translate([ -4, -4, -0 ]) cube([ 1, 8, 5 ]); - translate([ 12.5 - 13 - 19.8 - 5, -7.5, -0 ]) cube([ 0.0001, 15, 5 ]); + translate([ -4, -4, -0 ]) cube([ 1, 8, wid ]); + translate([ 12.5 - 13 - 19.8 - 5, -7.5, -0 ]) cube([ 0.0001, 15, wid ]); } - translate([ 0, 0, 0 ]) scale([ 3.3, 2.75, 0.5 ]) cylinder(d = 12, h = 10); + translate([ 0, 0, 0 ]) scale([ 3.3, 2.75, 0.5 ]) cylinder(d = 12, h = wid*2); } - translate([ 9, -18, -1 ]) cube([ 15, 36, 10 ]); - translate([ 0, 0, -1 ]) scale([ 3.3, 2.75, 0.5 ]) cylinder(d = 10, h = 14); + translate([ 9, -18, -1 ]) cube([ 15, 36, wid+2 ]); + translate([ 0, 0, -1 ]) scale([ 3.3, 2.75, 0.5 ]) cylinder(d = wid, h = wid*2+4); } - translate([ 9, 13.1, 0 ]) cylinder(h = 5, d = 2.95); - translate([ 9, -13.1, 0 ]) cylinder(h = 5, d = 2.95); + translate([ 9, 13.1, 0 ]) cylinder(h = wid, d = 2.95); + translate([ 9, -13.1, 0 ]) cylinder(h = wid, d = 2.95); } } @@ -30,7 +31,7 @@ for (i = [0:3]) { translate([ 0, dis * i, 0 ]) base_holder(); }; - translate([ -28.5, -7.5, 0 ]) cube([ 3.5, dis * 3 + 15, 5 ]); + translate([ -28.5, -7.5, 0 ]) cube([ 3.5, dis * 3 + 15, wid ]); }; // p2 @@ -42,21 +43,21 @@ { hull() { - translate([ -4, -4, -0 ]) cube([ 1, 8, 5 ]); - translate([ 12.5 - 13 - 19.8 -11, -7.5, -0 ]) cube([ 0.0001, 15, 5 ]); + translate([ -4, -4, -0 ]) cube([ 1, 8, wid ]); + translate([ 12.5 - 13 - 19.8 -11, -7.5, -0 ]) cube([ 0.0001, 15, wid ]); } - translate([ 0, 0, 0 ]) cylinder(h = 5, d = 12); + translate([ 0, 0, 0 ]) cylinder(h = wid, d = 12); } hull() { - translate([ 0, 0, -1 ]) cylinder(h = 7, d = 8); - translate([ 1, 0, -1 ]) cylinder(h = 7, d = 7.5); + translate([ 0, 0, -1 ]) cylinder(h = wid+2, d = 8); + translate([ 1, 0, -1 ]) cylinder(h = wid+2, d = 7.5); } - translate([ 3.5, -18, -1 ]) cube([ 15, 36, 10 ]); + translate([ 3.5, -18, -1 ]) cube([ 15, 36, wid+5 ]); }; - translate([ 3.3, -3.9, 0 ]) cylinder(h = 5, d = 2.2); - translate([ 3.3, 3.9, 0 ]) cylinder(h = 5, d = 2.2); + translate([ 3.3, -3.9, 0 ]) cylinder(h = wid, d = 2.2); + translate([ 3.3, 3.9, 0 ]) cylinder(h = wid, d = 2.2); } } @@ -67,6 +68,6 @@ for (i = [0:3]) { translate([ 0, dis * i, 0 ]) top_holder(); }; - translate([ -34, -7.5, 0 ]) cube([ 3, dis * 3 + 15, 5 ]); + translate([ -34, -7.5, 0 ]) cube([ 3, dis * 3 + 15, wid ]); }; }; \ No newline at end of file