remove wall_thickness in favor of just wall
authordaniel watson <ozzloy@gmail.com>
Tue, 28 Feb 2017 02:54:20 +0000 (18:54 -0800)
committerdaniel watson <ozzloy@gmail.com>
Tue, 28 Feb 2017 02:54:20 +0000 (18:54 -0800)
spin-data.scad

index 4d4fd0dec60f9b947024b8c9a82fec96f9878f67..7e367d8b461e9e24d840c72224caa42310088480 100644 (file)
@@ -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(); } } }