diff options
-rw-r--r-- | lampenhalter.scad | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lampenhalter.scad b/lampenhalter.scad index 8a9c545..d63d705 100644 --- a/lampenhalter.scad +++ b/lampenhalter.scad @@ -13,24 +13,24 @@ cr = 2; module round_corner(r, h) { translate([-r, -r, 0]) difference() { - cube(size=[r, r, h]); + cube([r, r, h]); cylinder(h=h, r=r, $fn=50); } } difference() { union() { - cube(size = [w,t,h], center=false); + cube([w,t,h]); }; union() { // rail negative - translate([d, d, d]) cube(size = [w-2*d,t,h-2*d], center=false); - translate([(w-wi)/2, d, h-d]) cube(size = [wi, t, d], center=false); + translate([d, d, d]) cube([w-2*d,t,h-2*d]); + translate([(w-wi)/2, d, h-d]) cube([wi, t, d]); // retainer hole - translate([(w-aw)/2, t-at-ad, 0]) cube(size = [aw, at, 2*d]); + translate([(w-aw)/2, t-at-ad, 0]) cube([aw, at, 2*d]); - // round corners + // round vertical corners translate([0, 0, 0]) rotate(a=180) round_corner(r=cr, h=h); translate([w, 0, 0]) rotate(a=270) round_corner(r=cr, h=h); translate([w, t, 0]) rotate(a=0 ) round_corner(r=cr, h=h); |