From 86222e6ab48ba979ba371e84dfb203e1494fd93e Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20=27Ax=27=20H=C5=AFla?= Date: Fri, 1 Jun 2012 19:41:24 +0200 Subject: [PATCH] Y motor holder has proper shadow stepper now --- inc/functions.scad | 4 ++-- y-driverain.scad | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/functions.scad b/inc/functions.scad index d71d580..2ab51ed 100644 --- a/inc/functions.scad +++ b/inc/functions.scad @@ -85,7 +85,7 @@ module cube_fillet_inside(size, radius=-1, vertical=[3,3,3,3], top=[0,0,0,0], bo } -module nema17(places=[1,1,1,1], size=15.5, h=10, holes=false, shadow=0, $fn=0){ +module nema17(places=[1,1,1,1], size=15.5, h=10, holes=false, shadow=false, $fn=0){ for (i=[0:3]) { if (places[i] == 1) { rotate([0, 0, 90*i]) translate([size, size, 0]) { @@ -97,7 +97,7 @@ module nema17(places=[1,1,1,1], size=15.5, h=10, holes=false, shadow=0, $fn=0){ } } } - if (shadow) { + if (shadow != false) { %translate ([0, 0, shadow+21+3]) cube(size = [42,42,42], center = true); } } diff --git a/y-driverain.scad b/y-driverain.scad index ba5d408..82650a5 100644 --- a/y-driverain.scad +++ b/y-driverain.scad @@ -18,7 +18,7 @@ module motorholder(thickness=10){ difference(){ union(){ translate(v = [-21+4.5,0,5]) cube(size = [9,31,thickness], center=true); - nema17([0,1,1,0], thickness=thickness, shadow=true); + nema17([0,1,1,0], thickness=thickness, shadow=-45); // Parts joining part translate(v = [-29,-21,0]) cube(size = [14,30,thickness]); } -- 2.20.1