From d4c56d9dc5e5e6de5cbddc64458c2900b76839ea Mon Sep 17 00:00:00 2001 From: daniel watson Date: Mon, 27 Feb 2017 18:54:20 -0800 Subject: [PATCH] remove wall_thickness in favor of just wall --- spin-data.scad | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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(); } } } -- 2.30.2