From: daniel watson Date: Tue, 28 Feb 2017 02:54:20 +0000 (-0800) Subject: remove wall_thickness in favor of just wall X-Git-Url: http://challenge-bot.com/repos/?p=ozzloy%40gmail.com%2F3d-printables;a=commitdiff_plain;h=d4c56d9dc5e5e6de5cbddc64458c2900b76839ea remove wall_thickness in favor of just wall --- diff --git a/spin-data.scad b/spin-data.scad index 4d4fd0d..7e367d8 100644 --- a/spin-data.scad +++ b/spin-data.scad @@ -11,8 +11,6 @@ weight = "penny"; bearing = "608zz"; weight_lip_overhang = 0.3; bearing_lip_overhang = weight_lip_overhang; -// TODO: switch wall_thickness -> wall -wall_thickness = 3; wall = 3; penny_thickness = 1.52; penny_radius = 19.05 / 2; @@ -66,6 +64,21 @@ module cap(bearing_inner_radius, r2 = bearing_inner_radius, h = cap_height - 1); } } } +module donut(height, footprint_radius) { + bread_radius = height / 2; + rotate_extrude() { + translate([footprint_radius, 0]) { + circle(bread_radius); } } } + +module donut_hole(height, footprint_radius) { + difference() { + cylinder(r = footprint_radius, h = height, center = true); + donut(height, footprint_radius); } } + +module jelly_filled(height, footprint_radius) { + cylinder(r = footprint_radius, h = height, center = true); + donut(height, footprint_radius); } + module fillet(r) { offset(r = -r) { offset(delta = r) { children(); } } }