From: daniel watson Date: Mon, 27 Jan 2014 21:04:48 +0000 (-0800) Subject: add groove for tire tread X-Git-Url: http://challenge-bot.com/repos/?p=challenge-bot;a=commitdiff_plain;h=403f9f0ce4e56304a1b82b1ab3b4df8d5d2a409b add groove for tire tread --- diff --git a/3d-printables/wheel.scad b/3d-printables/wheel.scad index 0a922fd..bcf91f8 100644 --- a/3d-printables/wheel.scad +++ b/3d-printables/wheel.scad @@ -22,6 +22,8 @@ wheel_radius = sqrt(2 * pow(qr_size / 2, 2)) + wall_width / 2; motor_shaft_radius = 3.7; motor_shaft_flat_width = 4.8; +tread_radius = 2.5 / 2; + module mounting_screw_flat(){ square(2, center = true);} @@ -52,9 +54,22 @@ module motor_shaft_holder(radius, flat_width, wall_width, height){ linear_extrude(height = height){ motor_shaft_holder_flat(radius, flat_width, wall_width);}} -module wheel_black(radius, width, shaft_radius, shaft_flat_width, wall_width){ +module tread(wheel_radius, tread_radius){ + rotate_extrude(convexity = 10){ + translate([wheel_radius, 0]){ + circle(tread_radius);}}} + +module wheel_black(radius, + width, + shaft_radius, + shaft_flat_width, + wall_width, + tread_radius){ color("black"){ - rim(radius, wall_width, width); + difference(){ + rim(radius, wall_width, width); + translate([0, 0, width / 2]){ + tread(radius, tread_radius);}} linear_extrude(height = qr_height){ difference(){ qr_black_flat(); @@ -72,16 +87,23 @@ module wheel_white(){ qr_white_flat(); mounting_screw_flat();}}}} -module wheel(radius, width, shaft_radius, shaft_flat_width, wall_width){ +module wheel(radius, + width, + shaft_radius, + shaft_flat_width, + wall_width, + tread_radius){ wheel_black(radius, width, shaft_radius, shaft_flat_width, - wall_width); + wall_width, + tread_radius); wheel_white();} wheel(wheel_radius, wheel_width, motor_shaft_radius, motor_shaft_flat_width, - wall_width); + wall_width, + tread_radius);