From 403f9f0ce4e56304a1b82b1ab3b4df8d5d2a409b Mon Sep 17 00:00:00 2001 From: daniel watson Date: Mon, 27 Jan 2014 13:04:48 -0800 Subject: [PATCH] add groove for tire tread --- 3d-printables/wheel.scad | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) 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); -- 2.30.2