diff options
author | Haydn Huntley <haydn.huntley@gmail.com> | 2019-09-14 23:52:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-14 23:52:34 +0300 |
commit | 369db1a2bdeab63bace3600350785a3a77f8fc26 (patch) | |
tree | ff8417acd224e987e00ab6ed280929ea5f8bdfae | |
parent | cea09218d15ad1ded9adbf21fe8a5e27e9378e78 (diff) |
Renamed constants.
-rw-r--r-- | motor.scad | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -13,37 +13,37 @@ include <configuration.scad>; -nema17Width = 43; +nema17Width = 42.5; nema17Length = 48; nema17Diameter = 50; nema17ShaftDiameter = 5; nema17ShaftLength = 25; -nema17ShoulderDiameter = 22; -nema17ShoulderHeight = 2; -nema17ScrewSpacing = 31.3; -dampenerOffset = 6; +nema17ShoulderDiameter = 22; +nema17ShoulderHeight = 2; +nema17ScrewSpacing = 31.3; +dampenerOffset = 6; -module nema17Motor() +module nema17Motor(motorLength=nema17Length) { // Drawn with the shaft pointing toward the positive X-axis. // The motor's shaft. - translate([nema17Length/2, 0, 0]) + translate([motorLength/2, 0, 0]) rotate([0, 90, 0]) cylinder(r=nema17ShaftDiameter/2, h=nema17ShaftLength, $fn=24); // The motor's shoulder. - translate([nema17Length/2, 0, 0]) + translate([motorLength/2, 0, 0]) rotate([0, 90, 0]) cylinder(r=nema17ShoulderDiameter/2, h=nema17ShoulderHeight, $fn=24); // The rectangular body of the motor with rounded corners. intersection() { - cube([nema17Length, nema17Width, nema17Width], true); + cube([motorLength, nema17Width, nema17Width], true); rotate([0, 90, 0]) - cylinder(r=nema17Diameter/2, h=nema17Length, center=true, $fn=24); + cylinder(r=nema17Diameter/2, h=motorLength, center=true, $fn=24); } } |