X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=spin-data.scad;h=534df16c0124c70f6b72ff1ab2fcbbe09ac04c75;hb=1dc634e165abdec58126cc340dfa1ea60b5032f2;hp=eb2f1a9e63e9cbe6a3ee8615db1b347c4ee7f218;hpb=5fdbde1b81fd31a728da953aa270a71e31c0b28c;p=ozzloy%40gmail.com%2F3d-printables diff --git a/spin-data.scad b/spin-data.scad index eb2f1a9..534df16 100644 --- a/spin-data.scad +++ b/spin-data.scad @@ -200,6 +200,26 @@ module spin_slices(weight_radius, r = weight_radius + 0.15, center = true); } } } } } +module spin_donut(weight_radius, + weight_thickness, + bearing_radius, + bearing_thickness, + weight_lip_overhang, + bearing_lip_overhang, + wall, + arms) { + thicker_thickness = (bearing_thickness > weight_thickness) + ? bearing_thickness : weight_thickness; + height = thicker_thickness + wall * 2; + + center_to_arm_center = bearing_radius + wall + weight_radius; + + jelly_filled(height, bearing_radius); + for(arm = [0 : arms]) { + rotate(arm * (360 / arms)) { + translate([center_to_arm_center, 0, 0]) { + jelly_filled(height, weight_radius); } } } } + /* This file is part of 3d-printables.