id
stringlengths
36
36
error_code
stringlengths
87
14.5k
correct_code
stringlengths
159
14.5k
image
imagewidth (px)
858
947
e4d352a6-b58b-4691-a325-2edf5f32043d
// BLOCK 1 part = "fbl"; wall_thickness = 1; gap = 0.200; notes_length = 158; notes_width = 68.500; notes_height = 15; hole_radius = 10; hole_position = 10; guide_rail_width = 10; leading_bridge = "y"; leading_rail_length = 30; screw_diameter = 4; e = 1e-2; $fn = 100; // BLOCK 2 module box() { difference() { cube([notes_width + 2 * wall_thickness, notes_length + 2 * wall_thickness, notes_height + wall_thickness]); translate([wall_thickness, wall_thickness, wall_thickness]) cube([notes_width, notes_length, notes_height + e]); translate([wall_thickness + notes_width / 2, wall_thickness + hole_radius + (notes_length - 2 * hole_radius) * hole_position / 100, -e]) cylinder(r = hole_radius, h = wall_thickness + 2 * e); } } // BLOCK 3 module frame() { difference() { union() { cube([notes_width + 2 * (gap + 2 * wall_thickness), notes_length + 3 * wall_thickness + gap, 2 * wall_thickness + notes_height + gap]); translate([wall_thickness * sin(45), -wall_thickness * sin(45), 0]) rotate(a = 135, v = [0, 0, 1]) translate([wall_thickness - guide_rail_width, 0, 0]) cube([guide_rail_width, leading_rail_length, 2 * wall_thickness + notes_height + gap]); translate([notes_width + 2 * (gap + 2 * wall_thickness) - wall_thickness * sin(45), -wall_thickness * sin(45), 0]) rotate(a = 225, v = [0, 0, 1]) translate([-wall_thickness, 0, 0]) cube([guide_rail_width, leading_rail_length, 2 * wall_thickness + notes_height + gap]); cylinder(r = guide_rail_width, h = 2 * wall_thickness + notes_height + gap); translate([notes_width + 2 * (gap + 2 * wall_thickness), 0, 0]) cylinder(r = guide_rail_width, h = 2 * wall_thickness + notes_height + gap); translate([0, notes_length + 3 * wall_thickness + gap - guide_rail_width, 0]) cylinder(r = guide_rail_width, h = 2 * wall_thickness + notes_height + gap); translate([notes_width + 2 * (gap + 2 * wall_thickness), notes_length + 3 * wall_thickness + gap - guide_rail_width, 0]) cylinder(r = guide_rail_width, h = 2 * wall_thickness + notes_height + gap); } translate([wall_thickness, -e - guide_rail_width / sin(45), wall_thickness]) cube([notes_width + 2 * (gap + wall_thickness), notes_length + 2 * wall_thickness + gap + e + guide_rail_width / sin(45), 2 * wall_thickness + notes_height + gap + e]); translate([guide_rail_width, -e + (leading_bridge=="y"?guide_rail_width:0), -e]) cube([notes_width + 2 * (gap + 2 * wall_thickness) - 2 * guide_rail_width, notes_length + 3 * wall_thickness + gap - guide_rail_width + e - (leading_bridge=="y"?guide_rail_width:0), wall_thickness + 2 * e]); translate([wall_thickness, -wall_thickness * sin(45), wall_thickness]) rotate(a = 135, v = [0, 0, 1]) translate([0 - guide_rail_width, 0, 0]) cube([guide_rail_width, leading_rail_length + wall_thickness, 2 * wall_thickness + notes_height + gap]); translate([notes_width + 2 * (gap + 2 * wall_thickness) - wall_thickness, -wall_thickness * sin(45), wall_thickness]) rotate(a = 225, v = [0, 0, 1]) translate([0, 0, 0]) cube([guide_rail_width, leading_rail_length + wall_thickness, 2 * wall_thickness + notes_height + gap]); translate([-guide_rail_width / 2, 0, -e]) cylinder(r = screw_diameter / 2, h = 2 * wall_thickness + notes_height + gap + 2 * e); translate([notes_width + 2 * (gap + 2 * wall_thickness) + guide_rail_width / 2, 0, -e]) cylinder(r = screw_diameter / 2, h = 2 * wall_thickness + notes_height + gap + 2 * e); translate([-guide_rail_width / 2, notes_length + 3 * wall_thickness + gap - guide_rail_width, -e]) cylinder(r = screw_diameter / 2, h = 2 * wall_thickness + notes_height + gap + 2 * e); translate([notes_width + 2 * (gap + 2 * wall_thickness) + guide_rail_width / 2, notes_length + 3 * wall_thickness + gap - guide_rail_width, -e]) cylinder(r = screw_diameter / 2, h = 2 * wall_thickness + notes_height + gap + 2 * e); } } // BLOCK 4 module lid() { cube([notes_width - 2 * gap, notes_length - 2 * gap, wall_thickness]); } if (len(search("b", part)) > 0) box(); if (len(search("f", part)) > 0) translate([-wall_thickness - gap, 0, -(wall_thickness + gap)]) frame(); if (len(search("l", part)) > 0) translate([wall_thickness + gap, wall_thickness + gap, notes_height]) lid();
// BLOCK 1 part = "fbl"; wall_thickness = 1; gap = 0.200; notes_length = 158; notes_width = 68.500; notes_height = 15; hole_radius = 10; hole_position = 10; guide_rail_width = 10; leading_bridge = "y"; leading_rail_length = 30; screw_diameter = 4; e = 1e-2; $fn = 100; // BLOCK 2 module box() { difference() { cube([notes_width + 2 * wall_thickness, notes_length + 2 * wall_thickness, notes_height + wall_thickness]); translate([wall_thickness, wall_thickness, wall_thickness]) cube([notes_width, notes_length, notes_height + e]); translate([wall_thickness + notes_width / 2, wall_thickness + hole_radius + (notes_length - 2 * hole_radius) * hole_position / 100, -e]) cylinder(r = hole_radius, h = wall_thickness + 2 * e); } } // BLOCK 3 module frame() { difference() { union() { cube([notes_width + 2 * (gap + 2 * wall_thickness), notes_length + 3 * wall_thickness + gap, 2 * wall_thickness + notes_height + gap]); translate([wall_thickness * sin(45), -wall_thickness * sin(45), 0]) rotate(a = 135, v = [0, 0, 1]) translate([wall_thickness - guide_rail_width, 0, 0]) cube([guide_rail_width, leading_rail_length, 2 * wall_thickness + notes_height + gap]); translate([notes_width + 2 * (gap + 2 * wall_thickness) - wall_thickness * sin(45), -wall_thickness * sin(45), 0]) rotate(a = 225, v = [0, 0, 1]) translate([-wall_thickness, 0, 0]) cube([guide_rail_width, leading_rail_length, 2 * wall_thickness + notes_height + gap]); cylinder(r = guide_rail_width, h = 2 * wall_thickness + notes_height + gap); translate([notes_width + 2 * (gap + 2 * wall_thickness), 0, 0]) cylinder(r = guide_rail_width, h = 2 * wall_thickness + notes_height + gap); translate([0, notes_length + 3 * wall_thickness + gap - guide_rail_width, 0]) cylinder(r = guide_rail_width, h = 2 * wall_thickness + notes_height + gap); translate([notes_width + 2 * (gap + 2 * wall_thickness), notes_length + 3 * wall_thickness + gap - guide_rail_width, 0]) cylinder(r = guide_rail_width, h = 2 * wall_thickness + notes_height + gap); } translate([wall_thickness, -e - guide_rail_width / sin(45), wall_thickness]) cube([notes_width + 2 * (gap + wall_thickness), notes_length + 2 * wall_thickness + gap + e + guide_rail_width / sin(45), 2 * wall_thickness + notes_height + gap + e]); translate([guide_rail_width, -e + (leading_bridge=="y"?guide_rail_width:0), -e]) cube([notes_width + 2 * (gap + 2 * wall_thickness) - 2 * guide_rail_width, notes_length + 3 * wall_thickness + gap - guide_rail_width + e - (leading_bridge=="y"?guide_rail_width:0), wall_thickness + 2 * e]); translate([wall_thickness, -wall_thickness * sin(45), wall_thickness]) rotate(a = 135, v = [0, 0, 1]) translate([0 - guide_rail_width, 0, 0]) cube([guide_rail_width, leading_rail_length + wall_thickness, 2 * wall_thickness + notes_height + gap]); translate([notes_width + 2 * (gap + 2 * wall_thickness) - wall_thickness, -wall_thickness * sin(45), wall_thickness]) rotate(a = 225, v = [0, 0, 1]) translate([0, 0, 0]) cube([guide_rail_width, leading_rail_length + wall_thickness, 2 * wall_thickness + notes_height + gap]); translate([-guide_rail_width / 2, 0, -e]) cylinder(r = screw_diameter / 2, h = 2 * wall_thickness + notes_height + gap + 2 * e); translate([notes_width + 2 * (gap + 2 * wall_thickness) + guide_rail_width / 2, 0, -e]) cylinder(r = screw_diameter / 2, h = 2 * wall_thickness + notes_height + gap + 2 * e); translate([-guide_rail_width / 2, notes_length + 3 * wall_thickness + gap - guide_rail_width, -e]) cylinder(r = screw_diameter / 2, h = 2 * wall_thickness + notes_height + gap + 2 * e); translate([notes_width + 2 * (gap + 2 * wall_thickness) + guide_rail_width / 2, notes_length + 3 * wall_thickness + gap - guide_rail_width, -e]) cylinder(r = screw_diameter / 2, h = 2 * wall_thickness + notes_height + gap + 2 * e); } } // BLOCK 4 module lid() { cube([notes_width - 2 * gap, notes_length - 2 * gap, wall_thickness]); } if (len(search("b", part)) > 0) box(); if (len(search("f", part)) > 0) translate([-wall_thickness - gap, 0, -(wall_thickness + gap)]) frame(); if (len(search("l", part)) > 0) translate([wall_thickness + gap, wall_thickness + gap, notes_height]) lid();
93556376-551f-48f4-a09f-b2b26c3e1700
// BLOCK 1 r=16; size=50; gap=0.300; half_gap=gap/2; part(); // BLOCK 2 module your_shape_here() { sphere(r=r,$fn=200); } // BLOCK 3 module part() { difference() { your_shape_here(); translate([-r/2-half_gap,-size+half_gap,-1]) cube([size,size,size]); translate([0,0,-size/2+half_gap]) cube([size,size,size],true); translate([-r/2,0,0]) rotate([0,-45,0]) translate([-half_gap,-r/2-gap+half_gap,-1]) cube([size,r/2+gap,size]); translate([0,r/2-half_gap,r/2-half_gap]) cube([size,size,size]); render () intersection() { translate([-half_gap,-2,r/2-half_gap]) cube([size,size,size]); translate([0,0,r/2]) rotate([0,-45,0]) translate([-1,-1,-half_gap]) cube([size,size,size]); } } } // BLOCK 4 module assembled() { part(); rotate([0,180,0]) part(); rotate([0,90,0]) rotate(180) mirror([1,0,0]) { part(); rotate([0,180,0]) part(); } }
// BLOCK 1 r=16; size=50; gap=0.300; half_gap=gap/2; part(); // BLOCK 2 module your_shape_here() { sphere(r=r,$fn=200); } // BLOCK 3 module part() { difference() { your_shape_here(); translate([-r/2-half_gap,-size+half_gap,-1]) cube([size,size,size]); translate([0,0,-size/2+half_gap]) cube([size,size,size],true); translate([-r/2,0,0]) rotate([0,-45,0]) translate([-half_gap,-r/2-gap+half_gap,-1]) cube([size,r/2+gap,size]); translate([0,r/2-half_gap,r/2-half_gap]) cube([size,size,size]); render () intersection() { translate([-half_gap,-2,r/2-half_gap]) cube([size,size,size]); translate([0,0,r/2]) rotate([0,-45,0]) translate([-1,-1,-half_gap]) cube([size,size,size]); } } } // BLOCK 4 module assembled() { part(); rotate([0,180,0]) part(); rotate([0,90,0]) rotate(180) mirror([1,0,0]) { part(); rotate([0,180,0]) part(); } }
8fcc125c-ac30-425c-89ea-60498b6621f7
// BLOCK 1 // BLOCK 2 module stand() { linear_extrude(height=5, center=true) polygon(points=[[0,0],[50,0],[50,5],[30,12],[20,20],[10,30],[0,30]]); } // BLOCK 3 difference() { union() { for (i=[1:18]) { rotate([0,i*20,0]) { scale([.7,.9,1]) stand(); scale([.8,1,.5]) stand(); }} rotate([-90,0,0]) cylinder(r=32/2, h=30); } translate([0,3,0]) rotate([-90,0,0]) cylinder(r=26.500/2, h=35); }
// BLOCK 1 // BLOCK 2 module stand() { linear_extrude(height=5, center=true) polygon(points=[[0,0],[50,0],[50,5],[30,12],[20,20],[10,30],[0,30]]); } // BLOCK 3 difference() { union() { for (i=[1:18]) { rotate([0,i*20,0]) { scale([.7,.9,1]) stand(); scale([.8,1,.5]) stand(); }} rotate([-90,0,0]) cylinder(r=32/2, h=30); } translate([0,3,0]) rotate([-90,0,0]) cylinder(r=26.500/2, h=35); }
35bdd392-adeb-4903-8944-4653c341f813
// BLOCK 1 Base_diameter = 1.000; function Top_diameter() = Base_diameter*1.300; function Height() = Base_diameter*2; Interference = 0; Horizontal = 10; Vertical = 10; Thickness = 0.600; BorderH = 5; BorderV = 5; Resolution = 12; $fn = Resolution; function factor() = Base_diameter/12.500; function spacing()=Base_diameter*4.400+Interference*factor(); // BLOCK 2 module tower(){ cylinder(h = Height(), r1 = Base_diameter/2, r2 = Top_diameter()/2, center = false); } // BLOCK 3 module single_array(){ render(){ h=spacing(); tower(); translate([h/2,h/4,0])tower(); } } // BLOCK 4 module horizontal_array(){ render(){ h=spacing(); for(dx=[0:h:h*Horizontal-1]){ translate([dx,0,0])single_array(); } } } // BLOCK 5 module large_array(){ v=spacing()/2; for(dy=[0:v:v*Vertical-1]){ translate([0,dy,0])horizontal_array(); } } // BLOCK 6 module base_plate(){ h=spacing(); v=h/2; translate([-1*BorderH,-1*BorderV,-1*Thickness])cube([(h*Horizontal+BorderH*2-h/2),v*Vertical+BorderV*2-v/2,Thickness]); } union(){ large_array(); base_plate(); }
// BLOCK 1 Base_diameter = 1.000; function Top_diameter() = Base_diameter*1.300; function Height() = Base_diameter*2; Interference = 0; Horizontal = 10; Vertical = 10; Thickness = 0.600; BorderH = 5; BorderV = 5; Resolution = 12; $fn = Resolution; function factor() = Base_diameter/12.500; function spacing()=Base_diameter*4.400+Interference*factor(); // BLOCK 2 module tower(){ cylinder(h = Height(), r1 = Base_diameter/2, r2 = Top_diameter()/2, center = false); } // BLOCK 3 module single_array(){ render(){ h=spacing(); tower(); translate([h/2,h/4,0])tower(); } } // BLOCK 4 module horizontal_array(){ render(){ h=spacing(); for(dx=[0:h:h*Horizontal-1]){ translate([dx,0,0])single_array(); } } } // BLOCK 5 module large_array(){ v=spacing()/2; for(dy=[0:v:v*Vertical-1]){ translate([0,dy,0])horizontal_array(); } } // BLOCK 6 module base_plate(){ h=spacing(); v=h/2; translate([-1*BorderH,-1*BorderV,-1*Thickness])cube([(h*Horizontal+BorderH*2-h/2),v*Vertical+BorderV*2-v/2,Thickness]); } union(){ large_array(); base_plate(); }
e75106a2-bdd0-4033-93db-bbcc72623eeb
// BLOCK 1 opteka_r1 = 24.750/2; opteka_r2 = 41.350/2; // BLOCK 2 module rounded(size, r) { union() { translate([r, 0, 0]) cube([size[0]-2*r, size[1], size[2]]); translate([0, r, 0]) cube([size[0], size[1]-2*r, size[2]]); translate([r, r, 0]) cylinder(h=size[2], r=r); translate([size[0]-r, r, 0]) cylinder(h=size[2], r=r); translate([r, size[1]-r, 0]) cylinder(h=size[2], r=r); translate([size[0]-r, size[1]-r, 0]) cylinder(h=size[2], r=r); } } // BLOCK 3 module opteka() { union() { cylinder(r=23.060/2, h=7); translate([0, 0, 3]) cylinder(r=opteka_r1, h=2.500); cylinder(r=18.660/2, h=10); translate([0, 0, 10]) cylinder(r1=25/2, r2=opteka_r2, h=3); translate([0, 0, 13]) cylinder(r=opteka_r2, h=8.420); } } margin = 0.100; angle = -14.150; wall = 5; wall2 = 2; image_h = 10; showwx_offset = 14; showwx_w = 61.250; showwx_wb = 54; showwx_wb2 = 34; showwx_l1 = 68; showwx_l2 = 85; globe_r1 = 98/2; globe_r2 = 105/2; globe_h = 15; globe_bolt = 3.800/2; // BLOCK 4 module lens_mount() difference() { translate([0, 0, -2]) union() { translate([0, 0, opteka_r2]) rotate([angle, 0, 0]) difference() { union() { difference() { translate([-globe_r2-4*wall, -12, -opteka_r2-wall]) cube([2*(globe_r2+4*wall), 2*wall, 4*wall]); translate([-globe_r2-2*wall, -12, -opteka_r2+wall]) rotate([-90, 0, 0]) cylinder(r=globe_bolt, h=20); translate([globe_r2+2*wall, -12, -opteka_r2+wall]) rotate([-90, 0, 0]) cylinder(r=globe_bolt, h=20); } for(t = [-45, -135]) { rotate([0, t, 0]) translate([0, -12, -2*wall]) difference() { cube([globe_r2+4*wall, 2*wall, 4*wall]); translate([globe_r2+2*wall, 0, 2*wall]) rotate([-90, 0, 0]) cylinder(r=globe_bolt, h=globe_h); } } translate([-opteka_r1-wall, -12, -opteka_r2-wall]) union() { cube([2*(opteka_r1+wall), 12, (opteka_r2+wall+opteka_r1)]); rounded([2*(opteka_r1+wall), 2*(opteka_r1+wall), 17], 10); } } minkowski() { rotate([90, 0, 0]) opteka(); translate([-margin, -margin, -margin]) cube([margin*2, margin*2, 50+margin]); } } translate([-showwx_offset, 0, 0]) difference() { union() { translate([-showwx_wb/2, 0, 0]) rounded([showwx_wb, showwx_l1, opteka_r2-image_h], 10); translate([-showwx_wb2/2, 0, 0]) rounded([showwx_wb2, showwx_l2, opteka_r2-image_h], 10); for(y = [30, 60]) { union() { translate([-showwx_w/2-wall2, y, 0]) cube([wall2, 10, 20]); translate([showwx_w/2, y, 0]) cube([wall2, 10, 20]); translate([-showwx_w/2, y, 0]) cube([showwx_w, 10, opteka_r2-image_h]); } } } translate([-showwx_wb2/2+wall, wall, 0]) rounded([showwx_wb2-2*wall, showwx_l2-2*wall, 50], 10); } } translate([-200, -200, -100]) cube([400, 400, 100]); } // BLOCK 5 module globe_mount() { difference() { union() { cylinder(r1=globe_r2+wall, r2=globe_r1+wall, h=globe_h); translate([-globe_r2-4*wall, -opteka_r2-wall, 0]) difference() { rounded([2*(globe_r2+4*wall), 4*wall, wall],2); translate([2*wall, 2*wall, 0]) cylinder(r=globe_bolt, h=globe_h); translate([2*globe_r2+6*wall, 2*wall, 0]) cylinder(r=globe_bolt, h=globe_h); } for(t = [45, 135]) { rotate([0, 0, t]) translate([0, -2*wall, 0]) difference() { rounded([globe_r2+4*wall, 4*wall, wall], 2); translate([globe_r2+2*wall, 2*wall, 0]) cylinder(r=globe_bolt, h=globe_h); } } for(i = [0:11]) { rotate([0, 0, i*360/12]) translate([-globe_r2-wall, -wall, 0]) cube([20, 2*wall, globe_h/2+wall]); } } cylinder(r1=globe_r2, r2=globe_r1, h=globe_h-wall); cylinder(r=globe_r1, h=globe_h+1); translate([-wall, -globe_r2-2*wall, 0]) cube([2*wall, 2*(globe_r2+2*wall), globe_h+1]); for(i = [0:11]) { rotate([0, 0, i*360/12]) translate([-globe_r2-wall, 0, globe_h/2]) rotate([0, 90, 0]) cylinder(r=globe_bolt, h=20); } } } lens_mount();
// BLOCK 1 opteka_r1 = 24.750/2; opteka_r2 = 41.350/2; // BLOCK 2 module rounded(size, r) { union() { translate([r, 0, 0]) cube([size[0]-2*r, size[1], size[2]]); translate([0, r, 0]) cube([size[0], size[1]-2*r, size[2]]); translate([r, r, 0]) cylinder(h=size[2], r=r); translate([size[0]-r, r, 0]) cylinder(h=size[2], r=r); translate([r, size[1]-r, 0]) cylinder(h=size[2], r=r); translate([size[0]-r, size[1]-r, 0]) cylinder(h=size[2], r=r); } } // BLOCK 3 module opteka() { union() { cylinder(r=23.060/2, h=7); translate([0, 0, 3]) cylinder(r=opteka_r1, h=2.500); cylinder(r=18.660/2, h=10); translate([0, 0, 10]) cylinder(r1=25/2, r2=opteka_r2, h=3); translate([0, 0, 13]) cylinder(r=opteka_r2, h=8.420); } } margin = 0.100; angle = -14.150; wall = 5; wall2 = 2; image_h = 10; showwx_offset = 14; showwx_w = 61.250; showwx_wb = 54; showwx_wb2 = 34; showwx_l1 = 68; showwx_l2 = 85; globe_r1 = 98/2; globe_r2 = 105/2; globe_h = 15; globe_bolt = 3.800/2; // BLOCK 4 module lens_mount() difference() { translate([0, 0, -2]) union() { translate([0, 0, opteka_r2]) rotate([angle, 0, 0]) difference() { union() { difference() { translate([-globe_r2-4*wall, -12, -opteka_r2-wall]) cube([2*(globe_r2+4*wall), 2*wall, 4*wall]); translate([-globe_r2-2*wall, -12, -opteka_r2+wall]) rotate([-90, 0, 0]) cylinder(r=globe_bolt, h=20); translate([globe_r2+2*wall, -12, -opteka_r2+wall]) rotate([-90, 0, 0]) cylinder(r=globe_bolt, h=20); } for(t = [-45, -135]) { rotate([0, t, 0]) translate([0, -12, -2*wall]) difference() { cube([globe_r2+4*wall, 2*wall, 4*wall]); translate([globe_r2+2*wall, 0, 2*wall]) rotate([-90, 0, 0]) cylinder(r=globe_bolt, h=globe_h); } } translate([-opteka_r1-wall, -12, -opteka_r2-wall]) union() { cube([2*(opteka_r1+wall), 12, (opteka_r2+wall+opteka_r1)]); rounded([2*(opteka_r1+wall), 2*(opteka_r1+wall), 17], 10); } } minkowski() { rotate([90, 0, 0]) opteka(); translate([-margin, -margin, -margin]) cube([margin*2, margin*2, 50+margin]); } } translate([-showwx_offset, 0, 0]) difference() { union() { translate([-showwx_wb/2, 0, 0]) rounded([showwx_wb, showwx_l1, opteka_r2-image_h], 10); translate([-showwx_wb2/2, 0, 0]) rounded([showwx_wb2, showwx_l2, opteka_r2-image_h], 10); for(y = [30, 60]) { union() { translate([-showwx_w/2-wall2, y, 0]) cube([wall2, 10, 20]); translate([showwx_w/2, y, 0]) cube([wall2, 10, 20]); translate([-showwx_w/2, y, 0]) cube([showwx_w, 10, opteka_r2-image_h]); } } } translate([-showwx_wb2/2+wall, wall, 0]) rounded([showwx_wb2-2*wall, showwx_l2-2*wall, 50], 10); } } translate([-200, -200, -100]) cube([400, 400, 100]); } // BLOCK 5 module globe_mount() { difference() { union() { cylinder(r1=globe_r2+wall, r2=globe_r1+wall, h=globe_h); translate([-globe_r2-4*wall, -opteka_r2-wall, 0]) difference() { rounded([2*(globe_r2+4*wall), 4*wall, wall],2); translate([2*wall, 2*wall, 0]) cylinder(r=globe_bolt, h=globe_h); translate([2*globe_r2+6*wall, 2*wall, 0]) cylinder(r=globe_bolt, h=globe_h); } for(t = [45, 135]) { rotate([0, 0, t]) translate([0, -2*wall, 0]) difference() { rounded([globe_r2+4*wall, 4*wall, wall], 2); translate([globe_r2+2*wall, 2*wall, 0]) cylinder(r=globe_bolt, h=globe_h); } } for(i = [0:11]) { rotate([0, 0, i*360/12]) translate([-globe_r2-wall, -wall, 0]) cube([20, 2*wall, globe_h/2+wall]); } } cylinder(r1=globe_r2, r2=globe_r1, h=globe_h-wall); cylinder(r=globe_r1, h=globe_h+1); translate([-wall, -globe_r2-2*wall, 0]) cube([2*wall, 2*(globe_r2+2*wall), globe_h+1]); for(i = [0:11]) { rotate([0, 0, i*360/12]) translate([-globe_r2-wall, 0, globe_h/2]) rotate([0, 90, 0]) cylinder(r=globe_bolt, h=20); } } } lens_mount();
8179e94c-c1b2-4bc5-8d5b-e67fb8e790b6
// BLOCK 1 shell(); frame(); // BLOCK 2 module frame(thick=5,width=50,length=70){ difference(){ union(){ cylinder(thick, d=width); translate([0,-width/2,0]) cube([length,width,thick]); translate([length,-width/2,0]) cube([thick,width,length]); translate([length,0,length]) rotate([0,90,0]) cylinder(thick, d=width); } cylinder(thick/2, d=40); translate([length,0,width/2]) rotate([0,90,0]) cylinder(thick, d=3.100); translate([length-thick/2,0,width/2]) rotate([0,90,0]) cylinder(thick, d=7); } } // BLOCK 3 module shell(thick=5,width=50,length=70){ shell_width = width+5; shell_thick = thick+5; difference(){ union(){ translate([0,0,-shell_thick]) cylinder(shell_thick, d=shell_width); translate([length+thick-1,0,thick+5/2]) rotate([90,0,180]) difference(){ dish_q(shell_width, length+thick-1); dish_q(shell_width-5, length+thick-1); } translate([0,0,-5/2]){ translate([0,-shell_width/2,0]) cube([length+thick,shell_width,shell_thick]); cylinder(shell_thick, d=shell_width); } } translate([0,0,-shell_thick]) cylinder(shell_thick, d=width); translate([0,-(width-5)/2,-thick]) cube([length+thick,width-5,thick]); translate([0,0,-thick]) cylinder(thick+5, d=width-5); frame(5.200,50.200,70.200); } } // BLOCK 4 module dish_q(width=50,length=70){ intersection(){ translate([-1,-1,-(width+1)/2]) cube([length+width+2,length+width+2,width+1]); rotate_extrude() translate([-length,0,0]) union(){ circle(d=width); translate([0,-width/2,0])square([length,width]); } } }
// BLOCK 1 shell(); frame(); // BLOCK 2 module frame(thick=5,width=50,length=70){ difference(){ union(){ cylinder(thick, d=width); translate([0,-width/2,0]) cube([length,width,thick]); translate([length,-width/2,0]) cube([thick,width,length]); translate([length,0,length]) rotate([0,90,0]) cylinder(thick, d=width); } cylinder(thick/2, d=40); translate([length,0,width/2]) rotate([0,90,0]) cylinder(thick, d=3.100); translate([length-thick/2,0,width/2]) rotate([0,90,0]) cylinder(thick, d=7); } } // BLOCK 3 module shell(thick=5,width=50,length=70){ shell_width = width+5; shell_thick = thick+5; difference(){ union(){ translate([0,0,-shell_thick]) cylinder(shell_thick, d=shell_width); translate([length+thick-1,0,thick+5/2]) rotate([90,0,180]) difference(){ dish_q(shell_width, length+thick-1); dish_q(shell_width-5, length+thick-1); } translate([0,0,-5/2]){ translate([0,-shell_width/2,0]) cube([length+thick,shell_width,shell_thick]); cylinder(shell_thick, d=shell_width); } } translate([0,0,-shell_thick]) cylinder(shell_thick, d=width); translate([0,-(width-5)/2,-thick]) cube([length+thick,width-5,thick]); translate([0,0,-thick]) cylinder(thick+5, d=width-5); frame(5.200,50.200,70.200); } } // BLOCK 4 module dish_q(width=50,length=70){ intersection(){ translate([-1,-1,-(width+1)/2]) cube([length+width+2,length+width+2,width+1]); rotate_extrude() translate([-length,0,0]) union(){ circle(d=width); translate([0,-width/2,0])square([length,width]); } } }
fefe586d-3df0-4772-8aa7-fe7c8026f3ff
// BLOCK 1 $fn = 360; tubeD = 124.900; plateD = 140; tubeH = 16; finH = 10; finAngle = 45; finAmount = 11; gridDividers = 1; tubeWallT = 1.500; gridWallT = 1; plateT = 1.500; plateLipH = 0.800; plateLipT = 0.800; grid(); tube(); plate(); lip(); // BLOCK 2 module tube() { difference() { cylinder(tubeH, d = tubeD); cylinder(tubeH, d = tubeD - tubeWallT*2); } } // BLOCK 3 module plate() { difference() { cylinder(plateT, d1 = plateD - plateT*2, d2 = plateD); if (finAngle > 0) cylinder(tubeH, d = tubeD); } } // BLOCK 4 module grid() { if (finAngle > 0) { intersection() { cylinder(finH, d = tubeD); gridFins(); } } else { intersection() { cylinder(finH, d = tubeD); rotate([0, 0, 90]) gridDividers(); } } intersection() { cylinder(finH, d = tubeD); gridDividers(); } } // BLOCK 5 module gridDividers() { if (gridDividers > 0) { dSpacing = tubeD / (gridDividers + 1); translate([-tubeD/2, 0, 0]) for (i = [1:1:gridDividers]) { translate([i*dSpacing, 0, finH/2]) cube([gridWallT, tubeD, finH], true); } } } // BLOCK 6 module gridFins() { finL = finH / cos(90-finAngle); finSpacing = tubeD / finAmount; translate([0, -tubeD/2, 0]) for (i = [finSpacing/2:finSpacing:tubeD]) { translate([0, i, 0]) { gridFin(finL); } } } // BLOCK 7 module gridFin(finL) { translate([0, 0, finH/2]) { rotate([90-finAngle, 0, 0]) { cube([tubeD, gridWallT, finL + gridWallT*2], true); } } } // BLOCK 8 module lip() { translate([0, 0, plateT]) difference() { cylinder(plateLipH, d = plateD); cylinder(plateLipH, d = plateD - plateLipT*2); } }
// BLOCK 1 $fn = 360; tubeD = 124.900; plateD = 140; tubeH = 16; finH = 10; finAngle = 45; finAmount = 11; gridDividers = 1; tubeWallT = 1.500; gridWallT = 1; plateT = 1.500; plateLipH = 0.800; plateLipT = 0.800; grid(); tube(); plate(); lip(); // BLOCK 2 module tube() { difference() { cylinder(tubeH, d = tubeD); cylinder(tubeH, d = tubeD - tubeWallT*2); } } // BLOCK 3 module plate() { difference() { cylinder(plateT, d1 = plateD - plateT*2, d2 = plateD); if (finAngle > 0) cylinder(tubeH, d = tubeD); } } // BLOCK 4 module grid() { if (finAngle > 0) { intersection() { cylinder(finH, d = tubeD); gridFins(); } } else { intersection() { cylinder(finH, d = tubeD); rotate([0, 0, 90]) gridDividers(); } } intersection() { cylinder(finH, d = tubeD); gridDividers(); } } // BLOCK 5 module gridDividers() { if (gridDividers > 0) { dSpacing = tubeD / (gridDividers + 1); translate([-tubeD/2, 0, 0]) for (i = [1:1:gridDividers]) { translate([i*dSpacing, 0, finH/2]) cube([gridWallT, tubeD, finH], true); } } } // BLOCK 6 module gridFins() { finL = finH / cos(90-finAngle); finSpacing = tubeD / finAmount; translate([0, -tubeD/2, 0]) for (i = [finSpacing/2:finSpacing:tubeD]) { translate([0, i, 0]) { gridFin(finL); } } } // BLOCK 7 module gridFin(finL) { translate([0, 0, finH/2]) { rotate([90-finAngle, 0, 0]) { cube([tubeD, gridWallT, finL + gridWallT*2], true); } } } // BLOCK 8 module lip() { translate([0, 0, plateT]) difference() { cylinder(plateLipH, d = plateD); cylinder(plateLipH, d = plateD - plateLipT*2); } }
3de37b86-e052-4aea-b67e-d3f0c4c2af63
// BLOCK 1 $fs=0.500; $fa=6; NAME = "Charlotte"; OUTER = 96; N = 10; DIA = 15; WALL = 3; BORDER_DIA = 15; FONTNAME = "Pacifico"; FONTSTYLE = "Regular"; FONT_SIZE = 12; FONT_THICKNESS = 5; GRID_THICKNESS = 3; M3_HEAD_BOTTOM = 4.500; M3_HEAD_DIA = 6.500; M3_HOLE_DIA = 3.800; MAKE_M3_TEST = "no"; FONT = str(FONTNAME,":style=",FONTSTYLE); echo("FONT:",FONT); // BLOCK 2 module hexagon(l) { circle(d=l, $fn=6); } // BLOCK 3 module hexagon_border(inner, outer) { difference() { hexagon(outer); hexagon(inner); } } // BLOCK 4 module honeycomb(x, y, dia, wall) { innerDia = dia-(2*wall); midDia = dia - wall; outerHeight = 2 * ((dia/4)/tan(30)); innerHeight = 2* ((innerDia/4)/tan(30)); midHeight = 2* ((midDia/4)/tan(30)); outerEdge = outerHeight/2 / cos(30); innerEdge = innerHeight/2 / cos(30); midEdge = midHeight/2 / cos(30); minWall = wall * cos(30); xStep = midDia + midEdge; yStep = outerHeight-minWall; for (yOffset = [0:yStep:y+yStep], xOffset = [0:xStep:x+xStep]) { translate([xOffset, yOffset]) { hexagon_border(innerDia, dia); } translate([xOffset +midDia - midEdge/2 , yOffset + outerHeight/2 - wall/2]) { color("blue") hexagon_border(innerDia,dia); } } } // BLOCK 5 module ball(inner, outer) { difference() { sphere(d=outer); sphere(d=inner); } } // BLOCK 6 module honeycombBall(n, dia, wall) { d = dia; w = wall; dMid = d -w; outerHeight = 2 * ((dia/4)/tan(30)); outer = dMid + ( (n-1) * (dMid - dMid/4)) + w; echo("OUTER:",outer); intersection() { linear_extrude(height = outer, center = true, convexity = 10, twist = 0, $fn = 100) translate([d/2,outerHeight/2,0]) honeycomb(outer,outer,d,w); translate([outer/2, outer/2, 0]) ball(outer-w, outer); } } // BLOCK 7 module honeycombCircle(n, dia, wall) { d = dia; w = wall; dMid = d -w; outerHeight = 2 * ((dia/4)/tan(30)); outer = dMid + ( (n-1) * (dMid - dMid/4)) + w; echo("OUTER:",outer); translate([-outer/2, -outer/2,0]) { intersection() { translate([d/2,outerHeight/2,0]) honeycomb(outer,outer,d,w); translate([outer/2, outer/2, 0]) circle(d=outer); } } } function sinr(x) = sin(180 * x / PI); function cosr(x) = cos(180 * x / PI); // BLOCK 8 module 2dflower(n, dia, fDia) { r = dia/2; delta = (2*PI)/n; for (step = [0:n-1]) { translate([r * cosr(step*delta), r * sinr(step*delta), 0]) circle(d=fDia); } } // BLOCK 9 module 3dflower(n, dia, fDia) { r = dia/2; delta = (2*PI)/n; for (step = [0:n-1]) { translate([r * cosr(step*delta), r * sinr(step*delta), 0]) sphere(d=fDia); } } // BLOCK 10 module m5hole() { cylinder(h=100, d=5.800, center=true); translate([0,0,3]) cylinder(h=100, d=8.600, center=false); } // BLOCK 11 module m3hole() { cylinder(h=2*BORDER_DIA, d=M3_HOLE_DIA, center=true); translate([0,0,M3_HEAD_BOTTOM]) cylinder(h=2*BORDER_DIA, d=M3_HEAD_DIA, center=false); } // BLOCK 12 module m3Test() { difference() { difference(){ sphere(d=BORDER_DIA); m3hole(); } translate([0,0,-BORDER_DIA/2]) cube([2*BORDER_DIA,2*BORDER_DIA,BORDER_DIA], center=true); } } // BLOCK 13 module speakerGrid() { color("Magenta") difference() { union() { { difference() { union() { linear_extrude(FONT_THICKNESS) text(text=NAME, font=FONT, size=FONT_SIZE, halign="center", valign="center"); linear_extrude(GRID_THICKNESS) { honeycombCircle(N, DIA, WALL); } 3dflower(32, OUTER, BORDER_DIA); } union(){ for (angle=[45, 135, 225, 315]){ translate([OUTER/2 * cos(angle), OUTER/2 * sin(angle), 0]) m3hole(); } } } } } translate([0, 0, -OUTER/2]) cube([2*OUTER, 2*OUTER, OUTER], center = true); } } if (MAKE_M3_TEST == "yes") { m3Test(); } else { speakerGrid(); }
// BLOCK 1 $fs=0.500; $fa=6; NAME = "Charlotte"; OUTER = 96; N = 10; DIA = 15; WALL = 3; BORDER_DIA = 15; FONTNAME = "Pacifico"; FONTSTYLE = "Regular"; FONT_SIZE = 12; FONT_THICKNESS = 5; GRID_THICKNESS = 3; M3_HEAD_BOTTOM = 4.500; M3_HEAD_DIA = 6.500; M3_HOLE_DIA = 3.800; MAKE_M3_TEST = "no"; FONT = str(FONTNAME,":style=",FONTSTYLE); echo("FONT:",FONT); // BLOCK 2 module hexagon(l) { circle(d=l, $fn=6); } // BLOCK 3 module hexagon_border(inner, outer) { difference() { hexagon(outer); hexagon(inner); } } // BLOCK 4 module honeycomb(x, y, dia, wall) { innerDia = dia-(2*wall); midDia = dia - wall; outerHeight = 2 * ((dia/4)/tan(30)); innerHeight = 2* ((innerDia/4)/tan(30)); midHeight = 2* ((midDia/4)/tan(30)); outerEdge = outerHeight/2 / cos(30); innerEdge = innerHeight/2 / cos(30); midEdge = midHeight/2 / cos(30); minWall = wall * cos(30); xStep = midDia + midEdge; yStep = outerHeight-minWall; for (yOffset = [0:yStep:y+yStep], xOffset = [0:xStep:x+xStep]) { translate([xOffset, yOffset]) { hexagon_border(innerDia, dia); } translate([xOffset +midDia - midEdge/2 , yOffset + outerHeight/2 - wall/2]) { color("blue") hexagon_border(innerDia,dia); } } } // BLOCK 5 module ball(inner, outer) { difference() { sphere(d=outer); sphere(d=inner); } } // BLOCK 6 module honeycombBall(n, dia, wall) { d = dia; w = wall; dMid = d -w; outerHeight = 2 * ((dia/4)/tan(30)); outer = dMid + ( (n-1) * (dMid - dMid/4)) + w; echo("OUTER:",outer); intersection() { linear_extrude(height = outer, center = true, convexity = 10, twist = 0, $fn = 100) translate([d/2,outerHeight/2,0]) honeycomb(outer,outer,d,w); translate([outer/2, outer/2, 0]) ball(outer-w, outer); } } // BLOCK 7 module honeycombCircle(n, dia, wall) { d = dia; w = wall; dMid = d -w; outerHeight = 2 * ((dia/4)/tan(30)); outer = dMid + ( (n-1) * (dMid - dMid/4)) + w; echo("OUTER:",outer); translate([-outer/2, -outer/2,0]) { intersection() { translate([d/2,outerHeight/2,0]) honeycomb(outer,outer,d,w); translate([outer/2, outer/2, 0]) circle(d=outer); } } } function sinr(x) = sin(180 * x / PI); function cosr(x) = cos(180 * x / PI); // BLOCK 8 module 2dflower(n, dia, fDia) { r = dia/2; delta = (2*PI)/n; for (step = [0:n-1]) { translate([r * cosr(step*delta), r * sinr(step*delta), 0]) circle(d=fDia); } } // BLOCK 9 module 3dflower(n, dia, fDia) { r = dia/2; delta = (2*PI)/n; for (step = [0:n-1]) { translate([r * cosr(step*delta), r * sinr(step*delta), 0]) sphere(d=fDia); } } // BLOCK 10 module m5hole() { cylinder(h=100, d=5.800, center=true); translate([0,0,3]) cylinder(h=100, d=8.600, center=false); } // BLOCK 11 module m3hole() { cylinder(h=2*BORDER_DIA, d=M3_HOLE_DIA, center=true); translate([0,0,M3_HEAD_BOTTOM]) cylinder(h=2*BORDER_DIA, d=M3_HEAD_DIA, center=false); } // BLOCK 12 module m3Test() { difference() { difference(){ sphere(d=BORDER_DIA); m3hole(); } translate([0,0,-BORDER_DIA/2]) cube([2*BORDER_DIA,2*BORDER_DIA,BORDER_DIA], center=true); } } // BLOCK 13 module speakerGrid() { color("Magenta") difference() { union() { { difference() { union() { linear_extrude(FONT_THICKNESS) text(text=NAME, font=FONT, size=FONT_SIZE, halign="center", valign="center"); linear_extrude(GRID_THICKNESS) { honeycombCircle(N, DIA, WALL); } 3dflower(32, OUTER, BORDER_DIA); } union(){ for (angle=[45, 135, 225, 315]){ translate([OUTER/2 * cos(angle), OUTER/2 * sin(angle), 0]) m3hole(); } } } } } translate([0, 0, -OUTER/2]) cube([2*OUTER, 2*OUTER, OUTER], center = true); } } if (MAKE_M3_TEST == "yes") { m3Test(); } else { speakerGrid(); }
b24856d9-0d89-4c6a-ade4-4ba138245f43
// BLOCK 1 // BLOCK 2 module example004() { union() { difference() { cube(30, center = true); union() { cube(size = [20,20,30], center = true); cube(size = [30,20,20], center = true); cube(size = [20,30,20], center = true); } } difference() { union() { sphere(14, center = true); cube(size = [15,15,30], center = true); cube(size = [30,15,15], center = true); cube(size = [15,30,15], center = true); } cube(size = [5,5,30], center = true); cube(size = [30,5,5], center = true); cube(size = [5,30,5], center = true); } } } example004();
// BLOCK 1 // BLOCK 2 module example004() { union() { difference() { cube(30, center = true); union() { cube(size = [20,20,30], center = true); cube(size = [30,20,20], center = true); cube(size = [20,30,20], center = true); } } difference() { union() { sphere(14, center = true); cube(size = [15,15,30], center = true); cube(size = [30,15,15], center = true); cube(size = [15,30,15], center = true); } cube(size = [5,5,30], center = true); cube(size = [30,5,5], center = true); cube(size = [5,30,5], center = true); } } } example004();
d5e917fb-5845-42cf-9c0c-550a58fa1e4a
// BLOCK 1 bar_width = 114; bar_depth = 6.500; bar_heigh = 14.100; screw_r1 = 5.450/2; screw_h1 = 2.660; screw_r2 = 10.450/2; screw_h2 = 5-2.660; screw_offx = 19.330+5.450/2; screw_offy = 3.890+5.450/2; chopsize = 1; rotate([0,0,45]) difference() // BLOCK 2 { linear_extrude(height=bar_depth) square([bar_width,bar_heigh]); for(i=[screw_offx, bar_width-screw_offx]) translate([i,screw_offy,0]) union() { cylinder(h=screw_h1+0.100, r=screw_r1, $fn=18); translate([0,0,screw_h1]) cylinder(h=screw_h2, r1=screw_r1, r2=screw_r2, $fn=18); translate([0,0,screw_h1+screw_h2]) cylinder(h=bar_heigh-screw_h2-screw_h1+0.100, r=screw_r2, $fn=18); } translate([-0.100,-0.100,-0.100]) rotate([0,90,0]) rotate([0,0,90]) linear_extrude(height=bar_width+0.200) polygon(points=[[0,0], [0,chopsize], [chopsize,0]], paths=[[0,1,2]]); translate([-0.100,bar_heigh/2,bar_depth+0.200]) rotate([0,90,0]) scale([0.200,1,1]) cylinder(h=bar_width+0.200, r=(bar_heigh-3)/2, $fn=40); }
// BLOCK 1 bar_width = 114; bar_depth = 6.500; bar_heigh = 14.100; screw_r1 = 5.450/2; screw_h1 = 2.660; screw_r2 = 10.450/2; screw_h2 = 5-2.660; screw_offx = 19.330+5.450/2; screw_offy = 3.890+5.450/2; chopsize = 1; rotate([0,0,45]) difference() // BLOCK 2 { linear_extrude(height=bar_depth) square([bar_width,bar_heigh]); for(i=[screw_offx, bar_width-screw_offx]) translate([i,screw_offy,0]) union() { cylinder(h=screw_h1+0.100, r=screw_r1, $fn=18); translate([0,0,screw_h1]) cylinder(h=screw_h2, r1=screw_r1, r2=screw_r2, $fn=18); translate([0,0,screw_h1+screw_h2]) cylinder(h=bar_heigh-screw_h2-screw_h1+0.100, r=screw_r2, $fn=18); } translate([-0.100,-0.100,-0.100]) rotate([0,90,0]) rotate([0,0,90]) linear_extrude(height=bar_width+0.200) polygon(points=[[0,0], [0,chopsize], [chopsize,0]], paths=[[0,1,2]]); translate([-0.100,bar_heigh/2,bar_depth+0.200]) rotate([0,90,0]) scale([0.200,1,1]) cylinder(h=bar_width+0.200, r=(bar_heigh-3)/2, $fn=40); }
492bc02f-689a-4c5d-bf8f-f7b3ec0b956c
// BLOCK 1 num_keyboards = 2; keyboard_to_keyboard = 24; keyboard_thickness = 12; flange = 4; thickness = 10; $fa = 6; $fs = 0.200; e = 0.010; for (side=[0,1]) translate([side * 15, 0, side*thickness]) rotate([0, -90+side*180, 0]) difference() // BLOCK 2 { minkowski() { difference() { minkowski() { difference() { ySz = (num_keyboards - 1) * keyboard_to_keyboard + keyboard_thickness + 16; cube([thickness, ySz, 30]); translate([-e, ySz-keyboard_thickness-2, max(e, flange - 3.500)])cube([thickness+2*e, ySz, 30]); } rotate([0, 90, 0]) cylinder(e, r=5); } for (keyb = [0:num_keyboards-1]) translate([-10, 17 + keyb * keyboard_to_keyboard, 0]) rotate([5, 0, 0]) union() { cube([200, keyboard_thickness, 100]); if (keyb < num_keyboards-1) translate([0, keyboard_thickness-e, flange]) cube([200, keyboard_thickness/2, 100]); } } rotate([0, 90, 0]) cylinder(e, r=1); } translate([-10, 5.500, 5.500]) rotate([0, 90, 0]) cylinder(200, d=8.200); }
// BLOCK 1 num_keyboards = 2; keyboard_to_keyboard = 24; keyboard_thickness = 12; flange = 4; thickness = 10; $fa = 6; $fs = 0.200; e = 0.010; for (side=[0,1]) translate([side * 15, 0, side*thickness]) rotate([0, -90+side*180, 0]) difference() // BLOCK 2 { minkowski() { difference() { minkowski() { difference() { ySz = (num_keyboards - 1) * keyboard_to_keyboard + keyboard_thickness + 16; cube([thickness, ySz, 30]); translate([-e, ySz-keyboard_thickness-2, max(e, flange - 3.500)])cube([thickness+2*e, ySz, 30]); } rotate([0, 90, 0]) cylinder(e, r=5); } for (keyb = [0:num_keyboards-1]) translate([-10, 17 + keyb * keyboard_to_keyboard, 0]) rotate([5, 0, 0]) union() { cube([200, keyboard_thickness, 100]); if (keyb < num_keyboards-1) translate([0, keyboard_thickness-e, flange]) cube([200, keyboard_thickness/2, 100]); } } rotate([0, 90, 0]) cylinder(e, r=1); } translate([-10, 5.500, 5.500]) rotate([0, 90, 0]) cylinder(200, d=8.200); }
9776091e-40e0-48a4-90e6-151fa4160cae
// BLOCK 1 item_height=6; $fn=32; // BLOCK 2 module top_hook() { difference() { translate([0,35,0]) difference() { cylinder(r=7, h=item_height); cylinder(r=5, h=item_height+1); } cylinder(r=35, h=item_height+1); } } // BLOCK 3 module outside_sphere() { difference() { cylinder(r=35, h=item_height); cylinder(r=30, h=item_height+1); } } // BLOCK 4 module two_half_spheres() { difference() { cylinder(r=25, h=item_height); cylinder(r=12.500, h=item_height+1); translate([-30,-2.500,0]) cube([120, 5, item_height+1]); } } // BLOCK 5 module mini_sphere() { cylinder(r=10, h=item_height); } // BLOCK 6 module pokestop() { top_hook(); outside_sphere(); two_half_spheres(); mini_sphere(); } // BLOCK 7 module inside_support_spheres() { difference() { cylinder(r=26.750, h=item_height); cylinder(r=25.750, h=item_height+1); } difference() { cylinder(r=11.750, h=item_height); cylinder(r=10.750, h=item_height+1); } } // BLOCK 8 module inside_support() { intersection() { inside_support_spheres(); translate([-2,-45,0]) cube([4,90,item_height]); } } difference() // BLOCK 9 { pokestop(); translate([0,25,item_height/2]) rotate([90,0,0]) cylinder(r=1.750, h=50, $fn=32); } inside_support(); // BLOCK 10 translate([0,35,item_height/2]) rotate([90,0,0]) rotate([0,0,22.500]) cylinder(r=1, h=70, $fn=8);
// BLOCK 1 item_height=6; $fn=32; // BLOCK 2 module top_hook() { difference() { translate([0,35,0]) difference() { cylinder(r=7, h=item_height); cylinder(r=5, h=item_height+1); } cylinder(r=35, h=item_height+1); } } // BLOCK 3 module outside_sphere() { difference() { cylinder(r=35, h=item_height); cylinder(r=30, h=item_height+1); } } // BLOCK 4 module two_half_spheres() { difference() { cylinder(r=25, h=item_height); cylinder(r=12.500, h=item_height+1); translate([-30,-2.500,0]) cube([120, 5, item_height+1]); } } // BLOCK 5 module mini_sphere() { cylinder(r=10, h=item_height); } // BLOCK 6 module pokestop() { top_hook(); outside_sphere(); two_half_spheres(); mini_sphere(); } // BLOCK 7 module inside_support_spheres() { difference() { cylinder(r=26.750, h=item_height); cylinder(r=25.750, h=item_height+1); } difference() { cylinder(r=11.750, h=item_height); cylinder(r=10.750, h=item_height+1); } } // BLOCK 8 module inside_support() { intersection() { inside_support_spheres(); translate([-2,-45,0]) cube([4,90,item_height]); } } difference() // BLOCK 9 { pokestop(); translate([0,25,item_height/2]) rotate([90,0,0]) cylinder(r=1.750, h=50, $fn=32); } inside_support(); // BLOCK 10 translate([0,35,item_height/2]) rotate([90,0,0]) rotate([0,0,22.500]) cylinder(r=1, h=70, $fn=8);
3f030e5c-bedb-4327-ab69-67aa66cad68c
// BLOCK 1 height = 100; diameter = 60; resolution = 50; spiral_count = 15; spiral_diameter = 10; spiral_eccentricity = 0.500; spiral_twist = 90; base_height = 5; taper_twist = 12.500; $fn = resolution; spiral_height = height - base_height; taper_height = base_height; spiral_position = (diameter - spiral_diameter * (1 - spiral_eccentricity)) / 2; // BLOCK 2 module spiral(index) { spiral_phase = (360 / spiral_count) * index; translate([0, 0, base_height]) linear_extrude(height = spiral_height, center = false, twist = spiral_twist) rotate([0, 0, spiral_phase]) translate([spiral_position, 0, 0]) scale([1 - spiral_eccentricity, 1]) circle(d = spiral_diameter); } // BLOCK 3 module taper(index) { taper_phase = (360 / spiral_count) * index - (1 - (taper_height / spiral_height)) * spiral_twist; for (twist = [0, taper_twist]) { translate([0, 0, base_height + spiral_height - taper_height]) linear_extrude(height = taper_height, center = false, twist = twist) rotate([0, 0, taper_phase]) translate([spiral_position, 0, 0]) scale([1 - spiral_eccentricity, 1]) circle(d = spiral_diameter); } } // BLOCK 4 module cup() { union() { cylinder(d = diameter, h = base_height); for (i = [0:spiral_count - 1]) spiral(i); for (i = [0:spiral_count - 1]) { if ($preview && resolution < 70) union() taper(i); else hull() taper(i); } } } cup();
// BLOCK 1 height = 100; diameter = 60; resolution = 50; spiral_count = 15; spiral_diameter = 10; spiral_eccentricity = 0.500; spiral_twist = 90; base_height = 5; taper_twist = 12.500; $fn = resolution; spiral_height = height - base_height; taper_height = base_height; spiral_position = (diameter - spiral_diameter * (1 - spiral_eccentricity)) / 2; // BLOCK 2 module spiral(index) { spiral_phase = (360 / spiral_count) * index; translate([0, 0, base_height]) linear_extrude(height = spiral_height, center = false, twist = spiral_twist) rotate([0, 0, spiral_phase]) translate([spiral_position, 0, 0]) scale([1 - spiral_eccentricity, 1]) circle(d = spiral_diameter); } // BLOCK 3 module taper(index) { taper_phase = (360 / spiral_count) * index - (1 - (taper_height / spiral_height)) * spiral_twist; for (twist = [0, taper_twist]) { translate([0, 0, base_height + spiral_height - taper_height]) linear_extrude(height = taper_height, center = false, twist = twist) rotate([0, 0, taper_phase]) translate([spiral_position, 0, 0]) scale([1 - spiral_eccentricity, 1]) circle(d = spiral_diameter); } } // BLOCK 4 module cup() { union() { cylinder(d = diameter, h = base_height); for (i = [0:spiral_count - 1]) spiral(i); for (i = [0:spiral_count - 1]) { if ($preview && resolution < 70) union() taper(i); else hull() taper(i); } } } cup();
30d8cb97-52a9-4103-aa6c-8b7d430bf13f
// BLOCK 1 $fn=32; // BLOCK 2 module Pololu_1520() { color("silver") difference() { cylinder(d=3, h=9.700); translate([-1.500, 1, 0]) cube([3, 3, 10]); } color("Ivory") translate([0, 0, -13.500]) { cylinder(r=10, h=13.500, $fn=64); translate([0, -10, 0]) cube([26.500, 20, 13.500]); translate([26.500-11.500, -10, -27.400+13.500]) { difference() { cube([11.500, 20, 27.400]); translate([-0.100, 0, 7]) { cube([1.100, 3, 7]); translate([0, -.1, 0]) cube([2.300+.1, 1.100, 7]); } translate([0, 0, 7]) { translate([11.500-1, 20-3, 0]) cube([1.100, 3, 7]); translate([11.500-2.300, 20-1, 0]) cube([2.300, 1.100, 7]); } } translate([11.500/2-7.500/2, -(22.500-20)/2, 0]) cube([7.500, 22.500, 18]); translate([11.500/2-9.500/2, -24.800+22.500, 13.500+0.500-0.100]) cube([9.500, 24.800, 3]); } } translate([26.500-11.500/2, 0, -27.500-1]) { color("bisque") cylinder(d=5, h=1); translate([0, 0, -5]) color("silver") cylinder(d=1.500, h=6); } translate([26.500-11.500/2-2.500/2, -0.500/2, -27.500-4.500]) { translate([0, -7, 0]) difference() { color("gold") cube([2.500, 0.500, 6]); translate([2.500/2-1/2, -0.250, 1]) cube([1, 1, 1.500]); } translate([0, 7, 0]) difference() { color("blue") cube([2.500, 0.500, 6]); translate([2.500/2-1/2, -0.250, 1]) cube([1, 1, 1.500]); } } } Pololu_1520();
// BLOCK 1 $fn=32; // BLOCK 2 module Pololu_1520() { color("silver") difference() { cylinder(d=3, h=9.700); translate([-1.500, 1, 0]) cube([3, 3, 10]); } color("Ivory") translate([0, 0, -13.500]) { cylinder(r=10, h=13.500, $fn=64); translate([0, -10, 0]) cube([26.500, 20, 13.500]); translate([26.500-11.500, -10, -27.400+13.500]) { difference() { cube([11.500, 20, 27.400]); translate([-0.100, 0, 7]) { cube([1.100, 3, 7]); translate([0, -.1, 0]) cube([2.300+.1, 1.100, 7]); } translate([0, 0, 7]) { translate([11.500-1, 20-3, 0]) cube([1.100, 3, 7]); translate([11.500-2.300, 20-1, 0]) cube([2.300, 1.100, 7]); } } translate([11.500/2-7.500/2, -(22.500-20)/2, 0]) cube([7.500, 22.500, 18]); translate([11.500/2-9.500/2, -24.800+22.500, 13.500+0.500-0.100]) cube([9.500, 24.800, 3]); } } translate([26.500-11.500/2, 0, -27.500-1]) { color("bisque") cylinder(d=5, h=1); translate([0, 0, -5]) color("silver") cylinder(d=1.500, h=6); } translate([26.500-11.500/2-2.500/2, -0.500/2, -27.500-4.500]) { translate([0, -7, 0]) difference() { color("gold") cube([2.500, 0.500, 6]); translate([2.500/2-1/2, -0.250, 1]) cube([1, 1, 1.500]); } translate([0, 7, 0]) difference() { color("blue") cube([2.500, 0.500, 6]); translate([2.500/2-1/2, -0.250, 1]) cube([1, 1, 1.500]); } } } Pololu_1520();
3febe1f8-fff7-4d05-9125-426c8c34d99b
// BLOCK 1 MouthD = 20; MouthL = 2; FunnelD = 7; FunnelL = 10; NoseD= 4; NoseL = 20; WallT = 400; AirEscapeT=1000; tiny=0.050; $fn=50; // BLOCK 2 module funnel(MouthL,MouthD,FunnelL,FunnelD,NoseL,NoseD,WallT) { translate([0,0,0]) difference(){ if (WallT) { union(){ translate([0,0,(MouthL)/2]) cylinder(d=MouthD,h=MouthL+tiny,center=true); translate([0,0,tiny+MouthL+FunnelL/2]) cylinder(d1=MouthD,d2=FunnelD,h=FunnelL+tiny,center=true); translate([0,0,MouthL+FunnelL+NoseL/2]) cylinder(d1=FunnelD,d2=NoseD,h=NoseL+tiny,center=true); } } translate([0,0,-tiny]) union(){ translate([0,0,(MouthL)/2]) cylinder(d=MouthD-WallT*0.002,h=MouthL+2*tiny,center=true); translate([0,0,tiny+MouthL+FunnelL/2]) cylinder(d1=MouthD-WallT*0.002,d2=FunnelD-WallT*0.002,h=FunnelL+2*tiny,center=true); translate([0,0,MouthL+FunnelL+NoseL/2]) cylinder(d1=FunnelD-WallT*0.002,d2=NoseD-WallT*0.002,h=NoseL+4*tiny,center=true); } } } if (AirEscapeT) { union(){ funnel(MouthL,MouthD,FunnelL,FunnelD,NoseL,NoseD,WallT); // BLOCK 3 difference(){ funnel(MouthL,MouthD+AirEscapeT*0.002+WallT*0.002, FunnelL,FunnelD+AirEscapeT*0.002+WallT*0.002,NoseL, NoseD+AirEscapeT*0.002+WallT*0.002,WallT); translate([0,0,MouthL+FunnelL+NoseL-NoseL/10]) cylinder(d1=FunnelD*2,d2=NoseD*2,h=2*tiny+NoseL/5,center=true); } intersection(){ funnel(MouthL,MouthD+AirEscapeT*0.002+WallT*0.002, FunnelL,FunnelD+AirEscapeT*0.002+WallT*0.002,NoseL, NoseD+AirEscapeT*0.002+WallT*0.002,0); // BLOCK 4 difference(){ translate([0,0,-NoseL/10+(MouthL+FunnelL+NoseL)/2]) union(){ cube([WallT/1000,MouthD*2,MouthL+FunnelL+NoseL-NoseL/5-2*tiny],center=true); cube([MouthD*2,WallT/1000,MouthL+FunnelL+NoseL-NoseL/5-2*tiny],center=true); } funnel(MouthL,MouthD-tiny, FunnelL,FunnelD-2*tiny,NoseL, NoseD-tiny,0); } } } } else { funnel(MouthL,MouthD,FunnelL,FunnelD,NoseL,NoseD,WallT); }
// BLOCK 1 MouthD = 20; MouthL = 2; FunnelD = 7; FunnelL = 10; NoseD= 4; NoseL = 20; WallT = 400; AirEscapeT=1000; tiny=0.050; $fn=50; // BLOCK 2 module funnel(MouthL,MouthD,FunnelL,FunnelD,NoseL,NoseD,WallT) { translate([0,0,0]) difference(){ if (WallT) { union(){ translate([0,0,(MouthL)/2]) cylinder(d=MouthD,h=MouthL+tiny,center=true); translate([0,0,tiny+MouthL+FunnelL/2]) cylinder(d1=MouthD,d2=FunnelD,h=FunnelL+tiny,center=true); translate([0,0,MouthL+FunnelL+NoseL/2]) cylinder(d1=FunnelD,d2=NoseD,h=NoseL+tiny,center=true); } } translate([0,0,-tiny]) union(){ translate([0,0,(MouthL)/2]) cylinder(d=MouthD-WallT*0.002,h=MouthL+2*tiny,center=true); translate([0,0,tiny+MouthL+FunnelL/2]) cylinder(d1=MouthD-WallT*0.002,d2=FunnelD-WallT*0.002,h=FunnelL+2*tiny,center=true); translate([0,0,MouthL+FunnelL+NoseL/2]) cylinder(d1=FunnelD-WallT*0.002,d2=NoseD-WallT*0.002,h=NoseL+4*tiny,center=true); } } } if (AirEscapeT) { union(){ funnel(MouthL,MouthD,FunnelL,FunnelD,NoseL,NoseD,WallT); // BLOCK 3 difference(){ funnel(MouthL,MouthD+AirEscapeT*0.002+WallT*0.002, FunnelL,FunnelD+AirEscapeT*0.002+WallT*0.002,NoseL, NoseD+AirEscapeT*0.002+WallT*0.002,WallT); translate([0,0,MouthL+FunnelL+NoseL-NoseL/10]) cylinder(d1=FunnelD*2,d2=NoseD*2,h=2*tiny+NoseL/5,center=true); } intersection(){ funnel(MouthL,MouthD+AirEscapeT*0.002+WallT*0.002, FunnelL,FunnelD+AirEscapeT*0.002+WallT*0.002,NoseL, NoseD+AirEscapeT*0.002+WallT*0.002,0); // BLOCK 4 difference(){ translate([0,0,-NoseL/10+(MouthL+FunnelL+NoseL)/2]) union(){ cube([WallT/1000,MouthD*2,MouthL+FunnelL+NoseL-NoseL/5-2*tiny],center=true); cube([MouthD*2,WallT/1000,MouthL+FunnelL+NoseL-NoseL/5-2*tiny],center=true); } funnel(MouthL,MouthD-tiny, FunnelL,FunnelD-2*tiny,NoseL, NoseD-tiny,0); } } } } else { funnel(MouthL,MouthD,FunnelL,FunnelD,NoseL,NoseD,WallT); }
01cd18c0-c098-4b5e-beed-b672477ccde7
// BLOCK 1 screw_d=2.900; screw_dk=5.600; screw_l=13; $fn=8; qo=1; o_body=true; o_cover=true; o_cover_custom=false; case_x=70; case_y=45; case_z=60; case_r=5; case_br=2; case_w=2; // BLOCK 2 module cube_rcr(x,y,z,r,br=0){ hull(){ for (i=[[r,r,br],[r,y-r,br],[x-r,y-r,br],[x-r,r,br]]) translate(i){ cylinder(h=z-br, r=r, center=false); rotate_extrude() translate([r-br, 0, 0]) circle(r = br); }; }; }; // BLOCK 3 module screwhole(){ difference(){ cylinder(h=screw_l-case_w,r=case_r-case_w*0.660); cylinder(h=screw_l-case_w,r=screw_d/2*0.800); }; }; // BLOCK 4 module print_body(){ difference(){ union(){ difference(){ cube_rcr(case_x,case_y,case_z,case_r,case_br); translate([case_w,case_w,case_w]) cube_rcr(case_x-2*case_w,case_y-2*case_w,case_z-case_w+qo,case_r-case_w,1); }; if ((case_x >=case_r*3) && (case_y >= case_r*3)){ for (p=[[case_r,case_r,case_z-screw_l+case_w],[case_x-case_r,case_r,case_z-screw_l+case_w],[case_r,case_y-case_r,case_z-screw_l+case_w],[case_x-case_r,case_y-case_r,case_z-screw_l+case_w]]) translate(p) screwhole(); } else if ((case_x >=case_r*3) && (case_y < case_r*3)){ for (p=[[case_r,case_y/2,case_z-screw_l+case_w],[case_x-case_r,case_y/2,case_z-screw_l+case_w]]) translate(p) screwhole(); } else if ((case_x <case_r*3) && (case_y >= case_r*3)){ for (p=[[case_x/2,case_r,case_z-screw_l+case_w],[case_x/2,case_y-case_r,case_z-screw_l+case_w]]) translate(p) screwhole(); } else if ((case_x <case_r*3) && (case_y < case_r*3)){ }; }; difference(){ translate([-1,-1,case_z-case_w]) cube_rcr(case_x+2,case_y+2,case_w,case_r); translate([case_w*0.600,case_w*0.600,case_z-case_w]) cube_rcr(case_x-case_w*1.200,case_y-case_w*1.200,case_w,case_r*0.800); }; }; }; // BLOCK 5 module print_cover(){ difference(){ cube_rcr(case_x,case_y,case_w,case_r); translate([case_w*0.400,case_w*0.400,0]) cube_rcr(case_x-case_w*0.800,case_y-case_w*0.800,case_w,case_r*0.800); }; translate([0,0,case_w]){ difference(){ cube_rcr(case_x,case_y,case_w,case_r); union(){ if ((case_x >=case_r*3) && (case_y >= case_r*3)){ for (p=[[case_r,case_r,0],[case_x-case_r,case_r,0],[case_r,case_y-case_r,0],[case_x-case_r,case_y-case_r,0]]) screw_hole_with_countersink(p); } else if ((case_x >=case_r*3) && (case_y < case_r*3)){ for (p=[[case_r,case_y/2,0],[case_x-case_r,case_y/2,0]]) screw_hole_with_countersink(p); } else if ((case_x <case_r*3) && (case_y >= case_r*3)){ for (p=[[case_x/2,case_r,0],[case_x/2,case_y-case_r,0]]) screw_hole_with_countersink(p); } else if ((case_x <case_r*3) && (case_y < case_r*3)){ }; if (o_cover_custom){ translate([case_y/2,case_y/2,0]) cylinder(h=case_z,d=28.500); translate([50,12,0]) cylinder(h=case_z,d=12); translate([50,case_y-12,0]) cylinder(h=case_z,d=12); }; }; }; }; }; // BLOCK 6 module screw_hole_with_countersink(p){ translate(p) cylinder(h=case_w,d=ceil(screw_d)); translate([p[0],p[1],case_w-0.250]) cylinder(h=case_w,d=screw_dk); }; if ((o_body)&&(o_cover)) { print_body(); translate([case_x + 10,0,0]) print_cover(); } else if (o_body) {print_body();} else if (o_cover) {print_cover();};
// BLOCK 1 screw_d=2.900; screw_dk=5.600; screw_l=13; $fn=8; qo=1; o_body=true; o_cover=true; o_cover_custom=false; case_x=70; case_y=45; case_z=60; case_r=5; case_br=2; case_w=2; // BLOCK 2 module cube_rcr(x,y,z,r,br=0){ hull(){ for (i=[[r,r,br],[r,y-r,br],[x-r,y-r,br],[x-r,r,br]]) translate(i){ cylinder(h=z-br, r=r, center=false); rotate_extrude() translate([r-br, 0, 0]) circle(r = br); }; }; }; // BLOCK 3 module screwhole(){ difference(){ cylinder(h=screw_l-case_w,r=case_r-case_w*0.660); cylinder(h=screw_l-case_w,r=screw_d/2*0.800); }; }; // BLOCK 4 module print_body(){ difference(){ union(){ difference(){ cube_rcr(case_x,case_y,case_z,case_r,case_br); translate([case_w,case_w,case_w]) cube_rcr(case_x-2*case_w,case_y-2*case_w,case_z-case_w+qo,case_r-case_w,1); }; if ((case_x >=case_r*3) && (case_y >= case_r*3)){ for (p=[[case_r,case_r,case_z-screw_l+case_w],[case_x-case_r,case_r,case_z-screw_l+case_w],[case_r,case_y-case_r,case_z-screw_l+case_w],[case_x-case_r,case_y-case_r,case_z-screw_l+case_w]]) translate(p) screwhole(); } else if ((case_x >=case_r*3) && (case_y < case_r*3)){ for (p=[[case_r,case_y/2,case_z-screw_l+case_w],[case_x-case_r,case_y/2,case_z-screw_l+case_w]]) translate(p) screwhole(); } else if ((case_x <case_r*3) && (case_y >= case_r*3)){ for (p=[[case_x/2,case_r,case_z-screw_l+case_w],[case_x/2,case_y-case_r,case_z-screw_l+case_w]]) translate(p) screwhole(); } else if ((case_x <case_r*3) && (case_y < case_r*3)){ }; }; difference(){ translate([-1,-1,case_z-case_w]) cube_rcr(case_x+2,case_y+2,case_w,case_r); translate([case_w*0.600,case_w*0.600,case_z-case_w]) cube_rcr(case_x-case_w*1.200,case_y-case_w*1.200,case_w,case_r*0.800); }; }; }; // BLOCK 5 module print_cover(){ difference(){ cube_rcr(case_x,case_y,case_w,case_r); translate([case_w*0.400,case_w*0.400,0]) cube_rcr(case_x-case_w*0.800,case_y-case_w*0.800,case_w,case_r*0.800); }; translate([0,0,case_w]){ difference(){ cube_rcr(case_x,case_y,case_w,case_r); union(){ if ((case_x >=case_r*3) && (case_y >= case_r*3)){ for (p=[[case_r,case_r,0],[case_x-case_r,case_r,0],[case_r,case_y-case_r,0],[case_x-case_r,case_y-case_r,0]]) screw_hole_with_countersink(p); } else if ((case_x >=case_r*3) && (case_y < case_r*3)){ for (p=[[case_r,case_y/2,0],[case_x-case_r,case_y/2,0]]) screw_hole_with_countersink(p); } else if ((case_x <case_r*3) && (case_y >= case_r*3)){ for (p=[[case_x/2,case_r,0],[case_x/2,case_y-case_r,0]]) screw_hole_with_countersink(p); } else if ((case_x <case_r*3) && (case_y < case_r*3)){ }; if (o_cover_custom){ translate([case_y/2,case_y/2,0]) cylinder(h=case_z,d=28.500); translate([50,12,0]) cylinder(h=case_z,d=12); translate([50,case_y-12,0]) cylinder(h=case_z,d=12); }; }; }; }; }; // BLOCK 6 module screw_hole_with_countersink(p){ translate(p) cylinder(h=case_w,d=ceil(screw_d)); translate([p[0],p[1],case_w-0.250]) cylinder(h=case_w,d=screw_dk); }; if ((o_body)&&(o_cover)) { print_body(); translate([case_x + 10,0,0]) print_cover(); } else if (o_body) {print_body();} else if (o_cover) {print_cover();};
c01c5511-8b4a-49ea-95fe-eb7a16369fd2
// BLOCK 1 zf = 0.010; zf2 = zf*2; h = 22.000; m = 15.000; w = 2.000; $fn = 90; mw = m+w*2; spd = 45.000; hlz = 2.500; // BLOCK 2 module outside() { union() { translate([0,0,w-zf]) cylinder(h=h/4, d1=spd, d2=mw); cylinder(h=w+zf, d=spd); } } // BLOCK 3 difference() { union () { cylinder(h=h, d=mw); outside(); translate([0,0,h]) rotate([180,0,0]) outside(); } translate([0,0,-zf]) cylinder(h=h+zf2, d = m); translate([spd/2-hlz,0,-zf]) cylinder(h=h+zf2, d = hlz); translate([0,spd/2,h/2]) rotate([90,0,0]) cylinder(h=spd+zf2, d =hlz); }
// BLOCK 1 zf = 0.010; zf2 = zf*2; h = 22.000; m = 15.000; w = 2.000; $fn = 90; mw = m+w*2; spd = 45.000; hlz = 2.500; // BLOCK 2 module outside() { union() { translate([0,0,w-zf]) cylinder(h=h/4, d1=spd, d2=mw); cylinder(h=w+zf, d=spd); } } // BLOCK 3 difference() { union () { cylinder(h=h, d=mw); outside(); translate([0,0,h]) rotate([180,0,0]) outside(); } translate([0,0,-zf]) cylinder(h=h+zf2, d = m); translate([spd/2-hlz,0,-zf]) cylinder(h=h+zf2, d = hlz); translate([0,spd/2,h/2]) rotate([90,0,0]) cylinder(h=spd+zf2, d =hlz); }
3c1857c1-2404-4b01-88cb-41d33e714f1b
// BLOCK 1 Cap_dia = 10; Cap_h = 3; Cap_shape = "CYLINDER"; Pin_dia = 5; Pin_h = 15; Pin_rot = 0; Pin_shape = "ROUND"; Pin_cross_w = 2; Pin_cross_w_calc = Pin_cross_w >= Pin_dia/2 ? Pin_dia/2 : Pin_cross_w; Pin_pipe_in_dia = 2; Pin_pipe_in_dia_calc = Pin_pipe_in_dia < Pin_dia ? Pin_pipe_in_dia : 0; Pin_split = "NO"; Pin_split_w = 1; Pin_split_w_calc = Pin_split_w * 2 <= Pin_dia - 2 ? Pin_split_w : (Pin_dia-2)/2; Pin_split_rot = 90; Pin_end_chamfer = "YES"; Pin_end_chamfer_position = 0.250; Pin_end_chamfer_min_dia = 0.500; Groove = "YES"; Groove_shape = "RECT"; Groove_w= 4; Groove_d= 0.150; Groove_start = 0; Groove_rot = 0; // BLOCK 2 module cap_round(smoothed, n_subdiv){ if (smoothed){ union(){ cylinder(h=Cap_h-(Cap_dia/2), d=Cap_dia); intersection(){ cylinder(h=Cap_h, d=Cap_dia); translate([0,0, Cap_h-Cap_dia]) difference(){ sphere (Cap_dia, $fn=36); translate([-Cap_dia,-Cap_dia,-Cap_dia*2]) cube(Cap_dia*2); }; } } } else { cylinder(h=Cap_h, d=Cap_dia, $fn=n_subdiv); } }; // BLOCK 3 module pin_round(n_subdiv){ rotate ([0,0,Pin_rot]) translate([0,0,-Pin_h]) cylinder (h=Pin_h, d=Pin_dia, $fn = n_subdiv); } // BLOCK 4 module pin_cross(){ module crossComponent(){ scale([Pin_dia,Pin_dia,Pin_h]) cube (1); } difference(){ pin_round(36); union(){ translate([-Pin_dia-(Pin_cross_w/2),Pin_cross_w/2,-Pin_h]) crossComponent() ; translate([-Pin_dia-(Pin_cross_w/2),-Pin_dia-Pin_cross_w/2,-Pin_h]) crossComponent() ; translate([(Pin_cross_w/2),-Pin_dia-Pin_cross_w/2,-Pin_h]) crossComponent() ; translate([Pin_cross_w/2,Pin_cross_w/2,-Pin_h]) crossComponent() ; } }; } // BLOCK 5 module pin_piped(){ difference(){ pin_round(36); rotate ([0,0,Pin_rot]) translate([0,0,-Pin_h]) cylinder (h=Pin_h, d=Pin_pipe_in_dia_calc, $fn=36); } } // BLOCK 6 module split(){ rotate([0,0,45])union(){ translate([0, Pin_dia, -Pin_split_w_calc])rotate([90,0,0]) cylinder (h= Pin_dia*2, d= Pin_split_w_calc*2, $fn=36); rotate([0,0,90])translate([-Pin_dia/2, -Pin_split_w_calc/2, -Pin_h])scale([Pin_dia, Pin_split_w_calc, Pin_h])cube (1); }; } // BLOCK 7 module cap(){ if (Cap_shape=="ROUND SMOOTH"){cap_round(true, 36);} else if (Cap_shape=="CYLINDER"){cap_round(false, 36);} else if (Cap_shape== "HEXAGON"){cap_round(false, 6);} } // BLOCK 8 module pin(){ if (Pin_shape == "ROUND") { pin_round(36);} else if (Pin_shape == "HEXAGON") { pin_round(6);} else if (Pin_shape == "OCTAGON") { pin_round(8);} else if (Pin_shape == "CROSS") { pin_cross();} else if (Pin_shape == "PIPED") { pin_piped();} } // BLOCK 9 module chamfer(){ if (Pin_end_chamfer == "YES") { difference(){ pin(); difference(){ translate([0,0,-Pin_h])cylinder(h = Pin_h * Pin_end_chamfer_position, r1 = Pin_dia/2, r2 = Pin_dia/2, $fn=36); translate([0,0,-Pin_h])cylinder(h = Pin_h * Pin_end_chamfer_position, r1 = (Pin_dia * Pin_end_chamfer_min_dia)/2, r2 = Pin_dia/2, $fn=36); }; }; } else {pin();}; } // BLOCK 10 difference(){ union(){ cap(); if (Pin_split=="YES") { difference (){ chamfer(); rotate([0,0,Pin_split_rot])split(); } } else {chamfer();}; }; if (Groove =="YES") { if (Groove_shape == "RECT" ){ rotate(a=Groove_rot, v=[0,0,1]) translate([Pin_dia/2-(Groove_d*Pin_dia), -Groove_w/2, -Pin_h ]) cube(size = [Groove_d * Pin_dia, Groove_w, Pin_h * (1- Groove_start)]); } else if (Groove_shape == "ROUND"){ rotate(a=Groove_rot, v=[0,0,1]) translate([Pin_dia/2-(Groove_d*Pin_dia), -Groove_w/2, -Pin_h ]) cylinder(h=Pin_h * (1- Groove_start), d = Groove_w, $fn=72); }; } else { cube (0); }; }
// BLOCK 1 Cap_dia = 10; Cap_h = 3; Cap_shape = "CYLINDER"; Pin_dia = 5; Pin_h = 15; Pin_rot = 0; Pin_shape = "ROUND"; Pin_cross_w = 2; Pin_cross_w_calc = Pin_cross_w >= Pin_dia/2 ? Pin_dia/2 : Pin_cross_w; Pin_pipe_in_dia = 2; Pin_pipe_in_dia_calc = Pin_pipe_in_dia < Pin_dia ? Pin_pipe_in_dia : 0; Pin_split = "NO"; Pin_split_w = 1; Pin_split_w_calc = Pin_split_w * 2 <= Pin_dia - 2 ? Pin_split_w : (Pin_dia-2)/2; Pin_split_rot = 90; Pin_end_chamfer = "YES"; Pin_end_chamfer_position = 0.250; Pin_end_chamfer_min_dia = 0.500; Groove = "YES"; Groove_shape = "RECT"; Groove_w= 4; Groove_d= 0.150; Groove_start = 0; Groove_rot = 0; // BLOCK 2 module cap_round(smoothed, n_subdiv){ if (smoothed){ union(){ cylinder(h=Cap_h-(Cap_dia/2), d=Cap_dia); intersection(){ cylinder(h=Cap_h, d=Cap_dia); translate([0,0, Cap_h-Cap_dia]) difference(){ sphere (Cap_dia, $fn=36); translate([-Cap_dia,-Cap_dia,-Cap_dia*2]) cube(Cap_dia*2); }; } } } else { cylinder(h=Cap_h, d=Cap_dia, $fn=n_subdiv); } }; // BLOCK 3 module pin_round(n_subdiv){ rotate ([0,0,Pin_rot]) translate([0,0,-Pin_h]) cylinder (h=Pin_h, d=Pin_dia, $fn = n_subdiv); } // BLOCK 4 module pin_cross(){ module crossComponent(){ scale([Pin_dia,Pin_dia,Pin_h]) cube (1); } difference(){ pin_round(36); union(){ translate([-Pin_dia-(Pin_cross_w/2),Pin_cross_w/2,-Pin_h]) crossComponent() ; translate([-Pin_dia-(Pin_cross_w/2),-Pin_dia-Pin_cross_w/2,-Pin_h]) crossComponent() ; translate([(Pin_cross_w/2),-Pin_dia-Pin_cross_w/2,-Pin_h]) crossComponent() ; translate([Pin_cross_w/2,Pin_cross_w/2,-Pin_h]) crossComponent() ; } }; } // BLOCK 5 module pin_piped(){ difference(){ pin_round(36); rotate ([0,0,Pin_rot]) translate([0,0,-Pin_h]) cylinder (h=Pin_h, d=Pin_pipe_in_dia_calc, $fn=36); } } // BLOCK 6 module split(){ rotate([0,0,45])union(){ translate([0, Pin_dia, -Pin_split_w_calc])rotate([90,0,0]) cylinder (h= Pin_dia*2, d= Pin_split_w_calc*2, $fn=36); rotate([0,0,90])translate([-Pin_dia/2, -Pin_split_w_calc/2, -Pin_h])scale([Pin_dia, Pin_split_w_calc, Pin_h])cube (1); }; } // BLOCK 7 module cap(){ if (Cap_shape=="ROUND SMOOTH"){cap_round(true, 36);} else if (Cap_shape=="CYLINDER"){cap_round(false, 36);} else if (Cap_shape== "HEXAGON"){cap_round(false, 6);} } // BLOCK 8 module pin(){ if (Pin_shape == "ROUND") { pin_round(36);} else if (Pin_shape == "HEXAGON") { pin_round(6);} else if (Pin_shape == "OCTAGON") { pin_round(8);} else if (Pin_shape == "CROSS") { pin_cross();} else if (Pin_shape == "PIPED") { pin_piped();} } // BLOCK 9 module chamfer(){ if (Pin_end_chamfer == "YES") { difference(){ pin(); difference(){ translate([0,0,-Pin_h])cylinder(h = Pin_h * Pin_end_chamfer_position, r1 = Pin_dia/2, r2 = Pin_dia/2, $fn=36); translate([0,0,-Pin_h])cylinder(h = Pin_h * Pin_end_chamfer_position, r1 = (Pin_dia * Pin_end_chamfer_min_dia)/2, r2 = Pin_dia/2, $fn=36); }; }; } else {pin();}; } // BLOCK 10 difference(){ union(){ cap(); if (Pin_split=="YES") { difference (){ chamfer(); rotate([0,0,Pin_split_rot])split(); } } else {chamfer();}; }; if (Groove =="YES") { if (Groove_shape == "RECT" ){ rotate(a=Groove_rot, v=[0,0,1]) translate([Pin_dia/2-(Groove_d*Pin_dia), -Groove_w/2, -Pin_h ]) cube(size = [Groove_d * Pin_dia, Groove_w, Pin_h * (1- Groove_start)]); } else if (Groove_shape == "ROUND"){ rotate(a=Groove_rot, v=[0,0,1]) translate([Pin_dia/2-(Groove_d*Pin_dia), -Groove_w/2, -Pin_h ]) cylinder(h=Pin_h * (1- Groove_start), d = Groove_w, $fn=72); }; } else { cube (0); }; }
9e9e7620-b6d2-465b-a274-b73a3ad68468
// BLOCK 1 thickness = 2; innerDiameter = 5; outerDiameter = 18; // BLOCK 2 difference() { outerRadius = outerDiameter / 2; innerRadius = innerDiameter / 2; $fn=64; cylinder(thickness, outerRadius, outerRadius, true); cylinder(thickness*1.010, innerRadius, innerRadius, true); }
// BLOCK 1 thickness = 2; innerDiameter = 5; outerDiameter = 18; // BLOCK 2 difference() { outerRadius = outerDiameter / 2; innerRadius = innerDiameter / 2; $fn=64; cylinder(thickness, outerRadius, outerRadius, true); cylinder(thickness*1.010, innerRadius, innerRadius, true); }
7c8bde81-e05f-49ac-9aef-ebe2d97f8430
// BLOCK 1 tube_d = 17; extra=5; h = 90; mount=20; mount_thick=5; thick_slot=15; thick_base=5; slot_angle = 45; translate([0, (mount+tube_d/2+extra+1), 0]) holder_left(); translate([h+tube_d/2+extra+mount_thick+2,0, 0]) rotate([0,0,180]) holder_middle(); translate([0, -(mount+tube_d/2+extra+1), 0]) holder_right(); // BLOCK 2 module holder_right() { difference() { union() { base_slot(); base_base(thick_base); } screws2(); } } // BLOCK 3 module holder_middle() { difference() { base_slot(); screws2(); } } // BLOCK 4 module holder_left() { difference() { union() { translate([0,0,thick_slot]) rotate([180,0,0]) base_slot(); base_base(thick_base); } screws2(); } } // BLOCK 5 module screws2(thick=thick_slot) { translate([mount_thick, (mount/2+tube_d/2+extra), thick/2]) rotate([0,-90,0]) screw(); translate([mount_thick, -(mount/2+tube_d/2+extra), thick/2]) rotate([0,-90,0]) screw(); } // BLOCK 6 module screw($fn=30) { d = 4; d_hat = 8; cylinder(h=mount_thick*2, d=d); cylinder(h=d_hat/2, d1=d_hat, d2=0); rotate([180,0,0]) cylinder(h=mount, d=d_hat); } // BLOCK 7 module base_slot() { difference() { base_solid(thick_slot); base_hole(thick_slot); } } // BLOCK 8 module base_base(thick) { difference() { base_solid(thick); translate([h, 0, thick*5/8]) cylinder(d=tube_d, h=thick); } } // BLOCK 9 module base_hole(thick) { translate([h, 0, 0]) rotate([0,0,slot_angle]) union() { cylinder(d=tube_d, h=thick); translate([0, h/2, thick/2]) cube([tube_d, h, thick], center=true); } } // BLOCK 10 module _cutter(thick) { translate([mount_thick+mount, 0, 0]) { cylinder(r=mount, h=thick); translate([h/2, 0, thick/2]) cube([h, mount*2, thick], center=true); } } // BLOCK 11 module base_solid(thick) { full_h = h+extra+tube_d/2; spike_w = tube_d+extra*2; inner_cut = tube_d*0.600; difference() { union() { translate([h, 0, 0]) cylinder(d=tube_d+extra*2, h=thick); translate([h/2, 0, thick/2]) cube([h, spike_w+mount*2, thick], center=true); } translate([0, mount+spike_w/2, 0]) _cutter(thick); translate([0, -(mount+spike_w/2), 0]) _cutter(thick); translate([h, 0, 0]) cylinder(d=tube_d/2, h=thick); translate([mount_thick, -inner_cut/2, 0]) cube([h-tube_d*1.800, inner_cut, thick]); } }
// BLOCK 1 tube_d = 17; extra=5; h = 90; mount=20; mount_thick=5; thick_slot=15; thick_base=5; slot_angle = 45; translate([0, (mount+tube_d/2+extra+1), 0]) holder_left(); translate([h+tube_d/2+extra+mount_thick+2,0, 0]) rotate([0,0,180]) holder_middle(); translate([0, -(mount+tube_d/2+extra+1), 0]) holder_right(); // BLOCK 2 module holder_right() { difference() { union() { base_slot(); base_base(thick_base); } screws2(); } } // BLOCK 3 module holder_middle() { difference() { base_slot(); screws2(); } } // BLOCK 4 module holder_left() { difference() { union() { translate([0,0,thick_slot]) rotate([180,0,0]) base_slot(); base_base(thick_base); } screws2(); } } // BLOCK 5 module screws2(thick=thick_slot) { translate([mount_thick, (mount/2+tube_d/2+extra), thick/2]) rotate([0,-90,0]) screw(); translate([mount_thick, -(mount/2+tube_d/2+extra), thick/2]) rotate([0,-90,0]) screw(); } // BLOCK 6 module screw($fn=30) { d = 4; d_hat = 8; cylinder(h=mount_thick*2, d=d); cylinder(h=d_hat/2, d1=d_hat, d2=0); rotate([180,0,0]) cylinder(h=mount, d=d_hat); } // BLOCK 7 module base_slot() { difference() { base_solid(thick_slot); base_hole(thick_slot); } } // BLOCK 8 module base_base(thick) { difference() { base_solid(thick); translate([h, 0, thick*5/8]) cylinder(d=tube_d, h=thick); } } // BLOCK 9 module base_hole(thick) { translate([h, 0, 0]) rotate([0,0,slot_angle]) union() { cylinder(d=tube_d, h=thick); translate([0, h/2, thick/2]) cube([tube_d, h, thick], center=true); } } // BLOCK 10 module _cutter(thick) { translate([mount_thick+mount, 0, 0]) { cylinder(r=mount, h=thick); translate([h/2, 0, thick/2]) cube([h, mount*2, thick], center=true); } } // BLOCK 11 module base_solid(thick) { full_h = h+extra+tube_d/2; spike_w = tube_d+extra*2; inner_cut = tube_d*0.600; difference() { union() { translate([h, 0, 0]) cylinder(d=tube_d+extra*2, h=thick); translate([h/2, 0, thick/2]) cube([h, spike_w+mount*2, thick], center=true); } translate([0, mount+spike_w/2, 0]) _cutter(thick); translate([0, -(mount+spike_w/2), 0]) _cutter(thick); translate([h, 0, 0]) cylinder(d=tube_d/2, h=thick); translate([mount_thick, -inner_cut/2, 0]) cube([h-tube_d*1.800, inner_cut, thick]); } }
16563500-9884-4684-943e-3a1b31aa6689
// BLOCK 1 // BLOCK 2 difference() { translate( v=[0,0,3] ) { cylinder( r=27, h=6, center=true ); } translate( v=[0,0,4.500] ) { cylinder( r=25, h=6,center=true ); } translate( v=[0,0,0]) { cube( size=[60,8,1], center=true ); } translate( v=[0,-10,0]) { cube( size=[60,8,1], center=true ); } translate( v=[0,10,0]) { cube( size=[60,8,1], center=true ); } translate( v=[0,-20,0]) { cube( size=[60,8,1], center=true ); } translate( v=[0,20,0]) { cube( size=[60,8,1], center=true ); } }
// BLOCK 1 // BLOCK 2 difference() { translate( v=[0,0,3] ) { cylinder( r=27, h=6, center=true ); } translate( v=[0,0,4.500] ) { cylinder( r=25, h=6,center=true ); } translate( v=[0,0,0]) { cube( size=[60,8,1], center=true ); } translate( v=[0,-10,0]) { cube( size=[60,8,1], center=true ); } translate( v=[0,10,0]) { cube( size=[60,8,1], center=true ); } translate( v=[0,-20,0]) { cube( size=[60,8,1], center=true ); } translate( v=[0,20,0]) { cube( size=[60,8,1], center=true ); } }
68a29b69-8926-457a-aa94-dcd67e6c1f92
// BLOCK 1 shaft_diameter = 25.400 / 2; collar_width = 10; collar_height = 10; bolt_diameter = 3; nut_width = 6; nut_thickness = 4; split_width = 4; shaft_radius = shaft_diameter / 2; // BLOCK 2 difference() { cylinder ( r = shaft_radius + collar_width, h = collar_height, center = true); cylinder ( r = shaft_radius, h = collar_height + 2, center = true ); translate ( [ shaft_radius + collar_width / 2, 0 , 0 ] ) { cube ( [ collar_width + 2, split_width , collar_height + 2 ], center = true); } translate ( [shaft_radius + collar_width / 2 , 0, 0]) { rotate ( [90, 0, 0]){ cylinder ( r = bolt_width / 2, h = shaft_diameter + collar_width * 2, center = true); } } translate ( [shaft_radius + collar_width / 2, split_width / 2 + nut_thickness / 2 + 1, (nut_width / 2 + collar_height / 2) / 2 - nut_width / 2 + 0.500]){ cube ( [nut_width, nut_thickness, nut_width / 2 + collar_height / 2 + 1], center = true ); } translate ([shaft_radius + collar_width / 2, -(shaft_radius + collar_width / 2), 0]) { cube ([nut_width * 1.200, collar_width, nut_width* 1.200], center = true); } }
// BLOCK 1 shaft_diameter = 25.400 / 2; collar_width = 10; collar_height = 10; bolt_diameter = 3; nut_width = 6; nut_thickness = 4; split_width = 4; shaft_radius = shaft_diameter / 2; // BLOCK 2 difference() { cylinder ( r = shaft_radius + collar_width, h = collar_height, center = true); cylinder ( r = shaft_radius, h = collar_height + 2, center = true ); translate ( [ shaft_radius + collar_width / 2, 0 , 0 ] ) { cube ( [ collar_width + 2, split_width , collar_height + 2 ], center = true); } translate ( [shaft_radius + collar_width / 2 , 0, 0]) { rotate ( [90, 0, 0]){ cylinder ( r = bolt_width / 2, h = shaft_diameter + collar_width * 2, center = true); } } translate ( [shaft_radius + collar_width / 2, split_width / 2 + nut_thickness / 2 + 1, (nut_width / 2 + collar_height / 2) / 2 - nut_width / 2 + 0.500]){ cube ( [nut_width, nut_thickness, nut_width / 2 + collar_height / 2 + 1], center = true ); } translate ([shaft_radius + collar_width / 2, -(shaft_radius + collar_width / 2), 0]) { cube ([nut_width * 1.200, collar_width, nut_width* 1.200], center = true); } }
68b74ad9-a277-4be4-b87b-6c9107618169
// BLOCK 1 effective_diameter = 30; belt_diameter = 2; bore_diameter = 4; groove_angle = 60; thickness = 8; $fs = 1; belt_pulley(d=effective_diameter, belt_d=belt_diameter, axle_d = bore_diameter, t=thickness, angle=groove_angle); // BLOCK 2 module v_groove( d = 20, belt_d=2, angle=60, ){ rotate_extrude() translate([d/2,0]) union() { translate([-(belt_d/2)/cos(90-angle/2),0]) polygon(points=[ [0,0], [(belt_d*2)/tan(angle/2),belt_d*2], [(belt_d*2)/tan(angle/2),-belt_d*2], ]); color("black") circle(r=belt_d/2); } } // BLOCK 3 module belt_pulley( d = 20, shaft_d=4, belt_d=2, angle=60, t=5.500, wedge_factor=.2 ){ difference() { union() { difference() { cylinder(r=d/2+belt_d,h=t, center=true); v_groove( d = d, belt_d=belt_d, angle=angle ); } } cylinder(r=shaft_d/2,h=t+1, center=true); } } // BLOCK 4 module double_pulley( d1=15, d2=10, t=6, shaft_d=4, belt_d=2, angle=60 ) { translate([0,0,t/2]) belt_pulley( d=d1, t=t, shaft_d=shaft_d, belt_d=belt_d, angle=angle ); translate([0,0,t+t/2]) belt_pulley( d=d2, t=t, shaft_d=shaft_d, belt_d=belt_d, angle=angle ); }
// BLOCK 1 effective_diameter = 30; belt_diameter = 2; bore_diameter = 4; groove_angle = 60; thickness = 8; $fs = 1; belt_pulley(d=effective_diameter, belt_d=belt_diameter, axle_d = bore_diameter, t=thickness, angle=groove_angle); // BLOCK 2 module v_groove( d = 20, belt_d=2, angle=60, ){ rotate_extrude() translate([d/2,0]) union() { translate([-(belt_d/2)/cos(90-angle/2),0]) polygon(points=[ [0,0], [(belt_d*2)/tan(angle/2),belt_d*2], [(belt_d*2)/tan(angle/2),-belt_d*2], ]); color("black") circle(r=belt_d/2); } } // BLOCK 3 module belt_pulley( d = 20, shaft_d=4, belt_d=2, angle=60, t=5.500, wedge_factor=.2 ){ difference() { union() { difference() { cylinder(r=d/2+belt_d,h=t, center=true); v_groove( d = d, belt_d=belt_d, angle=angle ); } } cylinder(r=shaft_d/2,h=t+1, center=true); } } // BLOCK 4 module double_pulley( d1=15, d2=10, t=6, shaft_d=4, belt_d=2, angle=60 ) { translate([0,0,t/2]) belt_pulley( d=d1, t=t, shaft_d=shaft_d, belt_d=belt_d, angle=angle ); translate([0,0,t+t/2]) belt_pulley( d=d2, t=t, shaft_d=shaft_d, belt_d=belt_d, angle=angle ); }
2c463a30-54da-4896-a6b9-2e83ea3fb946
// BLOCK 1 spool_diameter=190; spool_height=65; rack_width=44; rack_count=4; spacer_count=1; spacer_height=0.800; floor_count=1; single_print = 1; mirror_rack = 0; handle_hole_size=20; handle_grip_size=0; handle_grip_height=0.500; handle_grip_width=0.800; hinge_width=20; drill_width=5; wall_thickness=1.500; explode_margin=4; $fn = 100; spool_radius = spool_diameter/2; hinge_radius = hinge_width/2; hinge_angle = asin(hinge_radius/(spool_radius-hinge_radius)); // BLOCK 2 module rotate_extrude2(angle=360, convexity=2, size=1000) { module angle_cut(angle=90, size=1000) { x = size*cos(angle/2); y = size*sin(angle/2); translate([0,0,-size]) linear_extrude(2*size) polygon([[0,0],[x,y],[x,size],[-size,size],[-size,-size],[x,-size],[x,-y]]); } angleSupport = (version_num() > 20150399) ? true*false : false; if (angleSupport) { rotate_extrude(angle=angle,convexity=convexity) children(); } else { rotate([0,0,angle/2]) difference() { rotate_extrude(convexity=convexity) children(); angle_cut(angle, size); } } } // BLOCK 3 module drill(width_1=10, width_2=10, height=10, hole=5) { difference() { translate ([0, 0, 0]) rotate ([-90, 0, 0]) cylinder (h=height, r1=width_1/2, r2=width_2/2); translate ([0, -0.100, 0]) rotate ([-90, 0, 0]) cylinder (h=height+0.200, r=hole/2); } } // BLOCK 4 module sub_rack() { rotate_extrude2(angle = 360/rack_count, convexity = 2, size=spool_radius+2) translate([spool_radius-rack_width, 0, 0]) polygon(points=[ [0,0], [0,(spool_height-1)/floor_count], [wall_thickness,(spool_height-1)/floor_count], [wall_thickness,wall_thickness], [rack_width-wall_thickness,wall_thickness], [rack_width-wall_thickness,(spool_height-1)/floor_count], [rack_width,(spool_height-1)/floor_count], [rack_width,0]]); if (rack_count>1) { translate([spool_radius-rack_width+1.100, 0, 0]) cube([rack_width-2.200, wall_thickness, (spool_height-1)/floor_count]); rotate([0, 0, 360/rack_count]) translate([spool_radius-rack_width+1.100, -wall_thickness, 0]) cube([rack_width-2, wall_thickness, (spool_height-1)/floor_count]); } if (spacer_count>0) { for(spacer_nr = [0 : spacer_count-1]) { rotate([0, 0, (360/rack_count)/(spacer_count+1)*(spacer_nr+1)]) translate([spool_radius-rack_width+1.100, 0, 0]) cube([rack_width-2.200, wall_thickness, (spool_height-1)/floor_count*spacer_height]); } } } // BLOCK 5 module handle_hole() { rotate([0, 90, 0]) scale([1.250,1,1.250]) sphere (r=handle_hole_size/2); } // BLOCK 6 module handle_grip() { cube([handle_grip_size*2/3, handle_grip_size*2/3*handle_grip_width, (spool_height-1)/floor_count*handle_grip_height]); translate([handle_grip_size*2/3, (handle_grip_size*2/3*handle_grip_width)/2, 0]) scale([1,handle_grip_width,1]) cylinder(h=(spool_height-1)/floor_count*handle_grip_height, r=handle_grip_size*0.660/2); } // BLOCK 7 module rack() { union() { difference() { sub_rack(); translate([spool_radius-1, handle_hole_size, (spool_height-1)/floor_count]) handle_hole(); rotate([0, 0, 360/rack_count-hinge_angle]) translate ([spool_radius-hinge_radius, 0, -1]) rotate([90, 0, 0]) drill(width_1=hinge_width, width_2=hinge_width, height=(spool_height-1)/floor_count+2, hole=0); rotate([0, 0, 360/rack_count-hinge_angle]) translate ([spool_radius-hinge_radius, 0, -1]) cube([hinge_width, hinge_width, (spool_height-1)/floor_count+2]); rotate([0, 0, 360/rack_count-wall_thickness]) translate ([spool_radius-hinge_radius, 0, -1]) cube([hinge_width/2, wall_thickness+1, (spool_height-1)/floor_count+2]); } translate([spool_radius-1-wall_thickness, wall_thickness, 0]) handle_grip(); rotate([0, 0, 360/rack_count-hinge_angle]) translate ([spool_radius-hinge_radius, 0, 0]) rotate([90, 0, 0]) drill(width_1=hinge_width, width_2=hinge_width, height=(spool_height-1)/floor_count, hole=drill_width); } } if (single_print) { mirror ([mirror_rack, 0, 0]) rack(); } else { for (floor_nr = [0 : floor_count-1]) { for(rack_nr = [0 : rack_count-1]) { mirror ([mirror_rack, 0, 0]) rotate([0, 0, 360/rack_count*rack_nr]) translate([explode_margin/2, explode_margin/2, (spool_height-1)/floor_count*floor_nr+floor_nr*explode_margin]) rack(); } } }
// BLOCK 1 spool_diameter=190; spool_height=65; rack_width=44; rack_count=4; spacer_count=1; spacer_height=0.800; floor_count=1; single_print = 1; mirror_rack = 0; handle_hole_size=20; handle_grip_size=0; handle_grip_height=0.500; handle_grip_width=0.800; hinge_width=20; drill_width=5; wall_thickness=1.500; explode_margin=4; $fn = 100; spool_radius = spool_diameter/2; hinge_radius = hinge_width/2; hinge_angle = asin(hinge_radius/(spool_radius-hinge_radius)); // BLOCK 2 module rotate_extrude2(angle=360, convexity=2, size=1000) { module angle_cut(angle=90, size=1000) { x = size*cos(angle/2); y = size*sin(angle/2); translate([0,0,-size]) linear_extrude(2*size) polygon([[0,0],[x,y],[x,size],[-size,size],[-size,-size],[x,-size],[x,-y]]); } angleSupport = (version_num() > 20150399) ? true*false : false; if (angleSupport) { rotate_extrude(angle=angle,convexity=convexity) children(); } else { rotate([0,0,angle/2]) difference() { rotate_extrude(convexity=convexity) children(); angle_cut(angle, size); } } } // BLOCK 3 module drill(width_1=10, width_2=10, height=10, hole=5) { difference() { translate ([0, 0, 0]) rotate ([-90, 0, 0]) cylinder (h=height, r1=width_1/2, r2=width_2/2); translate ([0, -0.100, 0]) rotate ([-90, 0, 0]) cylinder (h=height+0.200, r=hole/2); } } // BLOCK 4 module sub_rack() { rotate_extrude2(angle = 360/rack_count, convexity = 2, size=spool_radius+2) translate([spool_radius-rack_width, 0, 0]) polygon(points=[ [0,0], [0,(spool_height-1)/floor_count], [wall_thickness,(spool_height-1)/floor_count], [wall_thickness,wall_thickness], [rack_width-wall_thickness,wall_thickness], [rack_width-wall_thickness,(spool_height-1)/floor_count], [rack_width,(spool_height-1)/floor_count], [rack_width,0]]); if (rack_count>1) { translate([spool_radius-rack_width+1.100, 0, 0]) cube([rack_width-2.200, wall_thickness, (spool_height-1)/floor_count]); rotate([0, 0, 360/rack_count]) translate([spool_radius-rack_width+1.100, -wall_thickness, 0]) cube([rack_width-2, wall_thickness, (spool_height-1)/floor_count]); } if (spacer_count>0) { for(spacer_nr = [0 : spacer_count-1]) { rotate([0, 0, (360/rack_count)/(spacer_count+1)*(spacer_nr+1)]) translate([spool_radius-rack_width+1.100, 0, 0]) cube([rack_width-2.200, wall_thickness, (spool_height-1)/floor_count*spacer_height]); } } } // BLOCK 5 module handle_hole() { rotate([0, 90, 0]) scale([1.250,1,1.250]) sphere (r=handle_hole_size/2); } // BLOCK 6 module handle_grip() { cube([handle_grip_size*2/3, handle_grip_size*2/3*handle_grip_width, (spool_height-1)/floor_count*handle_grip_height]); translate([handle_grip_size*2/3, (handle_grip_size*2/3*handle_grip_width)/2, 0]) scale([1,handle_grip_width,1]) cylinder(h=(spool_height-1)/floor_count*handle_grip_height, r=handle_grip_size*0.660/2); } // BLOCK 7 module rack() { union() { difference() { sub_rack(); translate([spool_radius-1, handle_hole_size, (spool_height-1)/floor_count]) handle_hole(); rotate([0, 0, 360/rack_count-hinge_angle]) translate ([spool_radius-hinge_radius, 0, -1]) rotate([90, 0, 0]) drill(width_1=hinge_width, width_2=hinge_width, height=(spool_height-1)/floor_count+2, hole=0); rotate([0, 0, 360/rack_count-hinge_angle]) translate ([spool_radius-hinge_radius, 0, -1]) cube([hinge_width, hinge_width, (spool_height-1)/floor_count+2]); rotate([0, 0, 360/rack_count-wall_thickness]) translate ([spool_radius-hinge_radius, 0, -1]) cube([hinge_width/2, wall_thickness+1, (spool_height-1)/floor_count+2]); } translate([spool_radius-1-wall_thickness, wall_thickness, 0]) handle_grip(); rotate([0, 0, 360/rack_count-hinge_angle]) translate ([spool_radius-hinge_radius, 0, 0]) rotate([90, 0, 0]) drill(width_1=hinge_width, width_2=hinge_width, height=(spool_height-1)/floor_count, hole=drill_width); } } if (single_print) { mirror ([mirror_rack, 0, 0]) rack(); } else { for (floor_nr = [0 : floor_count-1]) { for(rack_nr = [0 : rack_count-1]) { mirror ([mirror_rack, 0, 0]) rotate([0, 0, 360/rack_count*rack_nr]) translate([explode_margin/2, explode_margin/2, (spool_height-1)/floor_count*floor_nr+floor_nr*explode_margin]) rack(); } } }
8bda239a-30cc-47c3-b57a-130b92b64563
// BLOCK 1 knob_diam = 25; knob_height = 18; chamfering_height = 1.200; fluting_depth = 0.400; fluting_count = 24; marking_depth = 0.200; marking_width = 0.700; marking_distance = 3; outer_wall = 2; axis_diam = 6.100; axis_holder_indent = 2; axis_hole_depth = 13; nut_axis_distance = 0.700; nut_diameter_e = 6.400; nut_diameter_s = 5.550; nut_thickness = 2.450; screw_hole_diam = 3.200; resol = 120; knob_radius = knob_diam / 2; knob_top_radius = knob_radius - chamfering_height; fluting_step = 360 / fluting_count; fluting_block_size = 2 * ( fluting_depth / sqrt (2) ); marking_length = knob_radius - ( 2* marking_distance); axis_radius = axis_diam / 2; axis_holder_diam = knob_diam - ( 2* outer_wall ); axis_holder_radius = axis_holder_diam / 2; screw_hole_radius = screw_hole_diam / 2; screw_height = knob_height - (axis_hole_depth / 2); nut_x_pos = -axis_radius - nut_axis_distance - ( nut_thickness / 2); nutslot_z_pos = knob_height - (( knob_height - screw_height) / 2); // BLOCK 2 difference () { union () { cylinder (h = chamfering_height, r2 = knob_radius, r1 = knob_top_radius, center = false, $fn = resol); translate ( [ 0, 0, chamfering_height] ) { cylinder (h = knob_height - chamfering_height, r = knob_radius, center = false, $fn = resol); }; }; translate ( [ 0, 0, outer_wall] ) { cylinder (h = knob_height, r = knob_radius - outer_wall, center = false, $fn = resol); }; for ( step = [ 0 : fluting_step : 360 ] ) { rotate ( [ 0, 0, step ] ) { translate ( [ knob_radius, 0, knob_height / 2] ) { rotate ( [ 0, 0, 45 ] ) { cube ( [ fluting_block_size, fluting_block_size, knob_height ], center = true ); }; }; }; }; translate ( [ marking_distance, -marking_width / 2, 0 ] ) { cube ( [ marking_length, marking_width, marking_depth ], center = false ); }; translate ( [ 0, 0, screw_height] ) { rotate ( [ 0, -90, 0 ] ) { cylinder ( h = knob_radius, r = screw_hole_radius, center = false, $fn = resol ); }; }; }; // BLOCK 3 difference () { union () { cylinder ( h = knob_height - axis_holder_indent, r = axis_holder_radius, center = false, $fn = resol); }; translate ( [ 0, 0, knob_height - axis_hole_depth ] ) { cylinder ( h = axis_hole_depth, r = axis_radius, center = false, $fn = resol); }; translate ( [ marking_distance, -marking_width / 2, 0 ] ) { cube ( [ marking_length, marking_width, marking_depth ], center = false ); }; translate ( [ 0, 0, screw_height] ) { rotate ( [ 0, -90, 0 ] ) { cylinder ( h = knob_radius, r = screw_hole_radius, center = false, $fn = resol ); }; }; translate ( [ nut_x_pos, 0, nutslot_z_pos ] ) { cube ( [ nut_thickness, nut_diameter_s, knob_height - screw_height ], center = true); }; translate ( [ nut_x_pos, 0, screw_height ] ) { rotate ( [ 0, 90, 0 ] ) { cylinder ( h = nut_thickness, d = nut_diameter_e, center = true, $fn = 6 ); }; }; };
// BLOCK 1 knob_diam = 25; knob_height = 18; chamfering_height = 1.200; fluting_depth = 0.400; fluting_count = 24; marking_depth = 0.200; marking_width = 0.700; marking_distance = 3; outer_wall = 2; axis_diam = 6.100; axis_holder_indent = 2; axis_hole_depth = 13; nut_axis_distance = 0.700; nut_diameter_e = 6.400; nut_diameter_s = 5.550; nut_thickness = 2.450; screw_hole_diam = 3.200; resol = 120; knob_radius = knob_diam / 2; knob_top_radius = knob_radius - chamfering_height; fluting_step = 360 / fluting_count; fluting_block_size = 2 * ( fluting_depth / sqrt (2) ); marking_length = knob_radius - ( 2* marking_distance); axis_radius = axis_diam / 2; axis_holder_diam = knob_diam - ( 2* outer_wall ); axis_holder_radius = axis_holder_diam / 2; screw_hole_radius = screw_hole_diam / 2; screw_height = knob_height - (axis_hole_depth / 2); nut_x_pos = -axis_radius - nut_axis_distance - ( nut_thickness / 2); nutslot_z_pos = knob_height - (( knob_height - screw_height) / 2); // BLOCK 2 difference () { union () { cylinder (h = chamfering_height, r2 = knob_radius, r1 = knob_top_radius, center = false, $fn = resol); translate ( [ 0, 0, chamfering_height] ) { cylinder (h = knob_height - chamfering_height, r = knob_radius, center = false, $fn = resol); }; }; translate ( [ 0, 0, outer_wall] ) { cylinder (h = knob_height, r = knob_radius - outer_wall, center = false, $fn = resol); }; for ( step = [ 0 : fluting_step : 360 ] ) { rotate ( [ 0, 0, step ] ) { translate ( [ knob_radius, 0, knob_height / 2] ) { rotate ( [ 0, 0, 45 ] ) { cube ( [ fluting_block_size, fluting_block_size, knob_height ], center = true ); }; }; }; }; translate ( [ marking_distance, -marking_width / 2, 0 ] ) { cube ( [ marking_length, marking_width, marking_depth ], center = false ); }; translate ( [ 0, 0, screw_height] ) { rotate ( [ 0, -90, 0 ] ) { cylinder ( h = knob_radius, r = screw_hole_radius, center = false, $fn = resol ); }; }; }; // BLOCK 3 difference () { union () { cylinder ( h = knob_height - axis_holder_indent, r = axis_holder_radius, center = false, $fn = resol); }; translate ( [ 0, 0, knob_height - axis_hole_depth ] ) { cylinder ( h = axis_hole_depth, r = axis_radius, center = false, $fn = resol); }; translate ( [ marking_distance, -marking_width / 2, 0 ] ) { cube ( [ marking_length, marking_width, marking_depth ], center = false ); }; translate ( [ 0, 0, screw_height] ) { rotate ( [ 0, -90, 0 ] ) { cylinder ( h = knob_radius, r = screw_hole_radius, center = false, $fn = resol ); }; }; translate ( [ nut_x_pos, 0, nutslot_z_pos ] ) { cube ( [ nut_thickness, nut_diameter_s, knob_height - screw_height ], center = true); }; translate ( [ nut_x_pos, 0, screw_height ] ) { rotate ( [ 0, 90, 0 ] ) { cylinder ( h = nut_thickness, d = nut_diameter_e, center = true, $fn = 6 ); }; }; };
573b24dc-0cd7-4638-a3ed-391dffe01086
// BLOCK 1 infuserWidth=25; infuserDepth=infuserWidth*0.750; wall=1; infTop=infuserWidth*2/3; infHole=infuserWidth/4.500; legWidth=2; legHeight=infuserWidth; gridCenter=infuserWidth-wall*4-5; gridNum=gridCenter/2.500; fittingHeight=5; hookWidth=12.500; hookHeight=25; hookDepth=2; hookWall=8; piece=1; if (piece==1){ translate([0,0,wall/2]) infuserBack(); } if (piece==2){ translate([0,0,infuserDepth/2]) infuserFront(); } if (piece==3){ translate([0,0,0]) infuserHook(); } // BLOCK 2 module infuserBack(){ module infuserTop(){ difference(){ box(infuserWidth,infTop,wall); translate([0,0,-wall/2]) cylinder(wall,infHole,infHole); } } module infuserNet(){ gridThick=1; gridHeight=infuserWidth-wall*4-1; gridCenter=infuserWidth-wall*4-5; gridNum=gridCenter/3; union(){ hollowBox(infuserWidth,infuserWidth,wall,wall+3.500); translate([0,0,fittingHeight/2]) hollowBox(infuserWidth-3,infuserWidth-3,fittingHeight,wall); for (g=[0:gridNum]){ translate([g*(gridCenter/gridNum)-gridCenter/2,0,gridThick]) box(gridThick,gridHeight,gridThick); } for (g=[0:gridNum]){ translate([0,g*(gridCenter/gridNum)-gridCenter/2,gridThick*2]) box(gridHeight,gridThick,gridThick); } } } module infuserLegs(){ translate([0,-legHeight/2-infuserWidth/2,0]) box(legWidth,legHeight,wall); translate([-infuserWidth/3,-legHeight/2-infuserWidth/2,0]) box(legWidth,legHeight,wall); translate([infuserWidth/3,-legHeight/2-infuserWidth/2,0]) box(legWidth,legHeight,wall); } union(){ translate([0,infuserWidth/2+infTop/2-0.100,0]) infuserTop(); translate([0,0,0]) infuserNet(); infuserLegs(); } } // BLOCK 3 module infuserFront(){ difference(){ box(infuserWidth,infuserWidth,infuserDepth); translate([0,0,wall/2]) box(infuserWidth-wall*2,infuserWidth-wall*2,infuserDepth-wall); } } // BLOCK 4 module infuserHook(){ hHeight=hookHeight*2; union(){ difference(){ ovalTube(hookWidth,hHeight,hookDepth,hookWall); translate([0,-hHeight/4,hookDepth/2]) box(hookWidth, hHeight/2, hookDepth); } translate([hookWidth/2,hookDepth/4,0]) cylinder(hookDepth,hookWall/4,hookWall/4); translate([-hookWidth/2,-wall*3,0]) tube(hookDepth,hookWall/2,hookWall/6); } } // BLOCK 5 module box(w,h,d) { scale ([w,h,d]) cube(1, true); } // BLOCK 6 module hollowBox(w,h,d,wall){ difference(){ box(w,h,d); box(w-wall*2,h-wall*2,d); } } // BLOCK 7 module roundedBox(w,h,d,f){ difference(){ box(w,h,d); translate([-w/2,h/2,0]) cube(w/(f/2),true); translate([w/2,h/2,0]) cube(w/(f/2),true); translate([-w/2,-h/2,0]) cube(w/(f/2),true); translate([w/2,-h/2,0]) cube(w/(f/2),true); } translate([-w/2+w/f,h/2-w/f,-d/2]) cylinder(d,w/f, w/f); translate([w/2-w/f,h/2-w/f,-d/2]) cylinder(d,w/f, w/f); translate([-w/2+w/f,-h/2+w/f,-d/2]) cylinder(d,w/f, w/f); translate([w/2-w/f,-h/2+w/f,-d/2]) cylinder(d,w/f, w/f); } // BLOCK 8 module cone(height, radius) { cylinder(height, radius, 0); } // BLOCK 9 module oval(w,h,d) { scale ([w/100, h/100, 1]) cylinder(d, 50, 50); } // BLOCK 10 module tube(height, radius, wall) { difference(){ cylinder(height, radius, radius); cylinder(height, radius-wall, radius-wall); } } // BLOCK 11 module ovalTube(w,h,d,wall) { difference(){ scale ([w/100, h/100, 1]) cylinder(d, 50, 50); scale ([w/100, h/100, 1]) cylinder(d, 50-wall, 50-wall); } } // BLOCK 12 module tearDrop(diam) { f=0.520; union(){ translate([0,diam*0.700,depth/2]) rotate([0,0,135]) rightTriangle(diam*f,diam*f, depth); cylinder(depth,diam/2,diam/2); } } // BLOCK 13 module hexagon(height, depth) { boxWidth=height/1.750; union(){ box(boxWidth, height, depth); rotate([0,0,60]) box(boxWidth, height, depth); rotate([0,0,-60]) box(boxWidth, height, depth); } } // BLOCK 14 module octagon(height, depth) { intersection(){ box(height, height, depth); rotate([0,0,45]) box(height, height, depth); } } // BLOCK 15 module dodecagon(height, depth) { intersection(){ hexagon(height, depth); rotate([0,0,90]) hexagon(height, depth); } } // BLOCK 16 module hexagram(height, depth) { boxWidth=height/1.750; intersection(){ box(height, boxWidth, depth); rotate([0,0,60]) box(height, boxWidth, depth); } intersection(){ box(height, boxWidth, depth); rotate([0,0,-60]) box(height, boxWidth, depth); } intersection(){ rotate([0,0,60]) box(height, boxWidth, depth); rotate([0,0,-60]) box(height, boxWidth, depth); } } // BLOCK 17 module rightTriangle(adjacent, opposite, depth) { difference(){ translate([-adjacent/2,opposite/2,0]) box(adjacent, opposite, depth); translate([-adjacent,0,0]){ rotate([0,0,atan(opposite/adjacent)]) dislocateBox(adjacent*2, opposite, depth); } } } // BLOCK 18 module equiTriangle(side, depth) { difference(){ translate([-side/2,side/2,0]) box(side, side, depth); rotate([0,0,30]) dislocateBox(side*2, side, depth); translate([-side,0,0]){ rotate([0,0,60]) dislocateBox(side*2, side, depth); } } } // BLOCK 19 module 12ptStar(height, depth) { starNum=3; starAngle=360/starNum; for (s=[1:starNum]){ rotate([0, 0, s*starAngle]) box(height, height, depth); } }
// BLOCK 1 infuserWidth=25; infuserDepth=infuserWidth*0.750; wall=1; infTop=infuserWidth*2/3; infHole=infuserWidth/4.500; legWidth=2; legHeight=infuserWidth; gridCenter=infuserWidth-wall*4-5; gridNum=gridCenter/2.500; fittingHeight=5; hookWidth=12.500; hookHeight=25; hookDepth=2; hookWall=8; piece=1; if (piece==1){ translate([0,0,wall/2]) infuserBack(); } if (piece==2){ translate([0,0,infuserDepth/2]) infuserFront(); } if (piece==3){ translate([0,0,0]) infuserHook(); } // BLOCK 2 module infuserBack(){ module infuserTop(){ difference(){ box(infuserWidth,infTop,wall); translate([0,0,-wall/2]) cylinder(wall,infHole,infHole); } } module infuserNet(){ gridThick=1; gridHeight=infuserWidth-wall*4-1; gridCenter=infuserWidth-wall*4-5; gridNum=gridCenter/3; union(){ hollowBox(infuserWidth,infuserWidth,wall,wall+3.500); translate([0,0,fittingHeight/2]) hollowBox(infuserWidth-3,infuserWidth-3,fittingHeight,wall); for (g=[0:gridNum]){ translate([g*(gridCenter/gridNum)-gridCenter/2,0,gridThick]) box(gridThick,gridHeight,gridThick); } for (g=[0:gridNum]){ translate([0,g*(gridCenter/gridNum)-gridCenter/2,gridThick*2]) box(gridHeight,gridThick,gridThick); } } } module infuserLegs(){ translate([0,-legHeight/2-infuserWidth/2,0]) box(legWidth,legHeight,wall); translate([-infuserWidth/3,-legHeight/2-infuserWidth/2,0]) box(legWidth,legHeight,wall); translate([infuserWidth/3,-legHeight/2-infuserWidth/2,0]) box(legWidth,legHeight,wall); } union(){ translate([0,infuserWidth/2+infTop/2-0.100,0]) infuserTop(); translate([0,0,0]) infuserNet(); infuserLegs(); } } // BLOCK 3 module infuserFront(){ difference(){ box(infuserWidth,infuserWidth,infuserDepth); translate([0,0,wall/2]) box(infuserWidth-wall*2,infuserWidth-wall*2,infuserDepth-wall); } } // BLOCK 4 module infuserHook(){ hHeight=hookHeight*2; union(){ difference(){ ovalTube(hookWidth,hHeight,hookDepth,hookWall); translate([0,-hHeight/4,hookDepth/2]) box(hookWidth, hHeight/2, hookDepth); } translate([hookWidth/2,hookDepth/4,0]) cylinder(hookDepth,hookWall/4,hookWall/4); translate([-hookWidth/2,-wall*3,0]) tube(hookDepth,hookWall/2,hookWall/6); } } // BLOCK 5 module box(w,h,d) { scale ([w,h,d]) cube(1, true); } // BLOCK 6 module hollowBox(w,h,d,wall){ difference(){ box(w,h,d); box(w-wall*2,h-wall*2,d); } } // BLOCK 7 module roundedBox(w,h,d,f){ difference(){ box(w,h,d); translate([-w/2,h/2,0]) cube(w/(f/2),true); translate([w/2,h/2,0]) cube(w/(f/2),true); translate([-w/2,-h/2,0]) cube(w/(f/2),true); translate([w/2,-h/2,0]) cube(w/(f/2),true); } translate([-w/2+w/f,h/2-w/f,-d/2]) cylinder(d,w/f, w/f); translate([w/2-w/f,h/2-w/f,-d/2]) cylinder(d,w/f, w/f); translate([-w/2+w/f,-h/2+w/f,-d/2]) cylinder(d,w/f, w/f); translate([w/2-w/f,-h/2+w/f,-d/2]) cylinder(d,w/f, w/f); } // BLOCK 8 module cone(height, radius) { cylinder(height, radius, 0); } // BLOCK 9 module oval(w,h,d) { scale ([w/100, h/100, 1]) cylinder(d, 50, 50); } // BLOCK 10 module tube(height, radius, wall) { difference(){ cylinder(height, radius, radius); cylinder(height, radius-wall, radius-wall); } } // BLOCK 11 module ovalTube(w,h,d,wall) { difference(){ scale ([w/100, h/100, 1]) cylinder(d, 50, 50); scale ([w/100, h/100, 1]) cylinder(d, 50-wall, 50-wall); } } // BLOCK 12 module tearDrop(diam) { f=0.520; union(){ translate([0,diam*0.700,depth/2]) rotate([0,0,135]) rightTriangle(diam*f,diam*f, depth); cylinder(depth,diam/2,diam/2); } } // BLOCK 13 module hexagon(height, depth) { boxWidth=height/1.750; union(){ box(boxWidth, height, depth); rotate([0,0,60]) box(boxWidth, height, depth); rotate([0,0,-60]) box(boxWidth, height, depth); } } // BLOCK 14 module octagon(height, depth) { intersection(){ box(height, height, depth); rotate([0,0,45]) box(height, height, depth); } } // BLOCK 15 module dodecagon(height, depth) { intersection(){ hexagon(height, depth); rotate([0,0,90]) hexagon(height, depth); } } // BLOCK 16 module hexagram(height, depth) { boxWidth=height/1.750; intersection(){ box(height, boxWidth, depth); rotate([0,0,60]) box(height, boxWidth, depth); } intersection(){ box(height, boxWidth, depth); rotate([0,0,-60]) box(height, boxWidth, depth); } intersection(){ rotate([0,0,60]) box(height, boxWidth, depth); rotate([0,0,-60]) box(height, boxWidth, depth); } } // BLOCK 17 module rightTriangle(adjacent, opposite, depth) { difference(){ translate([-adjacent/2,opposite/2,0]) box(adjacent, opposite, depth); translate([-adjacent,0,0]){ rotate([0,0,atan(opposite/adjacent)]) dislocateBox(adjacent*2, opposite, depth); } } } // BLOCK 18 module equiTriangle(side, depth) { difference(){ translate([-side/2,side/2,0]) box(side, side, depth); rotate([0,0,30]) dislocateBox(side*2, side, depth); translate([-side,0,0]){ rotate([0,0,60]) dislocateBox(side*2, side, depth); } } } // BLOCK 19 module 12ptStar(height, depth) { starNum=3; starAngle=360/starNum; for (s=[1:starNum]){ rotate([0, 0, s*starAngle]) box(height, height, depth); } }
1206fd83-a240-49ce-bbbe-7ee59288e21b
// BLOCK 1 width=82; heightFromBootm=155; holderHeight=55; fingerSize=12; wall=1; margine=4; depth=8; fingerHold=1; onlyHalf=0; $fn=80; difference() // BLOCK 2 { render() base(); translate([margine+fingerSize/2,width/2-fingerSize/2+wall,-wall]) cube([heightFromBootm-2*margine-fingerSize,fingerSize,3*wall]); if (fingerHold==0) translate([margine,margine+wall,-wall]) cube([holderHeight-2*margine,width/3-margine,3*wall]); translate([margine,width-width/3+wall,-wall]) cube([holderHeight-2*margine,width/3-margine,3*wall]); translate([margine+fingerSize/2,width/2+wall,-2*wall]) difference() { cylinder(r=fingerSize/2, h=20); translate([25,0,0]) cube(50, center=true); } translate([heightFromBootm-margine-fingerSize/2,width/2+wall,-2*wall]) difference() { cylinder(r=fingerSize/2, h=20); translate([-25,0,0]) cube(50, center=true); } if (onlyHalf==1) translate([-5*wall,width/2+3*wall,-5*wall]) cube([heightFromBootm*1.500,width,depth*2]); } // BLOCK 3 module base() { cube([holderHeight,width+2*wall,wall]); translate([0,wall+width/2-margine-fingerSize/2,0]) cube([heightFromBootm-fingerSize/2-margine,fingerSize+2*margine,wall]); cube([holderHeight,wall,depth]); translate([0,width+wall,0]) cube([holderHeight,wall,depth]); cube([wall,2*wall+width,depth]); if (onlyHalf==0) translate([heightFromBootm-margine-fingerSize/2,width/2+wall,0]) difference() { cylinder(r=(fingerSize+2*margine)/2, h=wall); translate([-25,0,0]) cube(50, center=true); } }
// BLOCK 1 width=82; heightFromBootm=155; holderHeight=55; fingerSize=12; wall=1; margine=4; depth=8; fingerHold=1; onlyHalf=0; $fn=80; difference() // BLOCK 2 { render() base(); translate([margine+fingerSize/2,width/2-fingerSize/2+wall,-wall]) cube([heightFromBootm-2*margine-fingerSize,fingerSize,3*wall]); if (fingerHold==0) translate([margine,margine+wall,-wall]) cube([holderHeight-2*margine,width/3-margine,3*wall]); translate([margine,width-width/3+wall,-wall]) cube([holderHeight-2*margine,width/3-margine,3*wall]); translate([margine+fingerSize/2,width/2+wall,-2*wall]) difference() { cylinder(r=fingerSize/2, h=20); translate([25,0,0]) cube(50, center=true); } translate([heightFromBootm-margine-fingerSize/2,width/2+wall,-2*wall]) difference() { cylinder(r=fingerSize/2, h=20); translate([-25,0,0]) cube(50, center=true); } if (onlyHalf==1) translate([-5*wall,width/2+3*wall,-5*wall]) cube([heightFromBootm*1.500,width,depth*2]); } // BLOCK 3 module base() { cube([holderHeight,width+2*wall,wall]); translate([0,wall+width/2-margine-fingerSize/2,0]) cube([heightFromBootm-fingerSize/2-margine,fingerSize+2*margine,wall]); cube([holderHeight,wall,depth]); translate([0,width+wall,0]) cube([holderHeight,wall,depth]); cube([wall,2*wall+width,depth]); if (onlyHalf==0) translate([heightFromBootm-margine-fingerSize/2,width/2+wall,0]) difference() { cylinder(r=(fingerSize+2*margine)/2, h=wall); translate([-25,0,0]) cube(50, center=true); } }
66d1aa3e-8d84-4635-92d7-245e30af0889
// BLOCK 1 post_diameter=5; base_height=2; base_depth=20; label_height=0.600; label_font="Arial:style=Regular"; label_size=10; panel_length=30; panel_height=30; panels_1 = [ [0.400,"0.400"], [0.800,"0.800"], [1.200,"1.200"], [1.600,"1.600"], [2.000,"2.000"], [2.400,"2.400"], ]; panels_2a = [ [0.200,"0.200"], [0.400,"0.400"], [0.600,"0.600"], [0.800,"0.800"], [1.000,"1.000"], [1.200,"1.200"], ]; panels_2b = [ [1.400,"1.400"], [1.600,"1.600"], [1.800,"1.800"], [2.000,"2.000"], [2.200,"2.200"], [2.400,"2.400"], ]; $fn=80; // BLOCK 2 module panel(thickness, label) { translate([-post_diameter/2,-0.900*base_depth+post_diameter/2,0]) cube([panel_length+post_diameter*2, base_depth, base_height]); translate([0,0,base_height]) cylinder(d=post_diameter, h=panel_height); translate([panel_length+post_diameter, 0, base_height]) cylinder(d=post_diameter, h=panel_height); translate([0,-thickness/2,base_height]) cube([panel_length+post_diameter, thickness, panel_height]); translate([0.500*(panel_length + post_diameter), -0.700*base_depth, base_height]) linear_extrude(label_height) text(label, font=label_font, size=label_size, halign="center"); } // BLOCK 3 module all_panels(panels) { for(ix=[0:len(panels)-1]) { translate([ix*(panel_length+post_diameter), 0, 0]) panel(panels[ix][0], panels[ix][1]); } } all_panels(panels_1);
// BLOCK 1 post_diameter=5; base_height=2; base_depth=20; label_height=0.600; label_font="Arial:style=Regular"; label_size=10; panel_length=30; panel_height=30; panels_1 = [ [0.400,"0.400"], [0.800,"0.800"], [1.200,"1.200"], [1.600,"1.600"], [2.000,"2.000"], [2.400,"2.400"], ]; panels_2a = [ [0.200,"0.200"], [0.400,"0.400"], [0.600,"0.600"], [0.800,"0.800"], [1.000,"1.000"], [1.200,"1.200"], ]; panels_2b = [ [1.400,"1.400"], [1.600,"1.600"], [1.800,"1.800"], [2.000,"2.000"], [2.200,"2.200"], [2.400,"2.400"], ]; $fn=80; // BLOCK 2 module panel(thickness, label) { translate([-post_diameter/2,-0.900*base_depth+post_diameter/2,0]) cube([panel_length+post_diameter*2, base_depth, base_height]); translate([0,0,base_height]) cylinder(d=post_diameter, h=panel_height); translate([panel_length+post_diameter, 0, base_height]) cylinder(d=post_diameter, h=panel_height); translate([0,-thickness/2,base_height]) cube([panel_length+post_diameter, thickness, panel_height]); translate([0.500*(panel_length + post_diameter), -0.700*base_depth, base_height]) linear_extrude(label_height) text(label, font=label_font, size=label_size, halign="center"); } // BLOCK 3 module all_panels(panels) { for(ix=[0:len(panels)-1]) { translate([ix*(panel_length+post_diameter), 0, 0]) panel(panels[ix][0], panels[ix][1]); } } all_panels(panels_1);
22d4b2cb-9224-45f6-af36-5d1b08e42967
// BLOCK 1 // BLOCK 2 translate([0,0,18]) rotate([0,90,0]){ cylinder(15,9,9); // BLOCK 3 translate([0,0,18]) scale([1.500,1.800,1]) sphere(10); // BLOCK 4 hull(){ cylinder(5,9,9); translate([-18,50,0]) cube([36,35,5]); } // BLOCK 5 translate([-18,80,0]) cube([36,5,45]); // BLOCK 6 translate([-18,50,40]) cube([36,35,5]); }
// BLOCK 1 // BLOCK 2 translate([0,0,18]) rotate([0,90,0]){ cylinder(15,9,9); // BLOCK 3 translate([0,0,18]) scale([1.500,1.800,1]) sphere(10); // BLOCK 4 hull(){ cylinder(5,9,9); translate([-18,50,0]) cube([36,35,5]); } // BLOCK 5 translate([-18,80,0]) cube([36,5,45]); // BLOCK 6 translate([-18,50,40]) cube([36,35,5]); }
85ce8d5b-0648-4ebb-b9d5-5d24cd3d995e
// BLOCK 1 factor=1.200; section_length=80; section_width=30; under_tie_height=2; frog_length=60; cross_angle=30; tie_length=16.130*factor; tie_width=1.760*factor; tie_thickness=1.860; track_height=3.930; tie_spacing=6.500; rail_width=1.350*factor; rail_spacing=11.030*factor; flange_clearance=1; // BLOCK 2 difference(){ union(){ difference(){ rerailer_block(); translate([0,0,-track_height/2+under_tie_height+tie_thickness]) cube(center=true,[section_length,tie_length,track_height]); track(); cube(center=true,[frog_length,rail_width,track_height]); } translate([0,0,-(track_height+under_tie_height)/2])color("green")frog(); translate([0,tie_length/2,-(track_height+under_tie_height)/2])color("green")frog(); translate([0,-tie_length/2,-(track_height+under_tie_height)/2])color("green")frog(); } translate([section_length/2,0,section_width/2-track_height/2])rotate([0,cross_angle/3,0])cube(center=true,[section_length,section_width,section_width]); translate([-section_length/2,0,section_width/2-track_height/2])rotate([0,-cross_angle/3,0])cube(center=true,[section_length,section_width,section_width]); translate([0,0,track_height+under_tie_height-1.100])rerailer_block(); } // BLOCK 3 module rerailer_block(){ cube(center=true,[section_length,section_width,track_height+under_tie_height]); } // BLOCK 4 module frog(){ polyhedron( points=[ [-frog_length/2,0,0], [-(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),(rail_spacing/2-rail_width-flange_clearance),0], [(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),(rail_spacing/2-rail_width-flange_clearance),0], [frog_length/2,0,0], [(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),-(rail_spacing/2-rail_width-flange_clearance),0], [-(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),-(rail_spacing/2-rail_width-flange_clearance),0], [-frog_length/2,0,track_height+under_tie_height], [-(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),(rail_spacing/2-rail_width-flange_clearance),track_height+under_tie_height], [(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),(rail_spacing/2-rail_width-flange_clearance),track_height+under_tie_height], [frog_length/2,0,track_height+under_tie_height], [(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),-(rail_spacing/2-rail_width-flange_clearance),track_height+under_tie_height], [-(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),-(rail_spacing/2-rail_width-flange_clearance),track_height+under_tie_height] ], faces=[ [0,5,4,3,2,1], [0,6,11,5], [5,11,10,4], [4,10,9,3], [3,9,8,2], [2,8,7,1], [1,7,6,0], [6,7,8,9,10,11] ] ); } // BLOCK 5 module track(){ translate([0,-(rail_spacing-rail_width-flange_clearance)/2,0]) cube(center=true,[section_length*1.200,rail_width+flange_clearance,track_height]); translate([0,(rail_spacing-rail_width-flange_clearance)/2,0]) cube(center=true,[section_length*1.200,rail_width+flange_clearance,track_height]); for(t=[0:tie_spacing-tie_width:section_length*1.200]){ translate([(-section_length*1.200/2)+t,0,0]) cube(center=true,[tie_width,tie_length,track_height]); } }
// BLOCK 1 factor=1.200; section_length=80; section_width=30; under_tie_height=2; frog_length=60; cross_angle=30; tie_length=16.130*factor; tie_width=1.760*factor; tie_thickness=1.860; track_height=3.930; tie_spacing=6.500; rail_width=1.350*factor; rail_spacing=11.030*factor; flange_clearance=1; // BLOCK 2 difference(){ union(){ difference(){ rerailer_block(); translate([0,0,-track_height/2+under_tie_height+tie_thickness]) cube(center=true,[section_length,tie_length,track_height]); track(); cube(center=true,[frog_length,rail_width,track_height]); } translate([0,0,-(track_height+under_tie_height)/2])color("green")frog(); translate([0,tie_length/2,-(track_height+under_tie_height)/2])color("green")frog(); translate([0,-tie_length/2,-(track_height+under_tie_height)/2])color("green")frog(); } translate([section_length/2,0,section_width/2-track_height/2])rotate([0,cross_angle/3,0])cube(center=true,[section_length,section_width,section_width]); translate([-section_length/2,0,section_width/2-track_height/2])rotate([0,-cross_angle/3,0])cube(center=true,[section_length,section_width,section_width]); translate([0,0,track_height+under_tie_height-1.100])rerailer_block(); } // BLOCK 3 module rerailer_block(){ cube(center=true,[section_length,section_width,track_height+under_tie_height]); } // BLOCK 4 module frog(){ polyhedron( points=[ [-frog_length/2,0,0], [-(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),(rail_spacing/2-rail_width-flange_clearance),0], [(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),(rail_spacing/2-rail_width-flange_clearance),0], [frog_length/2,0,0], [(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),-(rail_spacing/2-rail_width-flange_clearance),0], [-(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),-(rail_spacing/2-rail_width-flange_clearance),0], [-frog_length/2,0,track_height+under_tie_height], [-(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),(rail_spacing/2-rail_width-flange_clearance),track_height+under_tie_height], [(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),(rail_spacing/2-rail_width-flange_clearance),track_height+under_tie_height], [frog_length/2,0,track_height+under_tie_height], [(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),-(rail_spacing/2-rail_width-flange_clearance),track_height+under_tie_height], [-(rail_spacing/2-rail_width-flange_clearance)*tan(cross_angle),-(rail_spacing/2-rail_width-flange_clearance),track_height+under_tie_height] ], faces=[ [0,5,4,3,2,1], [0,6,11,5], [5,11,10,4], [4,10,9,3], [3,9,8,2], [2,8,7,1], [1,7,6,0], [6,7,8,9,10,11] ] ); } // BLOCK 5 module track(){ translate([0,-(rail_spacing-rail_width-flange_clearance)/2,0]) cube(center=true,[section_length*1.200,rail_width+flange_clearance,track_height]); translate([0,(rail_spacing-rail_width-flange_clearance)/2,0]) cube(center=true,[section_length*1.200,rail_width+flange_clearance,track_height]); for(t=[0:tie_spacing-tie_width:section_length*1.200]){ translate([(-section_length*1.200/2)+t,0,0]) cube(center=true,[tie_width,tie_length,track_height]); } }
f6027fdb-21a7-4bd9-97c0-9dfc09d2dc49
// BLOCK 1 thickness = 2; inner_radius = 12.500; ring_height = 7.500; ring_extra_angle = 2; clip_height = 12; clip_r = 2.500; clip_fit = 0.300; clip_opening = 90; clip_correction_rotation = 0; clip_thickness = 1; ring_slit = true; ring_slit_t = 0.400; ring_slit_connector_t = 1.200; ring_slit_connectors = 4; clip_circle_hollow = true; clip_hollow_thickness = 0.700; function angle_from_chord(chord_l, r) = (2 * asin(chord_l / (2 * r))); function straight_to_circle(t, r) = r - sqrt(pow(r, 2) + pow(t/2, 2)); magic = 0.000; angle_to_clip=360 - angle_from_chord(4 * clip_r + clip_fit * 2 + clip_thickness * 2 - clip_r / 2, inner_radius + thickness / 2) + ring_extra_angle; clip_angle = 360 - clip_opening; fillet_chord_length = clip_height - ring_height; angle_to_fillet = (2 * asin(fillet_chord_length / (2 * inner_radius))); rotate_extrude_to_fillet = angle_to_clip - 2 * angle_to_fillet; clip_angle_offset = angle_from_chord(clip_r + clip_fit + clip_thickness + straight_to_circle(thickness, clip_r), inner_radius + thickness / 2); latch_angle_offset = angle_from_chord(clip_r + straight_to_circle(thickness, clip_r), inner_radius + thickness / 2); $fn=$preview ? 30 : 100; // BLOCK 2 module ring(ir, t, h, a=360, round_cap = false) { adjusted_a = round_cap ? a - angle_from_chord(t, ir + t / 2) : a; if (round_cap) { rotate([0, 0, -(360 - adjusted_a) / 2]) translate([ir + t / 2, 0]) cylinder(r=t / 2, h=h); rotate([0, 0, (360 - adjusted_a) / 2]) translate([ir + t / 2, 0]) cylinder(r=t / 2, h=h); } rotate([0, 0, (360 - adjusted_a) / 2]) rotate_extrude(angle=adjusted_a) translate([ir, 0]) square([t, h]); } // BLOCK 3 module split_ring(ir, t, h, a=360, gap_t, gap_a) { sections = a/gap_a - 1; gap_t_a = angle_from_chord(gap_t, ir + t / 2); rotate([0, 0, (360 - a) / 2 + gap_t_a / 4]) { for (i = [0:sections]) { real_gap_t_a = i == sections || i == 0 ? gap_t_a / 2 : gap_t_a; section_a = gap_a - real_gap_t_a; rotate([0, 0, (-(360 - section_a) / 2) + i * gap_a]) ring(ir, t, h, section_a, round_cap=true); } } } // BLOCK 4 difference() { ring(inner_radius, thickness, clip_height, a=angle_to_clip + thickness / 2); if (ring_slit) { translate([0, 0, -magic / 2]) split_ring(inner_radius + thickness / 2 - ring_slit_t / 2, ring_slit_t, ring_height + magic, a=rotate_extrude_to_fillet, gap_t = ring_slit_connector_t, gap_a = rotate_extrude_to_fillet / (ring_slit_connectors + 1)); } translate([0, 0, ring_height]) ring(inner_radius - 1.500, thickness + 3, clip_height - ring_height + magic, rotate_extrude_to_fillet); translate([0, 0, clip_height]) rotate([0,90, (360 - angle_to_clip) / 2]) translate([0, clip_height - ring_height, 0]) cylinder(r=clip_height - ring_height, h=inner_radius + thickness + 3); translate([0, 0, clip_height]) rotate([0,90,-(360 - angle_to_clip) / 2]) translate([0, -(clip_height - ring_height), 0]) cylinder(r=clip_height - ring_height, h=inner_radius + thickness + 3); } rotate([0, 0, (360 - angle_to_clip) / 2 - clip_angle_offset]) translate([inner_radius + thickness / 2, 0, 0]) rotate([0, 0, 270 - clip_angle_offset + clip_correction_rotation]) ring(clip_r + clip_fit, clip_thickness, clip_height, a=clip_angle, round_cap=true); // BLOCK 5 rotate([0, 0, -((-angle_to_clip) / 2 - latch_angle_offset)]) translate([-(inner_radius + thickness / 2), 0, 0]) { if (!clip_circle_hollow) { cylinder(r=clip_r, h=clip_height); } else { ring(ir = clip_r - clip_hollow_thickness, t=clip_hollow_thickness, h=clip_height); } }
// BLOCK 1 thickness = 2; inner_radius = 12.500; ring_height = 7.500; ring_extra_angle = 2; clip_height = 12; clip_r = 2.500; clip_fit = 0.300; clip_opening = 90; clip_correction_rotation = 0; clip_thickness = 1; ring_slit = true; ring_slit_t = 0.400; ring_slit_connector_t = 1.200; ring_slit_connectors = 4; clip_circle_hollow = true; clip_hollow_thickness = 0.700; function angle_from_chord(chord_l, r) = (2 * asin(chord_l / (2 * r))); function straight_to_circle(t, r) = r - sqrt(pow(r, 2) + pow(t/2, 2)); magic = 0.000; angle_to_clip=360 - angle_from_chord(4 * clip_r + clip_fit * 2 + clip_thickness * 2 - clip_r / 2, inner_radius + thickness / 2) + ring_extra_angle; clip_angle = 360 - clip_opening; fillet_chord_length = clip_height - ring_height; angle_to_fillet = (2 * asin(fillet_chord_length / (2 * inner_radius))); rotate_extrude_to_fillet = angle_to_clip - 2 * angle_to_fillet; clip_angle_offset = angle_from_chord(clip_r + clip_fit + clip_thickness + straight_to_circle(thickness, clip_r), inner_radius + thickness / 2); latch_angle_offset = angle_from_chord(clip_r + straight_to_circle(thickness, clip_r), inner_radius + thickness / 2); $fn=$preview ? 30 : 100; // BLOCK 2 module ring(ir, t, h, a=360, round_cap = false) { adjusted_a = round_cap ? a - angle_from_chord(t, ir + t / 2) : a; if (round_cap) { rotate([0, 0, -(360 - adjusted_a) / 2]) translate([ir + t / 2, 0]) cylinder(r=t / 2, h=h); rotate([0, 0, (360 - adjusted_a) / 2]) translate([ir + t / 2, 0]) cylinder(r=t / 2, h=h); } rotate([0, 0, (360 - adjusted_a) / 2]) rotate_extrude(angle=adjusted_a) translate([ir, 0]) square([t, h]); } // BLOCK 3 module split_ring(ir, t, h, a=360, gap_t, gap_a) { sections = a/gap_a - 1; gap_t_a = angle_from_chord(gap_t, ir + t / 2); rotate([0, 0, (360 - a) / 2 + gap_t_a / 4]) { for (i = [0:sections]) { real_gap_t_a = i == sections || i == 0 ? gap_t_a / 2 : gap_t_a; section_a = gap_a - real_gap_t_a; rotate([0, 0, (-(360 - section_a) / 2) + i * gap_a]) ring(ir, t, h, section_a, round_cap=true); } } } // BLOCK 4 difference() { ring(inner_radius, thickness, clip_height, a=angle_to_clip + thickness / 2); if (ring_slit) { translate([0, 0, -magic / 2]) split_ring(inner_radius + thickness / 2 - ring_slit_t / 2, ring_slit_t, ring_height + magic, a=rotate_extrude_to_fillet, gap_t = ring_slit_connector_t, gap_a = rotate_extrude_to_fillet / (ring_slit_connectors + 1)); } translate([0, 0, ring_height]) ring(inner_radius - 1.500, thickness + 3, clip_height - ring_height + magic, rotate_extrude_to_fillet); translate([0, 0, clip_height]) rotate([0,90, (360 - angle_to_clip) / 2]) translate([0, clip_height - ring_height, 0]) cylinder(r=clip_height - ring_height, h=inner_radius + thickness + 3); translate([0, 0, clip_height]) rotate([0,90,-(360 - angle_to_clip) / 2]) translate([0, -(clip_height - ring_height), 0]) cylinder(r=clip_height - ring_height, h=inner_radius + thickness + 3); } rotate([0, 0, (360 - angle_to_clip) / 2 - clip_angle_offset]) translate([inner_radius + thickness / 2, 0, 0]) rotate([0, 0, 270 - clip_angle_offset + clip_correction_rotation]) ring(clip_r + clip_fit, clip_thickness, clip_height, a=clip_angle, round_cap=true); // BLOCK 5 rotate([0, 0, -((-angle_to_clip) / 2 - latch_angle_offset)]) translate([-(inner_radius + thickness / 2), 0, 0]) { if (!clip_circle_hollow) { cylinder(r=clip_r, h=clip_height); } else { ring(ir = clip_r - clip_hollow_thickness, t=clip_hollow_thickness, h=clip_height); } }
3c219577-e6d2-4f55-9bd2-42248871d084
// BLOCK 1 EnableDebug = true; HexBitClearance = 0; HexBitFaceToFaceWidth = 0.250 * 25.400 + HexBitClearance; HexBitTipToTipWidth = HexBitFaceToFaceWidth / sin(60); if( EnableDebug ) { echo(str("HexBitFaceToFaceWidth: ", HexBitFaceToFaceWidth)); echo(str("HexBitTipToTipWidth: ", HexBitTipToTipWidth)); } function arraySum(theArray, index = 0, currentSum = 0) = index < len(theArray) ? arraySum(theArray, index + 1, currentSum + theArray[index]) : currentSum; function partialArraySum(theArray, upperLimit, index = 0, currentSum = 0) = index <= upperLimit ? partialArraySum(theArray, upperLimit, index + 1, currentSum + theArray[index]) : currentSum; TabAngle = 2.700; TabBottomOuterWidth = 6; TabBottomInnerWidth = 4; TabTickness = 2; TabDistance = 11.700; TabTotalTickness = TabTickness + 2; function maximizeTabNumber(pLength, pTabTopOuterWidth, pTabDistance) = floor((pLength - pTabTopOuterWidth) / pTabDistance) + 1; TabTopWidthDifference = (InsertHeight * tan(TabAngle)) * 2; TabTopOuterWidth = TabBottomOuterWidth + TabTopWidthDifference; TabTopInnerWidth = TabBottomInnerWidth + TabTopWidthDifference; if( EnableDebug ) { echo(str("TabTopWidthDifference: ", TabTopWidthDifference)); echo(str("TabTopOuterWidth: ", TabTopOuterWidth)); echo(str("TabTopInnerWidth: ", TabTopInnerWidth)); } // BLOCK 2 module generateTab() { translate([-TabTickness / 2, -TabTopOuterWidth / 2, 0]) hull() { translate([0, TabTopWidthDifference / 2, 0]) linear_extrude(0.010) polygon([[0, 0], [0, TabBottomOuterWidth], [TabTickness, (TabBottomOuterWidth - (TabBottomOuterWidth - TabBottomInnerWidth) / 2) ], [TabTickness, (TabBottomOuterWidth - TabBottomInnerWidth) / 2]]); translate([0, 0, InsertHeight]) linear_extrude(0.010) polygon([[0, 0], [0, TabTopOuterWidth], [TabTickness, (TabTopOuterWidth - (TabTopOuterWidth - TabTopInnerWidth) / 2) ], [TabTickness, (TabTopOuterWidth - TabTopInnerWidth) / 2]]); } } // BLOCK 3 module generateTabTest() { TabTestWidth = 25; union() { translate([0, -TabTestWidth / 2, 0]) cube([10, TabTestWidth, InsertHeight]); translate([10 + TabTickness / 2, -TabDistance / 2, 0]) rotate([0, 0, 180]) generateTab(); translate([10 + TabTickness / 2, TabDistance / 2, 0]) rotate([0, 0, 180]) generateTab(); } } generateTabTest();
// BLOCK 1 EnableDebug = true; HexBitClearance = 0; HexBitFaceToFaceWidth = 0.250 * 25.400 + HexBitClearance; HexBitTipToTipWidth = HexBitFaceToFaceWidth / sin(60); if( EnableDebug ) { echo(str("HexBitFaceToFaceWidth: ", HexBitFaceToFaceWidth)); echo(str("HexBitTipToTipWidth: ", HexBitTipToTipWidth)); } function arraySum(theArray, index = 0, currentSum = 0) = index < len(theArray) ? arraySum(theArray, index + 1, currentSum + theArray[index]) : currentSum; function partialArraySum(theArray, upperLimit, index = 0, currentSum = 0) = index <= upperLimit ? partialArraySum(theArray, upperLimit, index + 1, currentSum + theArray[index]) : currentSum; TabAngle = 2.700; TabBottomOuterWidth = 6; TabBottomInnerWidth = 4; TabTickness = 2; TabDistance = 11.700; TabTotalTickness = TabTickness + 2; function maximizeTabNumber(pLength, pTabTopOuterWidth, pTabDistance) = floor((pLength - pTabTopOuterWidth) / pTabDistance) + 1; TabTopWidthDifference = (InsertHeight * tan(TabAngle)) * 2; TabTopOuterWidth = TabBottomOuterWidth + TabTopWidthDifference; TabTopInnerWidth = TabBottomInnerWidth + TabTopWidthDifference; if( EnableDebug ) { echo(str("TabTopWidthDifference: ", TabTopWidthDifference)); echo(str("TabTopOuterWidth: ", TabTopOuterWidth)); echo(str("TabTopInnerWidth: ", TabTopInnerWidth)); } // BLOCK 2 module generateTab() { translate([-TabTickness / 2, -TabTopOuterWidth / 2, 0]) hull() { translate([0, TabTopWidthDifference / 2, 0]) linear_extrude(0.010) polygon([[0, 0], [0, TabBottomOuterWidth], [TabTickness, (TabBottomOuterWidth - (TabBottomOuterWidth - TabBottomInnerWidth) / 2) ], [TabTickness, (TabBottomOuterWidth - TabBottomInnerWidth) / 2]]); translate([0, 0, InsertHeight]) linear_extrude(0.010) polygon([[0, 0], [0, TabTopOuterWidth], [TabTickness, (TabTopOuterWidth - (TabTopOuterWidth - TabTopInnerWidth) / 2) ], [TabTickness, (TabTopOuterWidth - TabTopInnerWidth) / 2]]); } } // BLOCK 3 module generateTabTest() { TabTestWidth = 25; union() { translate([0, -TabTestWidth / 2, 0]) cube([10, TabTestWidth, InsertHeight]); translate([10 + TabTickness / 2, -TabDistance / 2, 0]) rotate([0, 0, 180]) generateTab(); translate([10 + TabTickness / 2, TabDistance / 2, 0]) rotate([0, 0, 180]) generateTab(); } } generateTabTest();
484dbe33-3739-4a04-acb4-007c91fa966c
// BLOCK 1 $fn=512; union() { // BLOCK 2 difference() { union() { cylinder(d = 10, h = 2); cylinder(d = 9, h = 2.500); } cylinder(center = true, d = 8, h = 6); } translate(v = [5.500, 0, 2.500]) { rotate(a = [0, -130, 0]) { union() { rotate(a = [90, 0, 0]) { rotate_extrude(angle = 50) { translate(v = [5.500, 0]) { // BLOCK 3 difference() { circle(d = 9); circle(d = 8); } } } } translate(v = [5.500, 0, -2]) { union() { // BLOCK 4 difference() { cylinder(d = 9, h = 2); cylinder(center = true, d = 8, h = 6); } // BLOCK 5 cylinder(d = 9, h = 5); } } } } } }
// BLOCK 1 $fn=512; union() { // BLOCK 2 difference() { union() { cylinder(d = 10, h = 2); cylinder(d = 9, h = 2.500); } cylinder(center = true, d = 8, h = 6); } translate(v = [5.500, 0, 2.500]) { rotate(a = [0, -130, 0]) { union() { rotate(a = [90, 0, 0]) { rotate_extrude(angle = 50) { translate(v = [5.500, 0]) { // BLOCK 3 difference() { circle(d = 9); circle(d = 8); } } } } translate(v = [5.500, 0, -2]) { union() { // BLOCK 4 difference() { cylinder(d = 9, h = 2); cylinder(center = true, d = 8, h = 6); } // BLOCK 5 cylinder(d = 9, h = 5); } } } } } }
33867373-00bd-41da-b51e-094f41d41bf9
// BLOCK 1 width = 50; layer_height = 0.200; layers_per_colour = 3; $fn = 256; a = width; b = 0.034 * a; c = 0.166 * a; d = 0.300 * a; e = 0.364 * a; f = 0.520 * a; g = 0.530 * a; h = a - e; i = b + 2 * (c + d); stratum = layer_height * layers_per_colour; to_navy = layers_per_colour + 1; to_navy_z = to_navy * layer_height; to_red = 2 * layers_per_colour + 1; to_red_z = to_red * layer_height; // BLOCK 2 module logo_c() { difference() { translate([i / 2, i / 2])difference() { circle(d = i); scale([g / f, f / f])circle(d = f); } translate([h , 0])square(a); } } // BLOCK 3 module logo_up() { polygon([ [h, i - d - c ], [h, i - d ], [a, i - d ], [a - c, i - d - c ] ]); } // BLOCK 4 module logo_lo() { polygon([ [h, d ], [h, d + c ], [a - c, d + c ], [a, d ] ]); } // BLOCK 5 module everything() { union() { logo_c(); logo_up(); logo_lo(); } } // BLOCK 6 module base() { offset(r = b)everything(); } // BLOCK 7 module navy_bits() { union() { logo_c(); logo_up(); } } // BLOCK 8 module red_bits() { logo_lo(); } function fmt(x) = round(x * 10) / 10; // BLOCK 9 module info() { echo("****************************************"); echo(str("Output dimensions / mm:\t", fmt(a + 2 * b), " x ", fmt(i + 2 * b), " x ", fmt(3 * stratum))); echo(str("Logo dimensions / mm:\t", fmt(a), " x ", fmt(i))); echo(str("Layer count:\t\t", 3 * layers_per_colour)); echo(str("Layer height / mm:\t", layer_height)); echo(str(" 1) change filament to navy blue at layer ", to_navy, " (z=",fmt(to_navy_z), " mm)")); echo(str(" 2) change filament to red at layer ", to_red, " (z=",fmt(to_red_z), " mm)")); echo("****************************************"); } // BLOCK 10 module logo_3d() { translate([b, b, 0])union() { linear_extrude(height = 1 * stratum)base(); linear_extrude(height = 2 * stratum)navy_bits(); linear_extrude(height = 3 * stratum)red_bits(); } } logo_3d(); info();
// BLOCK 1 width = 50; layer_height = 0.200; layers_per_colour = 3; $fn = 256; a = width; b = 0.034 * a; c = 0.166 * a; d = 0.300 * a; e = 0.364 * a; f = 0.520 * a; g = 0.530 * a; h = a - e; i = b + 2 * (c + d); stratum = layer_height * layers_per_colour; to_navy = layers_per_colour + 1; to_navy_z = to_navy * layer_height; to_red = 2 * layers_per_colour + 1; to_red_z = to_red * layer_height; // BLOCK 2 module logo_c() { difference() { translate([i / 2, i / 2])difference() { circle(d = i); scale([g / f, f / f])circle(d = f); } translate([h , 0])square(a); } } // BLOCK 3 module logo_up() { polygon([ [h, i - d - c ], [h, i - d ], [a, i - d ], [a - c, i - d - c ] ]); } // BLOCK 4 module logo_lo() { polygon([ [h, d ], [h, d + c ], [a - c, d + c ], [a, d ] ]); } // BLOCK 5 module everything() { union() { logo_c(); logo_up(); logo_lo(); } } // BLOCK 6 module base() { offset(r = b)everything(); } // BLOCK 7 module navy_bits() { union() { logo_c(); logo_up(); } } // BLOCK 8 module red_bits() { logo_lo(); } function fmt(x) = round(x * 10) / 10; // BLOCK 9 module info() { echo("****************************************"); echo(str("Output dimensions / mm:\t", fmt(a + 2 * b), " x ", fmt(i + 2 * b), " x ", fmt(3 * stratum))); echo(str("Logo dimensions / mm:\t", fmt(a), " x ", fmt(i))); echo(str("Layer count:\t\t", 3 * layers_per_colour)); echo(str("Layer height / mm:\t", layer_height)); echo(str(" 1) change filament to navy blue at layer ", to_navy, " (z=",fmt(to_navy_z), " mm)")); echo(str(" 2) change filament to red at layer ", to_red, " (z=",fmt(to_red_z), " mm)")); echo("****************************************"); } // BLOCK 10 module logo_3d() { translate([b, b, 0])union() { linear_extrude(height = 1 * stratum)base(); linear_extrude(height = 2 * stratum)navy_bits(); linear_extrude(height = 3 * stratum)red_bits(); } } logo_3d(); info();
e26bc09e-ac4d-45b5-883b-0959eb943d50
// BLOCK 1 clearance=0.200; shim=0.005; $fn=30; bridgeThickness=5; rise=60; footX=30; footY=footX; hookRad=2; // BLOCK 2 module hook(subtract=false){ thickness=bridgeThickness + (subtract ? 2*clearance : clearance); side=2*(bridgeThickness-hookRad + (subtract ? clearance :0)); translate([hookRad,hookRad,0]) difference() { minkowski() { cube([side,side,thickness/2]); cylinder(r=hookRad,h=thickness/2); } holeD=bridgeThickness+(subtract ? -clearance : clearance); translate([(side)/2,(side)/2,-shim]) cylinder(d=holeD,h=thickness+2*shim); translate([side/2,(side-holeD)/2,-shim]) cube([side,holeD,thickness+2*shim]); } if (subtract) { translate([-clearance-shim,0,0]) cube([hookRad,2*(bridgeThickness+clearance),thickness]); } } // BLOCK 3 module bridge(len=60,subtract=false) { hook(subtract); translate([0,bridgeThickness+hookRad+3.500*clearance,0]) { translate([(subtract ? - hookRad : 0),0,0]) cube([2*(bridgeThickness + (subtract ? clearance+hookRad/2 : 0)),len,bridgeThickness+(subtract ? 2*clearance : clearance) ]); translate([0,len-(hookRad+1.500*clearance),0]) hook(subtract); } } function sqr(x) = (x*x); rad=3; cX=footX-rad; cY=footY-rad; // BLOCK 4 module positionHook(tx,ty,rz) { translate([cX/2+tx,cY/2+ty,(rise-clearance)]) rotate([0,0,rz]) translate([-bridgeThickness/2-clearance,0,0]) rotate([0,90,0]) { bridge(subtract=true); } } // BLOCK 5 module foot(notches,topAdd=0) { difference() { minkowski() { cube([cX,cY,(rise+topAdd)/2]); cylinder(r=rad,h=(rise+topAdd)/2); } t90 = rad/2-2*(bridgeThickness+clearance)-2*clearance+bridgeThickness-hookRad; if (notches[0] && 1) positionHook(0,footY/2+t90,0); if (notches[1] && 1) positionHook(-(footX/2+t90),0,90); if (notches[2] && 1) positionHook(0,-(footY/2+t90),180); if (notches[3] && 1) positionHook(footX/2+t90,0,270); t45=-sqrt(sqr(t90)/2); dx45 = sqrt( sqr(footX/2) /2); if (notches[4] && 1) positionHook(-(dx45+t45),dx45+t45,45); if (notches[5] && 1) positionHook(-(dx45+t45),-(dx45+t45),135); if (notches[6] && 1) positionHook(dx45+t45,-(dx45+t45),225); if (notches[7] && 1) positionHook(dx45+t45,dx45+t45,315); } } bridge(len=155-footX);
// BLOCK 1 clearance=0.200; shim=0.005; $fn=30; bridgeThickness=5; rise=60; footX=30; footY=footX; hookRad=2; // BLOCK 2 module hook(subtract=false){ thickness=bridgeThickness + (subtract ? 2*clearance : clearance); side=2*(bridgeThickness-hookRad + (subtract ? clearance :0)); translate([hookRad,hookRad,0]) difference() { minkowski() { cube([side,side,thickness/2]); cylinder(r=hookRad,h=thickness/2); } holeD=bridgeThickness+(subtract ? -clearance : clearance); translate([(side)/2,(side)/2,-shim]) cylinder(d=holeD,h=thickness+2*shim); translate([side/2,(side-holeD)/2,-shim]) cube([side,holeD,thickness+2*shim]); } if (subtract) { translate([-clearance-shim,0,0]) cube([hookRad,2*(bridgeThickness+clearance),thickness]); } } // BLOCK 3 module bridge(len=60,subtract=false) { hook(subtract); translate([0,bridgeThickness+hookRad+3.500*clearance,0]) { translate([(subtract ? - hookRad : 0),0,0]) cube([2*(bridgeThickness + (subtract ? clearance+hookRad/2 : 0)),len,bridgeThickness+(subtract ? 2*clearance : clearance) ]); translate([0,len-(hookRad+1.500*clearance),0]) hook(subtract); } } function sqr(x) = (x*x); rad=3; cX=footX-rad; cY=footY-rad; // BLOCK 4 module positionHook(tx,ty,rz) { translate([cX/2+tx,cY/2+ty,(rise-clearance)]) rotate([0,0,rz]) translate([-bridgeThickness/2-clearance,0,0]) rotate([0,90,0]) { bridge(subtract=true); } } // BLOCK 5 module foot(notches,topAdd=0) { difference() { minkowski() { cube([cX,cY,(rise+topAdd)/2]); cylinder(r=rad,h=(rise+topAdd)/2); } t90 = rad/2-2*(bridgeThickness+clearance)-2*clearance+bridgeThickness-hookRad; if (notches[0] && 1) positionHook(0,footY/2+t90,0); if (notches[1] && 1) positionHook(-(footX/2+t90),0,90); if (notches[2] && 1) positionHook(0,-(footY/2+t90),180); if (notches[3] && 1) positionHook(footX/2+t90,0,270); t45=-sqrt(sqr(t90)/2); dx45 = sqrt( sqr(footX/2) /2); if (notches[4] && 1) positionHook(-(dx45+t45),dx45+t45,45); if (notches[5] && 1) positionHook(-(dx45+t45),-(dx45+t45),135); if (notches[6] && 1) positionHook(dx45+t45,-(dx45+t45),225); if (notches[7] && 1) positionHook(dx45+t45,dx45+t45,315); } } bridge(len=155-footX);
d86816ad-ef94-46bd-9d47-3c3d982e3af0
// BLOCK 1 First_pipe_outer_diameter = 20; First_pipe_inner_diameter = 16; Second_pipe_outer_diameter = 30; Second_pipe_inner_diameter = 24; Minimum_wall_thickness = 2; Printer_x_y_tolerance = 0.000; Extra_inner_length = 5; Seperation = 0; Quality = 5; // BLOCK 2 module draw (aro,ari,aol,ail,bro,bri,bol,bil,w,t,x,s,q,i,o) { fn = 5*(max(aro,bro)+w); if (i) { if (o) { color("Red") rotate_extrude($fn = fn) polygon(points=[ [bri-w,0], [bri-w,bil+w], [ari-w,ail+bil+2*w+s], [ari,ail+bil+2*w+s], [ari,bil+2*w+s], [aro,bil+2*w+s], [aro,bil+aol+2*w+s], [aro+w,bil+aol+2*w+s], [aro+w,bil+2*w+s], [bro+w,bil-bol], [bro,bil-bol], [bro,bil], [bri,bil], [bri,0] ]); } else { color("Yellow") rotate_extrude($fn = fn) polygon(points=[ [bri-w,0], [ari-w,bil+w+s], [ari-w,ail+bil+2*w+s], [ari,ail+bil+2*w+s], [ari,bil+2*w+s], [aro,bil+2*w+s], [aro,bil+aol+2*w+s], [aro+w,bil+aol+2*w+s], [aro+w,bil+2*w+s], [bro+w,bil-bol], [bro,bil-bol], [bro,bil], [bri,bil], [bri,0] ]); }; } else { if (o) { color("Lime") rotate_extrude($fn = fn) polygon(points=[ [bri-w,0], [bri-w,bil+w], [ari-w,ail+bil+2*w+s], [ari,ail+bil+2*w+s], [ari,bil+2*w+s], [aro,bil+2*w+s], [aro,bil+aol+2*w+s], [aro+w,bil+aol+2*w+s], [bro+w,bil], [bro+w,bil-bol], [bro,bil-bol], [bro,bil], [bri,bil], [bri,0] ]); } else { color("Blue") rotate_extrude($fn = fn) polygon(points=[ [bri-w,0], [ari-w,bil+w+s], [ari-w,ail+bil+2*w+s], [ari,ail+bil+2*w+s], [ari,bil+2*w+s], [aro,bil+2*w+s], [aro,bil+aol+2*w+s], [aro+w,bil+aol+2*w+s], [bro+w,bil], [bro+w,bil-bol], [bro,bil-bol], [bro,bil], [bri,bil], [bri,0] ]); }; }; }; draw( Printer_x_y_tolerance+First_pipe_outer_diameter/2, -Printer_x_y_tolerance+First_pipe_inner_diameter/2, First_pipe_outer_diameter/2, First_pipe_outer_diameter/2+Extra_inner_length, Printer_x_y_tolerance+Second_pipe_outer_diameter/2, -Printer_x_y_tolerance+Second_pipe_inner_diameter/2, Second_pipe_outer_diameter/2, Second_pipe_outer_diameter/2+Extra_inner_length, Minimum_wall_thickness, Printer_x_y_tolerance, Extra_inner_length, Seperation, Quality, First_pipe_outer_diameter>=Second_pipe_outer_diameter, First_pipe_inner_diameter>=Second_pipe_inner_diameter );
// BLOCK 1 First_pipe_outer_diameter = 20; First_pipe_inner_diameter = 16; Second_pipe_outer_diameter = 30; Second_pipe_inner_diameter = 24; Minimum_wall_thickness = 2; Printer_x_y_tolerance = 0.000; Extra_inner_length = 5; Seperation = 0; Quality = 5; // BLOCK 2 module draw (aro,ari,aol,ail,bro,bri,bol,bil,w,t,x,s,q,i,o) { fn = 5*(max(aro,bro)+w); if (i) { if (o) { color("Red") rotate_extrude($fn = fn) polygon(points=[ [bri-w,0], [bri-w,bil+w], [ari-w,ail+bil+2*w+s], [ari,ail+bil+2*w+s], [ari,bil+2*w+s], [aro,bil+2*w+s], [aro,bil+aol+2*w+s], [aro+w,bil+aol+2*w+s], [aro+w,bil+2*w+s], [bro+w,bil-bol], [bro,bil-bol], [bro,bil], [bri,bil], [bri,0] ]); } else { color("Yellow") rotate_extrude($fn = fn) polygon(points=[ [bri-w,0], [ari-w,bil+w+s], [ari-w,ail+bil+2*w+s], [ari,ail+bil+2*w+s], [ari,bil+2*w+s], [aro,bil+2*w+s], [aro,bil+aol+2*w+s], [aro+w,bil+aol+2*w+s], [aro+w,bil+2*w+s], [bro+w,bil-bol], [bro,bil-bol], [bro,bil], [bri,bil], [bri,0] ]); }; } else { if (o) { color("Lime") rotate_extrude($fn = fn) polygon(points=[ [bri-w,0], [bri-w,bil+w], [ari-w,ail+bil+2*w+s], [ari,ail+bil+2*w+s], [ari,bil+2*w+s], [aro,bil+2*w+s], [aro,bil+aol+2*w+s], [aro+w,bil+aol+2*w+s], [bro+w,bil], [bro+w,bil-bol], [bro,bil-bol], [bro,bil], [bri,bil], [bri,0] ]); } else { color("Blue") rotate_extrude($fn = fn) polygon(points=[ [bri-w,0], [ari-w,bil+w+s], [ari-w,ail+bil+2*w+s], [ari,ail+bil+2*w+s], [ari,bil+2*w+s], [aro,bil+2*w+s], [aro,bil+aol+2*w+s], [aro+w,bil+aol+2*w+s], [bro+w,bil], [bro+w,bil-bol], [bro,bil-bol], [bro,bil], [bri,bil], [bri,0] ]); }; }; }; draw( Printer_x_y_tolerance+First_pipe_outer_diameter/2, -Printer_x_y_tolerance+First_pipe_inner_diameter/2, First_pipe_outer_diameter/2, First_pipe_outer_diameter/2+Extra_inner_length, Printer_x_y_tolerance+Second_pipe_outer_diameter/2, -Printer_x_y_tolerance+Second_pipe_inner_diameter/2, Second_pipe_outer_diameter/2, Second_pipe_outer_diameter/2+Extra_inner_length, Minimum_wall_thickness, Printer_x_y_tolerance, Extra_inner_length, Seperation, Quality, First_pipe_outer_diameter>=Second_pipe_outer_diameter, First_pipe_inner_diameter>=Second_pipe_inner_diameter );
11326824-1f42-4080-a7d0-3ed64e2da4ce
// BLOCK 1 Height = 32; BackThickness = 2; Depth = 75; FilletRadius = 6; ArmThickness = 2; ArmWidth = 12; AngleDegrees = 45; AngledLength = 5; SlotWidth = 7; SlotCount = 9; $fn = 50; HoleStyle = 1; BoltDiameter = 4; BoltHeadDiameter = 8; BoltCount = 3; TotalLength = SlotCount * SlotWidth + ArmWidth * (SlotCount + 1); HoleInset = (Height - FilletRadius) / 2; DepthLessAngle = Depth - AngledLength * cos(AngleDegrees); // BLOCK 2 module KeyHole(dlarge,dsmall,depth) { err = 0.010; translate([0,0,-err/2]) { cylinder(h=depth + err,d=dsmall); translate([0,dlarge,0]) cylinder(h=depth + err,d=dlarge); translate([0,dlarge / 2, (depth + err) / 2]) cube([dsmall, dlarge, depth + err], center = true); } } // BLOCK 3 module insidefillet(r, length) { err = 0.010; difference () { translate([0,r/2,r/2]) cube([length,r,r], center=true); translate([0,r,r]) rotate([0,90,0]) cylinder(h=length+2*err, r=r, center=true); } } // BLOCK 4 module outsidefillet(r, length) { err = 0.010; translate([length / 2,0,0]) difference () { translate([0,r,r]) cube([length+err,r*2,r*2], center=true); rotate([0,90,0]) cylinder(h=length+2*err, r=r, center=true); } } err = 0.010; // BLOCK 5 difference() { union() { translate([-TotalLength/2,0,0]) { cube([TotalLength,BackThickness,Height]); cube([TotalLength, DepthLessAngle, ArmThickness]); translate([0,DepthLessAngle]) rotate([AngleDegrees,0,0]) cube([TotalLength, AngledLength, ArmThickness]); } translate([0,BackThickness-err,ArmThickness-err]) insidefillet(FilletRadius, TotalLength); } translate([TotalLength / 2 - HoleInset, 0, Height - HoleInset]) rotate([90,0,90]) outsidefillet(HoleInset, BackThickness + err); translate([-TotalLength / 2 + HoleInset, 0, Height - HoleInset]) rotate([0,0,90]) outsidefillet(HoleInset, BackThickness + err); totalBoltDistance = TotalLength - HoleInset * 2; for (offset = [0: totalBoltDistance / (BoltCount - 1): totalBoltDistance]) { if (HoleStyle == 2) translate([-TotalLength / 2 + HoleInset + offset, 0, Height - HoleInset]) rotate([-90,0,0]) KeyHole(BoltHeadDiameter, BoltDiameter, BackThickness+FilletRadius*2); else if (HoleStyle == 1) translate([-TotalLength / 2 + HoleInset + offset, -err, Height - HoleInset]) rotate([-90,0,0]) cylinder(h = BackThickness + err * 2, d = BoltDiameter); } for(i = [1:SlotCount]) { translate([-TotalLength / 2 + ArmWidth + (i-1) * (ArmWidth + SlotWidth), BackThickness + FilletRadius + SlotWidth / 2, -err]) union() { translate([SlotWidth/2, 0, 0]) cylinder(h = ArmThickness + AngledLength + err*2, d = SlotWidth); cube([SlotWidth, Depth, ArmThickness + AngledLength + err*2]); } } }
// BLOCK 1 Height = 32; BackThickness = 2; Depth = 75; FilletRadius = 6; ArmThickness = 2; ArmWidth = 12; AngleDegrees = 45; AngledLength = 5; SlotWidth = 7; SlotCount = 9; $fn = 50; HoleStyle = 1; BoltDiameter = 4; BoltHeadDiameter = 8; BoltCount = 3; TotalLength = SlotCount * SlotWidth + ArmWidth * (SlotCount + 1); HoleInset = (Height - FilletRadius) / 2; DepthLessAngle = Depth - AngledLength * cos(AngleDegrees); // BLOCK 2 module KeyHole(dlarge,dsmall,depth) { err = 0.010; translate([0,0,-err/2]) { cylinder(h=depth + err,d=dsmall); translate([0,dlarge,0]) cylinder(h=depth + err,d=dlarge); translate([0,dlarge / 2, (depth + err) / 2]) cube([dsmall, dlarge, depth + err], center = true); } } // BLOCK 3 module insidefillet(r, length) { err = 0.010; difference () { translate([0,r/2,r/2]) cube([length,r,r], center=true); translate([0,r,r]) rotate([0,90,0]) cylinder(h=length+2*err, r=r, center=true); } } // BLOCK 4 module outsidefillet(r, length) { err = 0.010; translate([length / 2,0,0]) difference () { translate([0,r,r]) cube([length+err,r*2,r*2], center=true); rotate([0,90,0]) cylinder(h=length+2*err, r=r, center=true); } } err = 0.010; // BLOCK 5 difference() { union() { translate([-TotalLength/2,0,0]) { cube([TotalLength,BackThickness,Height]); cube([TotalLength, DepthLessAngle, ArmThickness]); translate([0,DepthLessAngle]) rotate([AngleDegrees,0,0]) cube([TotalLength, AngledLength, ArmThickness]); } translate([0,BackThickness-err,ArmThickness-err]) insidefillet(FilletRadius, TotalLength); } translate([TotalLength / 2 - HoleInset, 0, Height - HoleInset]) rotate([90,0,90]) outsidefillet(HoleInset, BackThickness + err); translate([-TotalLength / 2 + HoleInset, 0, Height - HoleInset]) rotate([0,0,90]) outsidefillet(HoleInset, BackThickness + err); totalBoltDistance = TotalLength - HoleInset * 2; for (offset = [0: totalBoltDistance / (BoltCount - 1): totalBoltDistance]) { if (HoleStyle == 2) translate([-TotalLength / 2 + HoleInset + offset, 0, Height - HoleInset]) rotate([-90,0,0]) KeyHole(BoltHeadDiameter, BoltDiameter, BackThickness+FilletRadius*2); else if (HoleStyle == 1) translate([-TotalLength / 2 + HoleInset + offset, -err, Height - HoleInset]) rotate([-90,0,0]) cylinder(h = BackThickness + err * 2, d = BoltDiameter); } for(i = [1:SlotCount]) { translate([-TotalLength / 2 + ArmWidth + (i-1) * (ArmWidth + SlotWidth), BackThickness + FilletRadius + SlotWidth / 2, -err]) union() { translate([SlotWidth/2, 0, 0]) cylinder(h = ArmThickness + AngledLength + err*2, d = SlotWidth); cube([SlotWidth, Depth, ArmThickness + AngledLength + err*2]); } } }
e441ef82-b916-40aa-a911-111607a80b54
// BLOCK 1 $fn=123; translate([0,0,3+24]) rotate([180,0,0]) union() { // BLOCK 2 difference() { union() { cylinder(r1=20/2+1.500, r2=20/2+1, h=3); translate([0,0,3]) cylinder(r1=20/2+1, r2=18/2-0.250, h=2); translate([0,0,3-0.010]) cylinder(r1=18/2+0.250, r2=18/2, h=24.010); } translate([0,0,3]) cylinder(r=12/2, h=24.010); } // BLOCK 3 difference() { union() { translate([-3.100,0,0]) hull() { translate([-3/2, -15/2, 0]) cube([3, 15, 0.100]); translate([-3/2, 0, -15/2-2]) rotate([0,90,0]) cylinder(r=15/2, h=3); } translate([-3.100,0,0]) hull() { translate([-3/2-0.500, -15/2-0.500, 0]) cube([3+1, 15+1, 0.100]); translate([-3/2, -15/2, -1]) cube([3, 15, 0.100]); } translate([+3.100,0,0]) hull() { translate([-3/2, -15/2, 0]) cube([3, 15, 0.100]); translate([-3/2, 0, -15/2-2]) rotate([0,90,0]) cylinder(r=15/2, h=3); } translate([+3.100,0,0]) hull() { translate([-3/2-0.500, -15/2-0.500, 0]) cube([3+1, 15+1, 0.100]); translate([-3/2, -15/2, -1]) cube([3, 15, 0.100]); } } translate([15/2, 0, -15/2-2]) rotate([0,-90,0]) cylinder(r=5.200/2, h=15); } }
// BLOCK 1 $fn=123; translate([0,0,3+24]) rotate([180,0,0]) union() { // BLOCK 2 difference() { union() { cylinder(r1=20/2+1.500, r2=20/2+1, h=3); translate([0,0,3]) cylinder(r1=20/2+1, r2=18/2-0.250, h=2); translate([0,0,3-0.010]) cylinder(r1=18/2+0.250, r2=18/2, h=24.010); } translate([0,0,3]) cylinder(r=12/2, h=24.010); } // BLOCK 3 difference() { union() { translate([-3.100,0,0]) hull() { translate([-3/2, -15/2, 0]) cube([3, 15, 0.100]); translate([-3/2, 0, -15/2-2]) rotate([0,90,0]) cylinder(r=15/2, h=3); } translate([-3.100,0,0]) hull() { translate([-3/2-0.500, -15/2-0.500, 0]) cube([3+1, 15+1, 0.100]); translate([-3/2, -15/2, -1]) cube([3, 15, 0.100]); } translate([+3.100,0,0]) hull() { translate([-3/2, -15/2, 0]) cube([3, 15, 0.100]); translate([-3/2, 0, -15/2-2]) rotate([0,90,0]) cylinder(r=15/2, h=3); } translate([+3.100,0,0]) hull() { translate([-3/2-0.500, -15/2-0.500, 0]) cube([3+1, 15+1, 0.100]); translate([-3/2, -15/2, -1]) cube([3, 15, 0.100]); } } translate([15/2, 0, -15/2-2]) rotate([0,-90,0]) cylinder(r=5.200/2, h=15); } }
e675068c-222a-4201-ac74-11868b4044f1
// BLOCK 1 bl = 30; bw = 16; bh = 20; th = 3; sd = 3; sl = 15; cr = 0.600; dmin = th*pow(2, 0.500); delta_d = cr*th; cw = 2*(dmin + delta_d); echo(str("corner overflow = ", delta_d, " mm.")); tol = 0.500; if (bw-2*th < sd + tol) { echo("*** Bad design *** ~> Your screws will not fit!"); echo("Note that bw = ", bw, " mm and th = ", th, " mm."); echo("So bw-2*th = ", bw-2*th, " mm. That's too low!"); } translate([0, 0, bh]) rotate([180,0,0]) // BLOCK 2 difference(){ translate([0, 0, bh]) rotate([0,90,-90]) color([0.800, 0.500, 0.200, 0.500]) union() { difference() { linear_extrude(height = bw, center = true) polygon(points = [[0,0], [bh,0], [0,bl]], paths = [[0,1,2]]); translate([th, th, 0]) linear_extrude(height = bw-2*th, center = true) polygon(points = [[0,0], [bh,0], [0,bl]], paths = [[0,1,2]]); } intersection(){ rotate([0, 0, 45]) cube([cw, cw, bw], center = true); translate([0, 0, -bw/2]) cube([cw, cw, bw]); } } translate([th+2/15*sl, 0, bh/2]) rotate([0,-90,0]) color([1,1,0,0.500]) screw(sd, sl); translate([bl/2, 0, bh-(th+2/15*sl)]) color([1,1,0,0.500]) screw(sd, sl); } // BLOCK 3 module screw(d, l) { r = d/2; $fn = 20; union() { cylinder(h=2/15*l, r1=r+2.500, r2=r+1); translate([0, 0, 2/15*l]) cylinder(h=1/15*l, r1=r+1, r2=r+0.500); translate([0, 0, 3/15*l]) cylinder(h=11/15*l, r=r+0.500); translate([0, 0, 14/15*l]) cylinder(h=1/15*l, r1=r+0.500, r2=0); } }
// BLOCK 1 bl = 30; bw = 16; bh = 20; th = 3; sd = 3; sl = 15; cr = 0.600; dmin = th*pow(2, 0.500); delta_d = cr*th; cw = 2*(dmin + delta_d); echo(str("corner overflow = ", delta_d, " mm.")); tol = 0.500; if (bw-2*th < sd + tol) { echo("*** Bad design *** ~> Your screws will not fit!"); echo("Note that bw = ", bw, " mm and th = ", th, " mm."); echo("So bw-2*th = ", bw-2*th, " mm. That's too low!"); } translate([0, 0, bh]) rotate([180,0,0]) // BLOCK 2 difference(){ translate([0, 0, bh]) rotate([0,90,-90]) color([0.800, 0.500, 0.200, 0.500]) union() { difference() { linear_extrude(height = bw, center = true) polygon(points = [[0,0], [bh,0], [0,bl]], paths = [[0,1,2]]); translate([th, th, 0]) linear_extrude(height = bw-2*th, center = true) polygon(points = [[0,0], [bh,0], [0,bl]], paths = [[0,1,2]]); } intersection(){ rotate([0, 0, 45]) cube([cw, cw, bw], center = true); translate([0, 0, -bw/2]) cube([cw, cw, bw]); } } translate([th+2/15*sl, 0, bh/2]) rotate([0,-90,0]) color([1,1,0,0.500]) screw(sd, sl); translate([bl/2, 0, bh-(th+2/15*sl)]) color([1,1,0,0.500]) screw(sd, sl); } // BLOCK 3 module screw(d, l) { r = d/2; $fn = 20; union() { cylinder(h=2/15*l, r1=r+2.500, r2=r+1); translate([0, 0, 2/15*l]) cylinder(h=1/15*l, r1=r+1, r2=r+0.500); translate([0, 0, 3/15*l]) cylinder(h=11/15*l, r=r+0.500); translate([0, 0, 14/15*l]) cylinder(h=1/15*l, r1=r+0.500, r2=0); } }
6615e6bd-379b-43b9-a951-d3e479569233
// BLOCK 1 wall_thickness = 1.200; lid_thickness = 1.200; lid_clearance = 0.300; height = 30; width = 30; length =30; radius = 5; lid_height = 10; resolution = 128; // BLOCK 2 module rounded_rect(x, y, radius, height){ if (radius > 0){ hull(){ translate([-x/2 + radius, y/2 - radius, 0]) cylinder(h = height, r = radius, center = true, $fn=$fn); translate([x/2 - radius, y/2 - radius, 0]) cylinder(h = height, r = radius, center = true, $fn=$fn); translate([-x/2 + radius, -y/2 + radius, 0]) cylinder(h = height, r = radius, center = true, $fn=$fn); translate([x/2 - radius, -y/2 + radius, 0]) cylinder(h = height, r = radius, center = true, $fn=$fn); } }else{ cube([x, y, height], center = true); } } // BLOCK 3 module bottom(){ translate([0,0,height/2]) difference(){ rounded_rect(width, length, radius, height, $fn=resolution); translate([0,0, lid_thickness]) rounded_rect(width - wall_thickness * 2, length - wall_thickness * 2, radius - wall_thickness, height, $fn=resolution); } } translate([-width * 0.550,0,0]) bottom();
// BLOCK 1 wall_thickness = 1.200; lid_thickness = 1.200; lid_clearance = 0.300; height = 30; width = 30; length =30; radius = 5; lid_height = 10; resolution = 128; // BLOCK 2 module rounded_rect(x, y, radius, height){ if (radius > 0){ hull(){ translate([-x/2 + radius, y/2 - radius, 0]) cylinder(h = height, r = radius, center = true, $fn=$fn); translate([x/2 - radius, y/2 - radius, 0]) cylinder(h = height, r = radius, center = true, $fn=$fn); translate([-x/2 + radius, -y/2 + radius, 0]) cylinder(h = height, r = radius, center = true, $fn=$fn); translate([x/2 - radius, -y/2 + radius, 0]) cylinder(h = height, r = radius, center = true, $fn=$fn); } }else{ cube([x, y, height], center = true); } } // BLOCK 3 module bottom(){ translate([0,0,height/2]) difference(){ rounded_rect(width, length, radius, height, $fn=resolution); translate([0,0, lid_thickness]) rounded_rect(width - wall_thickness * 2, length - wall_thickness * 2, radius - wall_thickness, height, $fn=resolution); } } translate([-width * 0.550,0,0]) bottom();
c2f15633-390a-46b6-a9b7-b12c25bf8cf0
// BLOCK 1 x=10; y=100; // BLOCK 2 difference(){ translate([0, 25, 0])cylinder(x,y/2+1,y/2+1); translate([-y,0,0])cube([2*y,y,x]); translate([-27,0,0])cylinder(x,8,8); translate([-9,0,0])cylinder(x,8,8); translate([9,0,0])cylinder(x,8,8); translate([27,0,0])cylinder(x,8,8); } // BLOCK 3 difference(){ translate([0, 25, x/2]){ rotate_extrude(convexity = 10, $fn = 100) translate([y/2+1, 0, 0]) circle(r = x/2, $fn = y/2); } translate([-y,0,0])cube([y*2,y,x]); } // BLOCK 4 difference(){ translate([0,40/2,x/2])cube([y-y/10,40,x], center = true); translate([-27,35,0])cylinder(x,8,8); translate([-9,35,0])cylinder(x,8,8); translate([9,35,0])cylinder(x,8,8); translate([27,35,0])cylinder(x,8,8); translate([0,40/2,x/2])cube([(y-y/10)-20,40,x], center = true); } // BLOCK 5 rotate([90,0,0])translate([(y-y/10)/2,x/2,-55.500])cylinder(55.500,x/2,x/2); // BLOCK 6 rotate([90,0,0])translate([(y-y/10)/-2,x/2,-60])cylinder(60,x/2,x/2); // BLOCK 7 difference(){ translate([0, 50,x/2])cube([y-y/10,30,x], center = true); translate([-27,35,0])cylinder(x,8,8); translate([-9,35,0])cylinder(x,8,8); translate([9,35,0])cylinder(x,8,8); translate([27,35,0])cylinder(x,8,8); translate([20, 96, -2]){ cylinder(x*2,y/2-y/25,y/2-y/25); } } // BLOCK 8 difference(){ translate([20, 100, x/2]){ rotate_extrude(convexity = 10, $fn = 100) translate([y/2, 0, 0]) circle(r = x/2, $fn = y/2); } translate([20,73+y/2,x/2])cube([y*2,y,x], center = true); translate([y+43,50+y/2,x/2])cube([y*2,y,x], center = true); } // BLOCK 9 translate([-30, 60, x/2]){ translate([0, 0, -x/2])cylinder(x,15,15); // BLOCK 10 difference(){ rotate_extrude(convexity = 10, $fn = 100) translate([40/2-5, 0, 0]) circle(r = x/2, $fn = y/2); translate([-27--30,35- 60,-x/2])cylinder(x,8,8); } } // BLOCK 11 translate([44, 55.500, x/2]){ translate([0, 0, -x/2])cylinder(x,1,1); rotate_extrude(convexity = 10, $fn = 100) translate([1, 0, 0]) circle(r = x/2, $fn = y/2); }
// BLOCK 1 x=10; y=100; // BLOCK 2 difference(){ translate([0, 25, 0])cylinder(x,y/2+1,y/2+1); translate([-y,0,0])cube([2*y,y,x]); translate([-27,0,0])cylinder(x,8,8); translate([-9,0,0])cylinder(x,8,8); translate([9,0,0])cylinder(x,8,8); translate([27,0,0])cylinder(x,8,8); } // BLOCK 3 difference(){ translate([0, 25, x/2]){ rotate_extrude(convexity = 10, $fn = 100) translate([y/2+1, 0, 0]) circle(r = x/2, $fn = y/2); } translate([-y,0,0])cube([y*2,y,x]); } // BLOCK 4 difference(){ translate([0,40/2,x/2])cube([y-y/10,40,x], center = true); translate([-27,35,0])cylinder(x,8,8); translate([-9,35,0])cylinder(x,8,8); translate([9,35,0])cylinder(x,8,8); translate([27,35,0])cylinder(x,8,8); translate([0,40/2,x/2])cube([(y-y/10)-20,40,x], center = true); } // BLOCK 5 rotate([90,0,0])translate([(y-y/10)/2,x/2,-55.500])cylinder(55.500,x/2,x/2); // BLOCK 6 rotate([90,0,0])translate([(y-y/10)/-2,x/2,-60])cylinder(60,x/2,x/2); // BLOCK 7 difference(){ translate([0, 50,x/2])cube([y-y/10,30,x], center = true); translate([-27,35,0])cylinder(x,8,8); translate([-9,35,0])cylinder(x,8,8); translate([9,35,0])cylinder(x,8,8); translate([27,35,0])cylinder(x,8,8); translate([20, 96, -2]){ cylinder(x*2,y/2-y/25,y/2-y/25); } } // BLOCK 8 difference(){ translate([20, 100, x/2]){ rotate_extrude(convexity = 10, $fn = 100) translate([y/2, 0, 0]) circle(r = x/2, $fn = y/2); } translate([20,73+y/2,x/2])cube([y*2,y,x], center = true); translate([y+43,50+y/2,x/2])cube([y*2,y,x], center = true); } // BLOCK 9 translate([-30, 60, x/2]){ translate([0, 0, -x/2])cylinder(x,15,15); // BLOCK 10 difference(){ rotate_extrude(convexity = 10, $fn = 100) translate([40/2-5, 0, 0]) circle(r = x/2, $fn = y/2); translate([-27--30,35- 60,-x/2])cylinder(x,8,8); } } // BLOCK 11 translate([44, 55.500, x/2]){ translate([0, 0, -x/2])cylinder(x,1,1); rotate_extrude(convexity = 10, $fn = 100) translate([1, 0, 0]) circle(r = x/2, $fn = y/2); }
1b34b73c-25f4-4822-a198-2b577458fea8
// BLOCK 1 bladeWidth = 0.800; materialHeight = 20; materialWidth = 20; cutAngle = 45; miterBoxLength = 40; cutAngle2 = 90; difference () // BLOCK 2 { miterBox(); bladePosition(); } // BLOCK 3 module material () { cube([miterBoxLength, materialWidth, materialHeight+5]); } // BLOCK 4 module miterBox () { difference () { cube([miterBoxLength, materialWidth + 10, materialHeight + 10]); translate([0,5,5]) material(); } } // BLOCK 5 module blade () { cube([bladeWidth, materialWidth + 100, materialHeight + 7.500], center = true); } // BLOCK 6 module bladePosAngle () { rotate([0,0,cutAngle]) blade(); } // BLOCK 7 module bladeNegAngle () { rotate([0,0,-cutAngle]) blade(); } // BLOCK 8 module bladePosition () { translate([miterBoxLength/2,(materialWidth + 10)/2,((materialHeight+7.500)/2)+2.500]) blade(); translate([(miterBoxLength/2),(materialWidth + 10)/2,((materialHeight+7.500)/2)+2.500]) bladePosAngle(); translate([(miterBoxLength/2),(materialWidth + 10)/2,((materialHeight+7.500)/2)+2.500]) bladeNegAngle(); }
// BLOCK 1 bladeWidth = 0.800; materialHeight = 20; materialWidth = 20; cutAngle = 45; miterBoxLength = 40; cutAngle2 = 90; difference () // BLOCK 2 { miterBox(); bladePosition(); } // BLOCK 3 module material () { cube([miterBoxLength, materialWidth, materialHeight+5]); } // BLOCK 4 module miterBox () { difference () { cube([miterBoxLength, materialWidth + 10, materialHeight + 10]); translate([0,5,5]) material(); } } // BLOCK 5 module blade () { cube([bladeWidth, materialWidth + 100, materialHeight + 7.500], center = true); } // BLOCK 6 module bladePosAngle () { rotate([0,0,cutAngle]) blade(); } // BLOCK 7 module bladeNegAngle () { rotate([0,0,-cutAngle]) blade(); } // BLOCK 8 module bladePosition () { translate([miterBoxLength/2,(materialWidth + 10)/2,((materialHeight+7.500)/2)+2.500]) blade(); translate([(miterBoxLength/2),(materialWidth + 10)/2,((materialHeight+7.500)/2)+2.500]) bladePosAngle(); translate([(miterBoxLength/2),(materialWidth + 10)/2,((materialHeight+7.500)/2)+2.500]) bladeNegAngle(); }
2a19d2f8-f07b-48a2-9f9d-dbc675a596e9
// BLOCK 1 inner_diameter = 50; width = 8; thickness = 2.500; spacing = 5; rotor_clearance = spacing/2; pin_extra = 1; base_slop = 0.100; overlap = 1; axle_sides = 8; axle_slop = 0.100; $fn = 100; if(true) { gimbal(0, inner_diameter, spacing, thickness, width); rotate(90, [0,0,1]) gimbal(1, inner_diameter, spacing, thickness, width); gimbal(2, inner_diameter, spacing, thickness, width); frame(inner_diameter, spacing, thickness, width); translate([-width, 0, width/2]) rotate(90, [0,1,0]) rotor(inner_diameter, 2*width, width); axle(inner_diameter, spacing, width); } else { gyro(); } // BLOCK 2 module gyro(gimbal_count = 3) { for(i = [0 : 1 : gimbal_count - 1] ) { rotate(i*90, [0,0,1]) gimbal(i, inner_diameter, spacing, thickness, width); } frame(inner_diameter, spacing, thickness, width); rotor(inner_diameter, width, width); axle(inner_diameter, spacing, width); } // BLOCK 3 module axle(diameter, spacing, width) { $fn = axle_sides; translate([-diameter/2 - pin_extra, 0, width/2]) rotate(90, [0, 1, 0]) rotate(180/axle_sides, [0, 0, 1]) union() { translate([0, 0, 1.500*spacing + pin_extra]) cylinder(r = width/2, h = diameter - (3*spacing)); translate([0, 0, diameter - 1.500*spacing]) cylinder(r1 = width/2, r2 = 0, h = 1.500*spacing + overlap + pin_extra); translate([0, 0, 0]) cylinder(r1 = 0, r2 = width/2, h = 1.500*spacing + overlap + pin_extra); } } // BLOCK 4 module rotor(diameter, thickness, width) { od = sqrt(diameter*diameter - thickness*thickness) - 2*rotor_clearance; difference() { cylinder(r = od/2, h = thickness); translate([0, 0, -overlap]) rotate(180/axle_sides, [0, 0, 1]) cylinder(r = width/2 + axle_slop, h = thickness + 2*overlap, $fn = axle_sides); } } // BLOCK 5 // BLOCK 6 module pivot_pin(diameter, length) { cylinder(r1 = diameter/2, r2 = 0, h = length); } // BLOCK 7 module pivot_socket(diameter, depth) { difference() { cylinder(r1 = diameter/2, r2 = 0, h = depth + overlap); translate([0, 0, overlap]) cylinder(r1 = 0, r2 = diameter/2, h = depth + overlap); } } // BLOCK 8 module gimbal_ring(id, thickness, width) { od = id + 2*thickness; difference() { cylinder(r = od/2, h = width); translate([0,0,-overlap]) cylinder(r = id/2, h = width + 2*overlap); } } // BLOCK 9 module gimbal(n, base_diameter, spacing, thickness, width) { id = base_diameter + 2*n*(spacing + thickness); pin_length = spacing + pin_extra; union() { gimbal_ring(id, thickness, width); translate([0,-id/2,width/2]) rotate(90, [1,0,0]) pivot_pin(width, pin_length + thickness); translate([0,id/2,width/2]) rotate(-90, [1,0,0]) pivot_pin(width, pin_length + thickness); translate([id/2 + overlap,0,width/2]) rotate(-90, [0,1,0]) pivot_socket(width, (2/3)*pin_length); translate([-id/2 - overlap,0,width/2]) rotate(90, [0,1,0]) pivot_socket(width, (2/3)*pin_length); } } // BLOCK 10 module outer_gimbal(id, thickness, width, pin_length) { od = id + 2*thickness; union() { difference() { gimbal_ring(id, thickness, width); translate([0,-od/2,0]) difference() { translate([0,0,-overlap]) cube([od/2+overlap, od + (2*overlap), width + (2*overlap)]); translate([0,od+overlap,(width/2)]) rotate(90,[1,0,0]) cylinder(r = (width+2*overlap)/2, h = od + 2*overlap); } } translate([0,-id/2,width/2]) rotate(-90, [1,0,0]) pivot_socket(width, (2/3)*pin_length); translate([0,id/2,width/2]) rotate(90, [1,0,0]) pivot_socket(width, (2/3)*pin_length); } }
// BLOCK 1 inner_diameter = 50; width = 8; thickness = 2.500; spacing = 5; rotor_clearance = spacing/2; pin_extra = 1; base_slop = 0.100; overlap = 1; axle_sides = 8; axle_slop = 0.100; $fn = 100; if(true) { gimbal(0, inner_diameter, spacing, thickness, width); rotate(90, [0,0,1]) gimbal(1, inner_diameter, spacing, thickness, width); gimbal(2, inner_diameter, spacing, thickness, width); frame(inner_diameter, spacing, thickness, width); translate([-width, 0, width/2]) rotate(90, [0,1,0]) rotor(inner_diameter, 2*width, width); axle(inner_diameter, spacing, width); } else { gyro(); } // BLOCK 2 module gyro(gimbal_count = 3) { for(i = [0 : 1 : gimbal_count - 1] ) { rotate(i*90, [0,0,1]) gimbal(i, inner_diameter, spacing, thickness, width); } frame(inner_diameter, spacing, thickness, width); rotor(inner_diameter, width, width); axle(inner_diameter, spacing, width); } // BLOCK 3 module axle(diameter, spacing, width) { $fn = axle_sides; translate([-diameter/2 - pin_extra, 0, width/2]) rotate(90, [0, 1, 0]) rotate(180/axle_sides, [0, 0, 1]) union() { translate([0, 0, 1.500*spacing + pin_extra]) cylinder(r = width/2, h = diameter - (3*spacing)); translate([0, 0, diameter - 1.500*spacing]) cylinder(r1 = width/2, r2 = 0, h = 1.500*spacing + overlap + pin_extra); translate([0, 0, 0]) cylinder(r1 = 0, r2 = width/2, h = 1.500*spacing + overlap + pin_extra); } } // BLOCK 4 module rotor(diameter, thickness, width) { od = sqrt(diameter*diameter - thickness*thickness) - 2*rotor_clearance; difference() { cylinder(r = od/2, h = thickness); translate([0, 0, -overlap]) rotate(180/axle_sides, [0, 0, 1]) cylinder(r = width/2 + axle_slop, h = thickness + 2*overlap, $fn = axle_sides); } } // BLOCK 5 // BLOCK 6 module pivot_pin(diameter, length) { cylinder(r1 = diameter/2, r2 = 0, h = length); } // BLOCK 7 module pivot_socket(diameter, depth) { difference() { cylinder(r1 = diameter/2, r2 = 0, h = depth + overlap); translate([0, 0, overlap]) cylinder(r1 = 0, r2 = diameter/2, h = depth + overlap); } } // BLOCK 8 module gimbal_ring(id, thickness, width) { od = id + 2*thickness; difference() { cylinder(r = od/2, h = width); translate([0,0,-overlap]) cylinder(r = id/2, h = width + 2*overlap); } } // BLOCK 9 module gimbal(n, base_diameter, spacing, thickness, width) { id = base_diameter + 2*n*(spacing + thickness); pin_length = spacing + pin_extra; union() { gimbal_ring(id, thickness, width); translate([0,-id/2,width/2]) rotate(90, [1,0,0]) pivot_pin(width, pin_length + thickness); translate([0,id/2,width/2]) rotate(-90, [1,0,0]) pivot_pin(width, pin_length + thickness); translate([id/2 + overlap,0,width/2]) rotate(-90, [0,1,0]) pivot_socket(width, (2/3)*pin_length); translate([-id/2 - overlap,0,width/2]) rotate(90, [0,1,0]) pivot_socket(width, (2/3)*pin_length); } } // BLOCK 10 module outer_gimbal(id, thickness, width, pin_length) { od = id + 2*thickness; union() { difference() { gimbal_ring(id, thickness, width); translate([0,-od/2,0]) difference() { translate([0,0,-overlap]) cube([od/2+overlap, od + (2*overlap), width + (2*overlap)]); translate([0,od+overlap,(width/2)]) rotate(90,[1,0,0]) cylinder(r = (width+2*overlap)/2, h = od + 2*overlap); } } translate([0,-id/2,width/2]) rotate(-90, [1,0,0]) pivot_socket(width, (2/3)*pin_length); translate([0,id/2,width/2]) rotate(90, [1,0,0]) pivot_socket(width, (2/3)*pin_length); } }
7fa2c646-47be-4ec5-8b7c-6d3f8bfc0303
// BLOCK 1 // BLOCK 2 module ring(outerRadius,innerRadius,thickness,outerSegment=30,innerSegment=30) { difference() { cylinder(thickness,outerRadius,outerRadius,$fn=outerSegment); cylinder(thickness,innerRadius,innerRadius,,$fn=innerSegment); } } // BLOCK 3 module tooth(toothLength,thickness,toothLean,toothSharpness) { rotate(-toothLean,[0,0,1]) rotate(180,[0,0,1]) difference() { cube([toothLength,toothLength,thickness]); rotate(toothSharpness,[0,0,1]) cube([toothLength*2,toothLength,thickness]); } } // BLOCK 4 module ringTooth(outerRadius,innerRadius,thickness,numberTeeth,toothLength) { union() { ring(outerRadius,innerRadius,thickness); for ( i=[0:numberTeeth]) { rotate(i*360/numberTeeth,[0,0,1]) translate([innerRadius+toothLength,0,0]) child(0); } } } // BLOCK 5 module escapementWheel(radius,rimWidth,drumHeight,toothThickness,numberTeeth,toothLength,toothLean,toothSharpness,numberSpokes,spokeWidth,hubWidth,bore) { union() { ringTooth(radius-toothLength+rimWidth,radius-toothLength,drumHeight,numberTeeth,toothLength) tooth(toothLength,toothThickness,toothLean,toothSharpness); for ( j=[0:numberSpokes-1]) { rotate(360/numberSpokes*j,[0,0,1]) translate([bore,-spokeWidth/2,0]) cube([radius-toothLength-bore,spokeWidth,drumHeight]); } ring(hubWidth,bore,drumHeight); } } // BLOCK 6 module escapement(radius,thickness,faceAngle,armAngle,armWidth,numberTeeth,toothSpan,hubWidth,hubHeight,bore) { faceWidth=2*3.142*radius*faceAngle/360; escapementAngle=180/numberTeeth*toothSpan; rotate(90,[0,0,1]) union() { ring(hubWidth,bore,hubHeight); for ( k=[0,1]) { rotate(-90-armAngle+k*(180+2*armAngle),[0,0,1]) translate([bore,-armWidth/2,0]) cube([radius+faceWidth/2-bore,armWidth,thickness]); intersection() { ring(radius+faceWidth/2,radius-faceWidth/2,thickness,180,180); rotate(-90-armAngle+k*(2*armAngle+180),[0,0,1]) translate([radius,0,0]) rotate(180-180*k,[0,0,1]) translate([-0.500*radius,0,-radius]) cube(2*radius); translate([-2*radius*cos(escapementAngle),0,0]) rotate(-escapementAngle,[0,0,1]) rotate(2*escapementAngle*k,[0,0,1]) translate([radius,0,0]) rotate(-135,[0,0,1]) translate([-0.500*radius,0,-radius]) cube(2*radius); } } } } scale=0.500; radius=60*scale; thickness=5*scale; bore=2*scale; rimWidth=5*scale; numberSpokes=7; spokeWidth=2*scale; drumHeight=3*thickness; numberTeeth=20; toothLength=20*scale; toothLean=30; toothSharpness=20; toothSpan=4.500; faceAngle=6; armAngle=26; armWidth=5*scale; hubWidth=7*scale; hubHeight=thickness; pendulumLength=radius*3; pendulumWidth=armWidth; pendulumRadius=radius/2; pendulumHeight=thickness; supportClearance=20*scale; escapementWheel(radius,rimWidth,drumHeight,thickness,numberTeeth,toothLength,toothLean,toothSharpness,numberSpokes,spokeWidth,hubWidth,bore);
// BLOCK 1 // BLOCK 2 module ring(outerRadius,innerRadius,thickness,outerSegment=30,innerSegment=30) { difference() { cylinder(thickness,outerRadius,outerRadius,$fn=outerSegment); cylinder(thickness,innerRadius,innerRadius,,$fn=innerSegment); } } // BLOCK 3 module tooth(toothLength,thickness,toothLean,toothSharpness) { rotate(-toothLean,[0,0,1]) rotate(180,[0,0,1]) difference() { cube([toothLength,toothLength,thickness]); rotate(toothSharpness,[0,0,1]) cube([toothLength*2,toothLength,thickness]); } } // BLOCK 4 module ringTooth(outerRadius,innerRadius,thickness,numberTeeth,toothLength) { union() { ring(outerRadius,innerRadius,thickness); for ( i=[0:numberTeeth]) { rotate(i*360/numberTeeth,[0,0,1]) translate([innerRadius+toothLength,0,0]) child(0); } } } // BLOCK 5 module escapementWheel(radius,rimWidth,drumHeight,toothThickness,numberTeeth,toothLength,toothLean,toothSharpness,numberSpokes,spokeWidth,hubWidth,bore) { union() { ringTooth(radius-toothLength+rimWidth,radius-toothLength,drumHeight,numberTeeth,toothLength) tooth(toothLength,toothThickness,toothLean,toothSharpness); for ( j=[0:numberSpokes-1]) { rotate(360/numberSpokes*j,[0,0,1]) translate([bore,-spokeWidth/2,0]) cube([radius-toothLength-bore,spokeWidth,drumHeight]); } ring(hubWidth,bore,drumHeight); } } // BLOCK 6 module escapement(radius,thickness,faceAngle,armAngle,armWidth,numberTeeth,toothSpan,hubWidth,hubHeight,bore) { faceWidth=2*3.142*radius*faceAngle/360; escapementAngle=180/numberTeeth*toothSpan; rotate(90,[0,0,1]) union() { ring(hubWidth,bore,hubHeight); for ( k=[0,1]) { rotate(-90-armAngle+k*(180+2*armAngle),[0,0,1]) translate([bore,-armWidth/2,0]) cube([radius+faceWidth/2-bore,armWidth,thickness]); intersection() { ring(radius+faceWidth/2,radius-faceWidth/2,thickness,180,180); rotate(-90-armAngle+k*(2*armAngle+180),[0,0,1]) translate([radius,0,0]) rotate(180-180*k,[0,0,1]) translate([-0.500*radius,0,-radius]) cube(2*radius); translate([-2*radius*cos(escapementAngle),0,0]) rotate(-escapementAngle,[0,0,1]) rotate(2*escapementAngle*k,[0,0,1]) translate([radius,0,0]) rotate(-135,[0,0,1]) translate([-0.500*radius,0,-radius]) cube(2*radius); } } } } scale=0.500; radius=60*scale; thickness=5*scale; bore=2*scale; rimWidth=5*scale; numberSpokes=7; spokeWidth=2*scale; drumHeight=3*thickness; numberTeeth=20; toothLength=20*scale; toothLean=30; toothSharpness=20; toothSpan=4.500; faceAngle=6; armAngle=26; armWidth=5*scale; hubWidth=7*scale; hubHeight=thickness; pendulumLength=radius*3; pendulumWidth=armWidth; pendulumRadius=radius/2; pendulumHeight=thickness; supportClearance=20*scale; escapementWheel(radius,rimWidth,drumHeight,thickness,numberTeeth,toothLength,toothLean,toothSharpness,numberSpokes,spokeWidth,hubWidth,bore);
a3b726a2-2199-4c0c-93ec-59783701810b
// BLOCK 1 bladeangle = 30; bore = 5; tblade = 2; tipElipticallity = 1; length = 2 *98.000; wmax = length/7 *1.000; wmin = length/10 *0.800; lmount = wmin *0.800; l = length - 2*(wmax/2)/tipElipticallity; teffmount = (wmin*tan(bladeangle)+tblade)*cos(bladeangle); tipElipticallity = 0.618; mountsmooth = l*0.100; onlyF6 = true; vert = 32; vert2 = 64; eps = 0.020; printconfig1(); // BLOCK 2 module printconfig1() { halfrotor(true); translate([length/2-lmount/2,1.500*teffmount,0]) rotate(180,[0,0,1]) halfrotor(false); } // BLOCK 3 module combinedview() { rotate(-bladeangle,[1,0,0]) halfrotor(true); translate([0,0,wmin*cos(bladeangle)]) rotate(180+bladeangle,[1,0,0]) rotate(180,[0,0,1]) halfrotor(false); } // BLOCK 4 module halfrotor(gender) { { difference() { union() { translate([lmount/2+eps,-tblade/2,0]) cube([ (l-lmount)/2,tblade,wmax ]); translate([l/2,0,wmax/2]) rotate(90,[1,0,0]) scale([1/tipElipticallity,1,1]) cylinder(r=wmax/2,h=tblade,center=true,$fn=vert2); intersection() { translate([1/2*mountsmooth+eps,0,wmin/2]) cbc(lmount+1*mountsmooth,l,wmin); translate([0,0,wmin/2]) rotate(bladeangle,[1,0,0]) cbc(lmount+2*mountsmooth,teffmount,l); translate([1/2*mountsmooth+eps,0,wmin/2]) rotate(2*bladeangle-90,[1,0,0]) cbc(lmount+1*mountsmooth,wmin,l/2); } } translate([lmount/2,0,wmin+0.010]) rotate(90,[1,0,0]) S_cutter((l-lmount/2)*0.450,wmax-wmin,2*vert2); translate([0,0,wmin/2]) rotate(90+bladeangle,[1,0,0]) { cylinder(r=bore/2,h=l,$fn=vert,center=true); } if(onlyF6==true) { thinningblade(); mirror([0,1,0]) thinningblade(); } if (gender) { femalecut(); } if (! gender) { malecut(); } } } } // BLOCK 5 module cbc(x,y,z) { cube([x,y,z],center=true); } // BLOCK 6 module thinningblade() { translate([mountsmooth+lmount/2+eps,tblade/2,0]) mirror([-1,0,0]) S_cutter(mountsmooth+eps,(teffmount*1.510-tblade)/2,2*vert2); } // BLOCK 7 module femalecut() { union() { translate([0,-(teffmount/2)/cos(bladeangle),0]) translate([0,0,wmin/2]) rotate(bladeangle,[1,0,0]) cbc(lmount+eps,teffmount+eps,3*wmin); translate([0,+(teffmount/8)/cos(bladeangle)-eps,0]) translate([0,0,wmin/2]) rotate(bladeangle,[1,0,0]) cbc(lmount/3,teffmount/4,3*wmin); } } // BLOCK 8 module malecut() { difference() { translate([0,+(teffmount/2)/cos(bladeangle),0]) translate([0,0,wmin/2]) rotate(bladeangle,[1,0,0]) cbc(lmount+eps,teffmount+eps,3*wmin); translate([0,+(teffmount/8)/cos(bladeangle)-eps,0]) translate([0,0,wmin/2]) rotate(bladeangle,[1,0,0]) cbc(lmount/3,teffmount/4,3*wmin); } } // BLOCK 9 module S_cutter(dx,dy,resol) { d = 80; rr = 1/4*(dy +dx*dx/dy); intersection() { difference() { union() { translate([0,dy/2,-d/2+d*0.050]) cube([dx,2*rr,d*0.900]); translate([0,rr,0]) cylinder(r=rr,h=d,$fn=resol,center=true); } translate([dx,dy-rr,0]) cylinder(r=rr,h=d,$fn=resol,center=true); } translate([2*rr,2*rr,0]) cube([4*rr,4*rr,d],center=true); } }
// BLOCK 1 bladeangle = 30; bore = 5; tblade = 2; tipElipticallity = 1; length = 2 *98.000; wmax = length/7 *1.000; wmin = length/10 *0.800; lmount = wmin *0.800; l = length - 2*(wmax/2)/tipElipticallity; teffmount = (wmin*tan(bladeangle)+tblade)*cos(bladeangle); tipElipticallity = 0.618; mountsmooth = l*0.100; onlyF6 = true; vert = 32; vert2 = 64; eps = 0.020; printconfig1(); // BLOCK 2 module printconfig1() { halfrotor(true); translate([length/2-lmount/2,1.500*teffmount,0]) rotate(180,[0,0,1]) halfrotor(false); } // BLOCK 3 module combinedview() { rotate(-bladeangle,[1,0,0]) halfrotor(true); translate([0,0,wmin*cos(bladeangle)]) rotate(180+bladeangle,[1,0,0]) rotate(180,[0,0,1]) halfrotor(false); } // BLOCK 4 module halfrotor(gender) { { difference() { union() { translate([lmount/2+eps,-tblade/2,0]) cube([ (l-lmount)/2,tblade,wmax ]); translate([l/2,0,wmax/2]) rotate(90,[1,0,0]) scale([1/tipElipticallity,1,1]) cylinder(r=wmax/2,h=tblade,center=true,$fn=vert2); intersection() { translate([1/2*mountsmooth+eps,0,wmin/2]) cbc(lmount+1*mountsmooth,l,wmin); translate([0,0,wmin/2]) rotate(bladeangle,[1,0,0]) cbc(lmount+2*mountsmooth,teffmount,l); translate([1/2*mountsmooth+eps,0,wmin/2]) rotate(2*bladeangle-90,[1,0,0]) cbc(lmount+1*mountsmooth,wmin,l/2); } } translate([lmount/2,0,wmin+0.010]) rotate(90,[1,0,0]) S_cutter((l-lmount/2)*0.450,wmax-wmin,2*vert2); translate([0,0,wmin/2]) rotate(90+bladeangle,[1,0,0]) { cylinder(r=bore/2,h=l,$fn=vert,center=true); } if(onlyF6==true) { thinningblade(); mirror([0,1,0]) thinningblade(); } if (gender) { femalecut(); } if (! gender) { malecut(); } } } } // BLOCK 5 module cbc(x,y,z) { cube([x,y,z],center=true); } // BLOCK 6 module thinningblade() { translate([mountsmooth+lmount/2+eps,tblade/2,0]) mirror([-1,0,0]) S_cutter(mountsmooth+eps,(teffmount*1.510-tblade)/2,2*vert2); } // BLOCK 7 module femalecut() { union() { translate([0,-(teffmount/2)/cos(bladeangle),0]) translate([0,0,wmin/2]) rotate(bladeangle,[1,0,0]) cbc(lmount+eps,teffmount+eps,3*wmin); translate([0,+(teffmount/8)/cos(bladeangle)-eps,0]) translate([0,0,wmin/2]) rotate(bladeangle,[1,0,0]) cbc(lmount/3,teffmount/4,3*wmin); } } // BLOCK 8 module malecut() { difference() { translate([0,+(teffmount/2)/cos(bladeangle),0]) translate([0,0,wmin/2]) rotate(bladeangle,[1,0,0]) cbc(lmount+eps,teffmount+eps,3*wmin); translate([0,+(teffmount/8)/cos(bladeangle)-eps,0]) translate([0,0,wmin/2]) rotate(bladeangle,[1,0,0]) cbc(lmount/3,teffmount/4,3*wmin); } } // BLOCK 9 module S_cutter(dx,dy,resol) { d = 80; rr = 1/4*(dy +dx*dx/dy); intersection() { difference() { union() { translate([0,dy/2,-d/2+d*0.050]) cube([dx,2*rr,d*0.900]); translate([0,rr,0]) cylinder(r=rr,h=d,$fn=resol,center=true); } translate([dx,dy-rr,0]) cylinder(r=rr,h=d,$fn=resol,center=true); } translate([2*rr,2*rr,0]) cube([4*rr,4*rr,d],center=true); } }
6cbd1f13-1804-4ad1-bc1d-933dae64886b
// BLOCK 1 assemble = true; with_caps = true; diameter = 100; width = 15; thickness = 6; string_diameter = 3.100; mark_width = 0.800; band_gap = 90; latitude = -33.786; longitude = 151.290; fitting_slop = 0.100; overlap = 1; $fn = 100; if(assemble) { rotate(latitude, [1, 0, 0]) { translate([0, width/2, 0]) rotate(90, [1, 0, 0]) rotate(90, [0, 0, 1]) equatorial_band(diameter, width, thickness, band_gap); translate([width/4, 0, 0]) rotate(-90, [0, 1, 0]) bow(diameter, width, thickness); translate([0, -diameter/2, 0]) rotate(-90, [1, 0, 0]) string(diameter); if(with_caps) { translate([0, diameter/2 + width/2, 0]) rotate(-90, [1, 0, 0]) bowcap(diameter, width, thickness, true); translate([0, -diameter/2 - width/2, 0]) rotate(90, [1, 0, 0]) bowcap(diameter, width, thickness, false); } } translate([0, 0, -diameter/2 - diameter/6]) base(diameter, width, thickness); } else { bow(diameter, width, thickness); if(with_caps) { } } // BLOCK 2 module equatorial_band(diameter, width, thickness, gap, mark = true) { wedge_len = diameter + overlap; wedge_x = (wedge_len)*cos(gap/2); wedge_y = (wedge_len)*sin(gap/2); difference() { cylinder(r = diameter/2, h = width); translate([0, 0, -overlap]) cylinder(r = diameter/2 - thickness, h = width + 2*overlap); if(gap > 0) { difference() { translate([0, 0, -overlap]) linear_extrude(h = width + 2*overlap) polygon([[0, 0], [wedge_x, wedge_y], [wedge_x, -wedge_y]]); rotate(-gap/2, [0, 0, 1]) translate([diameter/2 - 3*thickness/2, 0, width/2]) rotate(90, [0, 1, 0]) cylinder(r = width/2, h = 2*thickness); rotate(gap/2, [0, 0, 1]) translate([diameter/2 - 3*thickness/2, 0, width/2]) rotate(90, [0, 1, 0]) cylinder(r = width/2, h = 2*thickness); } } if(mark) { for(t = [0 : 15/4 : 360]) { rotate(sign(latitude) * t, [0, 0, 1]) translate([diameter/2 - thickness - overlap, -mark_width/2, -overlap - (t%15/7.500)*width/2]) cube([mark_width + overlap, mark_width, width + 2*overlap]); } } } } // BLOCK 3 module bow(band_diameter, band_width, band_thickness, mark = true) { id = band_diameter - 1.500*band_thickness; od = band_diameter + 2* band_thickness; width = band_width/2; thickness = 2*band_thickness; cylinder_len = (with_caps)?(1.500*thickness):(thickness); difference() { union() { difference() { cylinder(r = od/2, h = width); translate([0, 0, -overlap]) cylinder(r = id/2, h = width + 2*overlap); translate([0, -diameter/2 - thickness - overlap, - overlap]) cube([diameter/2 + thickness + overlap, diameter + 2*thickness + 2*overlap, width + 2*overlap]); } translate([0, -id/2, width/2]) rotate(90, [1, 0, 0]) cylinder(r = width/2, h = cylinder_len); translate([0, id/2, width/2]) rotate(-90, [1, 0, 0]) cylinder(r = width/2, h = cylinder_len); } translate([0, 0, width/2]) rotate(90, [1, 0, 0]) cylinder(r = string_diameter/2 + fitting_slop, h = 1.500*od, center = true); translate([0, band_width/2, band_thickness/2]) rotate(90, [1, 0, 0]) equatorial_band(band_diameter, band_width + fitting_slop, band_thickness, false); if(mark) { for(t = [0 : 5 : 180]) { rotate(90+t, [0, 0, 1]) translate([id/2 - overlap - (t%10/5)*(od - id)/6, -mark_width/2, width - mark_width]) cube([(od - id)/3 + overlap, mark_width, mark_width + overlap]); } } } } // BLOCK 4 module bowcap(band_diameter, band_width, band_thickness, head) { od = 1.500*band_width; bow_width = band_width/2; bow_thickness = 2*band_thickness; difference() { if(head) { cylinder(r1 = od/2, r2 = 0, h = od); } else { cylinder(r1 = bow_width/2, r2 = od/2, h = od); } # translate([0, 0, flat - overlap]) cylinder(r = bow_width/2 + fitting_slop, h = bow_thickness); } } // BLOCK 5 module bowcap2(band_diameter, band_width, band_thickness, head) { od = 1.500*band_width; flat = od/12; bow_width = band_width/2; bow_thickness = 2*band_thickness; difference() { translate([0 , 0, od/2]) union() { sphere(r = od/2); if(head) { cylinder(r1 = od/2, r2 = 0, h = od); } else { cylinder(r2 = od/2, r1 = 0, h = od); } } # translate([0, 0, flat - overlap]) cylinder(r = bow_width/2 + fitting_slop, h = bow_thickness); # translate([0, 0, -overlap]) cylinder(r = od, h = flat + overlap); } } // BLOCK 6 module string(band_diameter) { cylinder(r = string_diameter/2, h = band_diameter); } // BLOCK 7 module base(band_diameter, band_width, band_thickness) { diameter = band_diameter/2; height = diameter/3; difference() { cylinder(r1 = diameter/2, r2 = diameter/4, h = height); translate([-2*diameter/12, -mark_width/2, height - mark_width]) cube([diameter/3, mark_width, mark_width + overlap]); translate([band_width/4 - fitting_slop, 0, band_diameter/2 + height ]) rotate(-90, [0, 1, 0]) bow(band_diameter, band_width + fitting_slop, band_thickness, false); } }
// BLOCK 1 assemble = true; with_caps = true; diameter = 100; width = 15; thickness = 6; string_diameter = 3.100; mark_width = 0.800; band_gap = 90; latitude = -33.786; longitude = 151.290; fitting_slop = 0.100; overlap = 1; $fn = 100; if(assemble) { rotate(latitude, [1, 0, 0]) { translate([0, width/2, 0]) rotate(90, [1, 0, 0]) rotate(90, [0, 0, 1]) equatorial_band(diameter, width, thickness, band_gap); translate([width/4, 0, 0]) rotate(-90, [0, 1, 0]) bow(diameter, width, thickness); translate([0, -diameter/2, 0]) rotate(-90, [1, 0, 0]) string(diameter); if(with_caps) { translate([0, diameter/2 + width/2, 0]) rotate(-90, [1, 0, 0]) bowcap(diameter, width, thickness, true); translate([0, -diameter/2 - width/2, 0]) rotate(90, [1, 0, 0]) bowcap(diameter, width, thickness, false); } } translate([0, 0, -diameter/2 - diameter/6]) base(diameter, width, thickness); } else { bow(diameter, width, thickness); if(with_caps) { } } // BLOCK 2 module equatorial_band(diameter, width, thickness, gap, mark = true) { wedge_len = diameter + overlap; wedge_x = (wedge_len)*cos(gap/2); wedge_y = (wedge_len)*sin(gap/2); difference() { cylinder(r = diameter/2, h = width); translate([0, 0, -overlap]) cylinder(r = diameter/2 - thickness, h = width + 2*overlap); if(gap > 0) { difference() { translate([0, 0, -overlap]) linear_extrude(h = width + 2*overlap) polygon([[0, 0], [wedge_x, wedge_y], [wedge_x, -wedge_y]]); rotate(-gap/2, [0, 0, 1]) translate([diameter/2 - 3*thickness/2, 0, width/2]) rotate(90, [0, 1, 0]) cylinder(r = width/2, h = 2*thickness); rotate(gap/2, [0, 0, 1]) translate([diameter/2 - 3*thickness/2, 0, width/2]) rotate(90, [0, 1, 0]) cylinder(r = width/2, h = 2*thickness); } } if(mark) { for(t = [0 : 15/4 : 360]) { rotate(sign(latitude) * t, [0, 0, 1]) translate([diameter/2 - thickness - overlap, -mark_width/2, -overlap - (t%15/7.500)*width/2]) cube([mark_width + overlap, mark_width, width + 2*overlap]); } } } } // BLOCK 3 module bow(band_diameter, band_width, band_thickness, mark = true) { id = band_diameter - 1.500*band_thickness; od = band_diameter + 2* band_thickness; width = band_width/2; thickness = 2*band_thickness; cylinder_len = (with_caps)?(1.500*thickness):(thickness); difference() { union() { difference() { cylinder(r = od/2, h = width); translate([0, 0, -overlap]) cylinder(r = id/2, h = width + 2*overlap); translate([0, -diameter/2 - thickness - overlap, - overlap]) cube([diameter/2 + thickness + overlap, diameter + 2*thickness + 2*overlap, width + 2*overlap]); } translate([0, -id/2, width/2]) rotate(90, [1, 0, 0]) cylinder(r = width/2, h = cylinder_len); translate([0, id/2, width/2]) rotate(-90, [1, 0, 0]) cylinder(r = width/2, h = cylinder_len); } translate([0, 0, width/2]) rotate(90, [1, 0, 0]) cylinder(r = string_diameter/2 + fitting_slop, h = 1.500*od, center = true); translate([0, band_width/2, band_thickness/2]) rotate(90, [1, 0, 0]) equatorial_band(band_diameter, band_width + fitting_slop, band_thickness, false); if(mark) { for(t = [0 : 5 : 180]) { rotate(90+t, [0, 0, 1]) translate([id/2 - overlap - (t%10/5)*(od - id)/6, -mark_width/2, width - mark_width]) cube([(od - id)/3 + overlap, mark_width, mark_width + overlap]); } } } } // BLOCK 4 module bowcap(band_diameter, band_width, band_thickness, head) { od = 1.500*band_width; bow_width = band_width/2; bow_thickness = 2*band_thickness; difference() { if(head) { cylinder(r1 = od/2, r2 = 0, h = od); } else { cylinder(r1 = bow_width/2, r2 = od/2, h = od); } # translate([0, 0, flat - overlap]) cylinder(r = bow_width/2 + fitting_slop, h = bow_thickness); } } // BLOCK 5 module bowcap2(band_diameter, band_width, band_thickness, head) { od = 1.500*band_width; flat = od/12; bow_width = band_width/2; bow_thickness = 2*band_thickness; difference() { translate([0 , 0, od/2]) union() { sphere(r = od/2); if(head) { cylinder(r1 = od/2, r2 = 0, h = od); } else { cylinder(r2 = od/2, r1 = 0, h = od); } } # translate([0, 0, flat - overlap]) cylinder(r = bow_width/2 + fitting_slop, h = bow_thickness); # translate([0, 0, -overlap]) cylinder(r = od, h = flat + overlap); } } // BLOCK 6 module string(band_diameter) { cylinder(r = string_diameter/2, h = band_diameter); } // BLOCK 7 module base(band_diameter, band_width, band_thickness) { diameter = band_diameter/2; height = diameter/3; difference() { cylinder(r1 = diameter/2, r2 = diameter/4, h = height); translate([-2*diameter/12, -mark_width/2, height - mark_width]) cube([diameter/3, mark_width, mark_width + overlap]); translate([band_width/4 - fitting_slop, 0, band_diameter/2 + height ]) rotate(-90, [0, 1, 0]) bow(band_diameter, band_width + fitting_slop, band_thickness, false); } }
2e8f7e38-f055-40c7-adcd-f9438665f9ab
// BLOCK 1 h = 110; gr = 1.618; long = h / gr; short = h - long; width = short / gr; burst = short * .7; burst_w = burst / gr; hanger_od = 8; hanger_id = 4; hanger_h = 2; // BLOCK 2 rotate([0,0,45]) difference() { union() { starArm(short, width); rotate([0,0,180]) starArm(long, width); rotate([0,0,90]) starArm(short, width); rotate([0,0,270]) starArm(short, width); rotate([0,0,45]) starArm(burst, burst_w); rotate([0,0,131]) starArm(burst, burst_w); rotate([0,0,229]) starArm(burst, burst_w); rotate([0,0,-45]) starArm(burst, burst_w); translate([0, short, 0]) cylinder(h = hanger_h, r = hanger_od/2, $fn=25); } translate([0, short, -1]) cylinder(h = hanger_h + 2, r = hanger_id/2, $fn=20); } // BLOCK 3 module starArm(height, width) { hw = width / 2; polyhedron( points = [ [0,height,0],[hw,0,0],[-hw,0,0],[0,0,hw] ], triangles = [ [0,1,3],[1,2,3],[0,3,2],[0,2,1] ] ); }
// BLOCK 1 h = 110; gr = 1.618; long = h / gr; short = h - long; width = short / gr; burst = short * .7; burst_w = burst / gr; hanger_od = 8; hanger_id = 4; hanger_h = 2; // BLOCK 2 rotate([0,0,45]) difference() { union() { starArm(short, width); rotate([0,0,180]) starArm(long, width); rotate([0,0,90]) starArm(short, width); rotate([0,0,270]) starArm(short, width); rotate([0,0,45]) starArm(burst, burst_w); rotate([0,0,131]) starArm(burst, burst_w); rotate([0,0,229]) starArm(burst, burst_w); rotate([0,0,-45]) starArm(burst, burst_w); translate([0, short, 0]) cylinder(h = hanger_h, r = hanger_od/2, $fn=25); } translate([0, short, -1]) cylinder(h = hanger_h + 2, r = hanger_id/2, $fn=20); } // BLOCK 3 module starArm(height, width) { hw = width / 2; polyhedron( points = [ [0,height,0],[hw,0,0],[-hw,0,0],[0,0,hw] ], triangles = [ [0,1,3],[1,2,3],[0,3,2],[0,2,1] ] ); }
10e43615-3dba-4d29-b1f5-53f997171ac9
// BLOCK 1 // BLOCK 2 module open_hand(){ difference(){ scale([.9,.3,1]) sphere(4); translate([0,-1,0]) scale([.5,.3,.5]) sphere(4);} hull(){ translate([0,0,2]) sphere(1); translate([0,0,6]) sphere(1.200); } hull(){ translate([-2,0,2]) sphere(1); translate([-3,0,5]) rotate([0,-20,0]) sphere(1.200); } hull(){ translate([2,0,2]) sphere(1); translate([2.500,0,5]) rotate([0,20,0]) sphere(1.200); } hull(){ translate([2.500,0,-1]) sphere(1); translate([5,0,1]) sphere(1.200); } hull(){ translate([5,0,1]) sphere(1.200); translate([4.700,0,2]) sphere(1.200); } } // BLOCK 3 module pointing_hand(){ difference(){ scale([.9,.3,1]) sphere(4); translate([0,-1,0]) scale([.5,.3,.5]) sphere(4);} hull(){ translate([0,0,4]) sphere(1); translate([0,-2,3]) sphere(1.200); } hull(){ translate([-2,0,2]) sphere(1); translate([-1,-2,2]) rotate([0,-20,0]) sphere(1.200); } hull(){ translate([2,0,2]) sphere(1); translate([2.500,0,7]) rotate([0,20,0]) sphere(1.200); } hull(){ translate([2.500,0,-1]) sphere(1); translate([3,-1,1]) sphere(1.200); } hull(){ translate([3,-1,1]) sphere(1.200); translate([1,-2,1]) sphere(1.200); } } // BLOCK 4 module fist(){ difference(){ scale([.9,.3,1]) sphere(4); translate([0,-1,0]) scale([.5,.3,.5]) sphere(4);} hull(){ translate([0,0,3]) sphere(1); translate([0,-2,3]) sphere(1.200); } hull(){ translate([-2,0,2]) sphere(1); translate([-1.500,-2,2]) rotate([0,-20,0]) sphere(1.200); } hull(){ translate([2,0,3]) sphere(1); translate([1,-2,2]) rotate([0,-20,0]) sphere(1.200); } hull(){ translate([2.500,0,-1]) sphere(1); translate([3,-1,1]) sphere(1.200); } hull(){ translate([3,-1,1]) sphere(1.200); translate([1,-2,1]) sphere(1.200); } } // BLOCK 5 module lips(){ hull(){ translate([-1.300,0,0]) sphere(1.500); translate([-5,-1,0]) sphere(1); } hull(){ translate([1.300,0,0]) sphere(1.500); translate([5,-1,0]) sphere(1); } hull(){ translate([-4,-2,0]) sphere(1); translate([0,-2.500,0]) sphere(1.500); translate([4,-2,0]) sphere(1); } } $fn=30; // BLOCK 6 module lips_open(){ hull(){ translate([-1.200,0,0]) sphere(1.500); translate([-5,-1,0]) sphere(1); } hull(){ translate([1.300,0,0]) sphere(1.500); translate([5,-1,0]) sphere(1); } hull(){ translate([-5,-2,0]) sphere(1); translate([0,-4.500,0]) sphere(1.500); } hull(){ translate([0,-4.500,0]) sphere(1.500); translate([5,-2,0]) sphere(1); } } $fn=30; // BLOCK 7 module lips_tongue(){ translate([0,-2,1]) rotate([110,0,0]) hull(){ rotate_extrude(convexity = 10) translate([2, 0, 0]) circle(r = 1, $fn = 100); } hull(){ translate([-1.200,0,0]) sphere(1.500); translate([-5,-1,0]) sphere(1); } hull(){ translate([1.300,0,0]) sphere(1.500); translate([5,-1,0]) sphere(1); } hull(){ translate([-5,-2,0]) sphere(1); translate([0,-4.500,0]) sphere(1.500); } hull(){ translate([0,-4.500,0]) sphere(1.500); translate([5,-2,0]) sphere(1); } } $fn=30; // BLOCK 8 module foot(){ translate([0,-9,0]) cylinder(2,5.200,5.200); translate([0,0,0]) cylinder(2,4.100,4.100); hull(){ translate([0,-9,3]) scale([1,1,.6]) sphere(5); translate([0,0,3]) scale([1,1,.6]) sphere(4); } } translate([-8,0,0]) rotate([0,0,-10]) foot(); // BLOCK 9 translate([-8,0,2]) rotate([0,10,0]) cylinder(14,2,2); translate([8,0,0]) rotate([0,0,10]) foot(); // BLOCK 10 translate([8,0,2]) rotate([0,-10,0]) cylinder(14,2,2); translate([0,0,22]) scale([1.100,1.100,1.100]) // BLOCK 11 hull(){ translate([0,0,10]) scale([1,1,1.350]) sphere(10); translate([0,0,8.500]) sphere(10.500); translate([0,0,8.100]) sphere(11.100); translate([0,0,7.500]) sphere(11.100); translate([0,0,5]) sphere(11.900); translate([0,0,3]) sphere(12); sphere(9); } // BLOCK 12 translate([0,0,0]) translate([-10,0,25]) rotate([0,-70,0]) cylinder(12,2,2); // BLOCK 13 translate([-20,0,28]) rotate([0,0,0]) cylinder(12,2,1.500); translate([-20,0,42]) rotate([0,0,0]) open_hand(); // BLOCK 14 translate([10,0,25]) rotate([0,110,0]) cylinder(12,2,2); // BLOCK 15 translate([21,0,21.500]) rotate([0,255,0]) cylinder(12,2,1.500); translate([11,0,15]) rotate([200,0,70]) mirror() open_hand(); // BLOCK 16 translate([-5,-10,30]) rotate([85,0,-20]) cylinder(2,5,5); // BLOCK 17 difference(){ translate([-5,-10,30]) sphere(4); translate([-5.500,-13,30]) sphere(2); } // BLOCK 18 translate([5,-10,30]) rotate([85,0,20]) cylinder(2,5,5); // BLOCK 19 difference(){ translate([5,-10,30]) sphere(4); translate([5.500,-13,30]) sphere(2); } translate([0,-13,25]) rotate([-90,180,180]) lips();
// BLOCK 1 // BLOCK 2 module open_hand(){ difference(){ scale([.9,.3,1]) sphere(4); translate([0,-1,0]) scale([.5,.3,.5]) sphere(4);} hull(){ translate([0,0,2]) sphere(1); translate([0,0,6]) sphere(1.200); } hull(){ translate([-2,0,2]) sphere(1); translate([-3,0,5]) rotate([0,-20,0]) sphere(1.200); } hull(){ translate([2,0,2]) sphere(1); translate([2.500,0,5]) rotate([0,20,0]) sphere(1.200); } hull(){ translate([2.500,0,-1]) sphere(1); translate([5,0,1]) sphere(1.200); } hull(){ translate([5,0,1]) sphere(1.200); translate([4.700,0,2]) sphere(1.200); } } // BLOCK 3 module pointing_hand(){ difference(){ scale([.9,.3,1]) sphere(4); translate([0,-1,0]) scale([.5,.3,.5]) sphere(4);} hull(){ translate([0,0,4]) sphere(1); translate([0,-2,3]) sphere(1.200); } hull(){ translate([-2,0,2]) sphere(1); translate([-1,-2,2]) rotate([0,-20,0]) sphere(1.200); } hull(){ translate([2,0,2]) sphere(1); translate([2.500,0,7]) rotate([0,20,0]) sphere(1.200); } hull(){ translate([2.500,0,-1]) sphere(1); translate([3,-1,1]) sphere(1.200); } hull(){ translate([3,-1,1]) sphere(1.200); translate([1,-2,1]) sphere(1.200); } } // BLOCK 4 module fist(){ difference(){ scale([.9,.3,1]) sphere(4); translate([0,-1,0]) scale([.5,.3,.5]) sphere(4);} hull(){ translate([0,0,3]) sphere(1); translate([0,-2,3]) sphere(1.200); } hull(){ translate([-2,0,2]) sphere(1); translate([-1.500,-2,2]) rotate([0,-20,0]) sphere(1.200); } hull(){ translate([2,0,3]) sphere(1); translate([1,-2,2]) rotate([0,-20,0]) sphere(1.200); } hull(){ translate([2.500,0,-1]) sphere(1); translate([3,-1,1]) sphere(1.200); } hull(){ translate([3,-1,1]) sphere(1.200); translate([1,-2,1]) sphere(1.200); } } // BLOCK 5 module lips(){ hull(){ translate([-1.300,0,0]) sphere(1.500); translate([-5,-1,0]) sphere(1); } hull(){ translate([1.300,0,0]) sphere(1.500); translate([5,-1,0]) sphere(1); } hull(){ translate([-4,-2,0]) sphere(1); translate([0,-2.500,0]) sphere(1.500); translate([4,-2,0]) sphere(1); } } $fn=30; // BLOCK 6 module lips_open(){ hull(){ translate([-1.200,0,0]) sphere(1.500); translate([-5,-1,0]) sphere(1); } hull(){ translate([1.300,0,0]) sphere(1.500); translate([5,-1,0]) sphere(1); } hull(){ translate([-5,-2,0]) sphere(1); translate([0,-4.500,0]) sphere(1.500); } hull(){ translate([0,-4.500,0]) sphere(1.500); translate([5,-2,0]) sphere(1); } } $fn=30; // BLOCK 7 module lips_tongue(){ translate([0,-2,1]) rotate([110,0,0]) hull(){ rotate_extrude(convexity = 10) translate([2, 0, 0]) circle(r = 1, $fn = 100); } hull(){ translate([-1.200,0,0]) sphere(1.500); translate([-5,-1,0]) sphere(1); } hull(){ translate([1.300,0,0]) sphere(1.500); translate([5,-1,0]) sphere(1); } hull(){ translate([-5,-2,0]) sphere(1); translate([0,-4.500,0]) sphere(1.500); } hull(){ translate([0,-4.500,0]) sphere(1.500); translate([5,-2,0]) sphere(1); } } $fn=30; // BLOCK 8 module foot(){ translate([0,-9,0]) cylinder(2,5.200,5.200); translate([0,0,0]) cylinder(2,4.100,4.100); hull(){ translate([0,-9,3]) scale([1,1,.6]) sphere(5); translate([0,0,3]) scale([1,1,.6]) sphere(4); } } translate([-8,0,0]) rotate([0,0,-10]) foot(); // BLOCK 9 translate([-8,0,2]) rotate([0,10,0]) cylinder(14,2,2); translate([8,0,0]) rotate([0,0,10]) foot(); // BLOCK 10 translate([8,0,2]) rotate([0,-10,0]) cylinder(14,2,2); translate([0,0,22]) scale([1.100,1.100,1.100]) // BLOCK 11 hull(){ translate([0,0,10]) scale([1,1,1.350]) sphere(10); translate([0,0,8.500]) sphere(10.500); translate([0,0,8.100]) sphere(11.100); translate([0,0,7.500]) sphere(11.100); translate([0,0,5]) sphere(11.900); translate([0,0,3]) sphere(12); sphere(9); } // BLOCK 12 translate([0,0,0]) translate([-10,0,25]) rotate([0,-70,0]) cylinder(12,2,2); // BLOCK 13 translate([-20,0,28]) rotate([0,0,0]) cylinder(12,2,1.500); translate([-20,0,42]) rotate([0,0,0]) open_hand(); // BLOCK 14 translate([10,0,25]) rotate([0,110,0]) cylinder(12,2,2); // BLOCK 15 translate([21,0,21.500]) rotate([0,255,0]) cylinder(12,2,1.500); translate([11,0,15]) rotate([200,0,70]) mirror() open_hand(); // BLOCK 16 translate([-5,-10,30]) rotate([85,0,-20]) cylinder(2,5,5); // BLOCK 17 difference(){ translate([-5,-10,30]) sphere(4); translate([-5.500,-13,30]) sphere(2); } // BLOCK 18 translate([5,-10,30]) rotate([85,0,20]) cylinder(2,5,5); // BLOCK 19 difference(){ translate([5,-10,30]) sphere(4); translate([5.500,-13,30]) sphere(2); } translate([0,-13,25]) rotate([-90,180,180]) lips();
7903be1e-35e7-4b87-a985-a46dae6a1773
// BLOCK 1 current_color = "ALL"; // BLOCK 2 module multicolor(color) { if (current_color != "ALL" && current_color != color) { } else { color(color) children(); } } $fn=50; // BLOCK 3 multicolor("white") translate([0,0,5]) sphere(d=50); // BLOCK 4 translate([0,0,40]) { multicolor("white") sphere(d=35); // BLOCK 5 multicolor("red") { translate([0,12,10]) rotate([-45,0,0]) cylinder(30, 4, 4, center=false); // BLOCK 6 mirror([0,1,0]) translate([0,12,10]) rotate([-45,0,0]) cylinder(30, 4, 4, center=false); }; // BLOCK 7 multicolor("black") { translate([16, 0, 2]) sphere(3); // BLOCK 8 translate([12, 0, 10]) sphere(3); // BLOCK 9 translate([14.500, 0, -6]) sphere(3); }; } // BLOCK 10 translate([0,0,65]) { multicolor("white") sphere(d=25); // BLOCK 11 multicolor("red") translate([8,0,0]) rotate([0, 90, 0]) cylinder(10, 5, 0); // BLOCK 12 multicolor("black") { translate([8,5,5]) sphere(4); // BLOCK 13 translate([8,-5,5]) sphere(4); }; // BLOCK 14 multicolor("red") { translate([10, 0, -6]) rotate([90, 0, 0]) cylinder(5, 2, 2, center=true); // BLOCK 15 translate([9.500, 4, -5.300]) rotate([25, -40, 0]) rotate([90, 0, 0]) cylinder(5, 1.500, 2, center=true); // BLOCK 16 mirror([0,1,0]) translate([9.500, 4, -5.300]) rotate([25, -40, 0]) rotate([90, 0, 0]) cylinder(5, 1.500, 2, center=true); } }; multicolor("red") translate([0, 0, 79]) rotate([0,0,90]) rotate([90,0,0]) { // BLOCK 17 difference() { cylinder(2.500,4.500,4.500, center=true); cylinder(3,2,2, center=true); }; } // BLOCK 18 module plinth_label() { translate([22,-22.500,-7]) rotate([0,0,90]) rotate([90,0,0]) linear_extrude(5) text("2018", font = "Liberation Sans:style=Bold", size=15); translate([-23,22.500,-7]) rotate([0,0,-90]) rotate([90,0,0]) linear_extrude(5, center=true) text("2018", font = "Liberation Sans:style=Bold", size=15); } // BLOCK 19 module inner_block() { cube([47, 47, 16], center=true); } translate([0, 0, -23]) { union() { multicolor("black") // BLOCK 20 difference() { cube([50, 50, 20], center=true); inner_block(); plinth_label(); } multicolor("red") // BLOCK 21 difference() { inner_block(); plinth_label(); } }; }
// BLOCK 1 current_color = "ALL"; // BLOCK 2 module multicolor(color) { if (current_color != "ALL" && current_color != color) { } else { color(color) children(); } } $fn=50; // BLOCK 3 multicolor("white") translate([0,0,5]) sphere(d=50); // BLOCK 4 translate([0,0,40]) { multicolor("white") sphere(d=35); // BLOCK 5 multicolor("red") { translate([0,12,10]) rotate([-45,0,0]) cylinder(30, 4, 4, center=false); // BLOCK 6 mirror([0,1,0]) translate([0,12,10]) rotate([-45,0,0]) cylinder(30, 4, 4, center=false); }; // BLOCK 7 multicolor("black") { translate([16, 0, 2]) sphere(3); // BLOCK 8 translate([12, 0, 10]) sphere(3); // BLOCK 9 translate([14.500, 0, -6]) sphere(3); }; } // BLOCK 10 translate([0,0,65]) { multicolor("white") sphere(d=25); // BLOCK 11 multicolor("red") translate([8,0,0]) rotate([0, 90, 0]) cylinder(10, 5, 0); // BLOCK 12 multicolor("black") { translate([8,5,5]) sphere(4); // BLOCK 13 translate([8,-5,5]) sphere(4); }; // BLOCK 14 multicolor("red") { translate([10, 0, -6]) rotate([90, 0, 0]) cylinder(5, 2, 2, center=true); // BLOCK 15 translate([9.500, 4, -5.300]) rotate([25, -40, 0]) rotate([90, 0, 0]) cylinder(5, 1.500, 2, center=true); // BLOCK 16 mirror([0,1,0]) translate([9.500, 4, -5.300]) rotate([25, -40, 0]) rotate([90, 0, 0]) cylinder(5, 1.500, 2, center=true); } }; multicolor("red") translate([0, 0, 79]) rotate([0,0,90]) rotate([90,0,0]) { // BLOCK 17 difference() { cylinder(2.500,4.500,4.500, center=true); cylinder(3,2,2, center=true); }; } // BLOCK 18 module plinth_label() { translate([22,-22.500,-7]) rotate([0,0,90]) rotate([90,0,0]) linear_extrude(5) text("2018", font = "Liberation Sans:style=Bold", size=15); translate([-23,22.500,-7]) rotate([0,0,-90]) rotate([90,0,0]) linear_extrude(5, center=true) text("2018", font = "Liberation Sans:style=Bold", size=15); } // BLOCK 19 module inner_block() { cube([47, 47, 16], center=true); } translate([0, 0, -23]) { union() { multicolor("black") // BLOCK 20 difference() { cube([50, 50, 20], center=true); inner_block(); plinth_label(); } multicolor("red") // BLOCK 21 difference() { inner_block(); plinth_label(); } }; }
084ebbc1-dfb4-4cfa-be40-d3859455a2b7
// BLOCK 1 // BLOCK 2 module hex_form(height=6,hex_id=11.700,wall_thickness=3.200,sides=8,inclination=1.100,qual=100){ hh = height/3; t = wall_thickness; ir = hex_id/2; rr = ir + (1.500*t); inc = inclination; difference(){ translate([0,0,0]) rotate_extrude(convexity=4,$fn=qual) polygon( points=[[rr,0],[ir,0],[ir,hh*3],[rr,hh*3],[inc*rr,hh*2],[inc*rr,hh]]); translate([0,0,0]) difference(){ cylinder(r=1.500*rr+t,h=3*hh,$fn=qual); cylinder(r=1.100*rr+(0.000*t),h=3*hh,$fn=sides); } } } hex_form();
// BLOCK 1 // BLOCK 2 module hex_form(height=6,hex_id=11.700,wall_thickness=3.200,sides=8,inclination=1.100,qual=100){ hh = height/3; t = wall_thickness; ir = hex_id/2; rr = ir + (1.500*t); inc = inclination; difference(){ translate([0,0,0]) rotate_extrude(convexity=4,$fn=qual) polygon( points=[[rr,0],[ir,0],[ir,hh*3],[rr,hh*3],[inc*rr,hh*2],[inc*rr,hh]]); translate([0,0,0]) difference(){ cylinder(r=1.500*rr+t,h=3*hh,$fn=qual); cylinder(r=1.100*rr+(0.000*t),h=3*hh,$fn=sides); } } } hex_form();
f535ab03-9ccc-4dd2-8cbe-0d97e31f8d0a
// BLOCK 1 textstring="Swirly"; fontname="Henny Penny"; type="tag"; shiftit=0.300; scale=1.700; textheight=6; textsize=10; wall=1; width_factor=0.900; rim=0.500; delta=0.500; function is_monospaced() = (fontname=="Cutive Mono" || fontname=="Droid Sans Mono" ||fontname=="Fira Mono" ||fontname=="Nova Mono" ||fontname=="PT Mono" ||fontname=="Rubik Mono" ||fontname=="Share Tech Mono" ||fontname=="Ubuntu Mono" || fontname=="Oxygen Mono" )? 1 : 0; echo (is_monospaced()) ; width_big=textsize*width_factor; width_small=textsize*width_factor*(is_monospaced()==1?1:0.750); width_small_half=width_small*(is_monospaced()==1?1:0.500); width_tiny=textsize*width_factor*(is_monospaced()==1?1:0.250); width_tiny_half=width_tiny*(is_monospaced()==1?1:0.500); echo (width_big, width_small, width_tiny); function is_narrow_letter(c) = (c=="t" ||c=="f" || c=="l" || c=="i" || c=="j") ? 1 : 0; function is_space(c) = (c=="." ||c==";" || c==" ") ? 1 : 0; function width(c,d) = (is_narrow_letter(c)==1 && is_narrow_letter(d)==1) ? width_small_half : (is_narrow_letter(c)==1 || is_narrow_letter(d)==1) ? width_small : (is_space(c)==1 && is_space(d)==1) ? width_tiny_half : (is_space(c)==1 || is_space(d)==1) ? width_tiny : width_big; function widthfunction(i) = width(textstring[i-1],textstring[i-2]); function totalwidthfunction(x) = x < 1 ? 0 : widthfunction(x) + totalwidthfunction(x - 1); width = [for (a = [ 1 : len(textstring) ]) totalwidthfunction(a) ]; echo(width); dummy_cutoutlen=len(textstring)*textsize; // BLOCK 2 module writetext(textstr, sizeit) { text(textstr,size=sizeit*0.900,font=fontname,halign="center",valign="baseline"); } // BLOCK 3 module RiseText(textstr, textsize,textheight) { difference() { union() { for(i=[0:1:len(textstr)-1]) { translate([width[i],0,0]) linear_extrude(height=textheight,convexity = 32, scale = scale) translate([0,-textsize*shiftit,0]) writetext(textstr[i], textsize); if(type=="tag") { translate([width[i],0,textheight-0*wall]) linear_extrude(height=wall,convexity = 32) scale([scale,scale,1]) translate([0,-textsize*shiftit,0]) offset(delta=-delta) offset(delta=delta+rim) writetext(textstr[i], textsize); translate([width[i],0,textheight-0*wall]) linear_extrude(height=wall,convexity = 32) scale([scale,scale,1]) translate([0,-textsize*shiftit,0]) offset(delta=rim) writetext(textstr[i], textsize); } } } if (type=="container") { translate([0,0,wall]) for(i=[0:1:len(textstr)-1]) { translate([width[i],0,0]) linear_extrude(height=textheight,convexity = 32, scale = scale) translate([0,-textsize*shiftit,0]) offset(delta=-wall) writetext(textstr[i], textsize); } } if (type=="hollow") scale([1,1,1]) translate([0,0,-wall]) for(i=[0:1:len(textstr)-1]) { translate([width[i],0,0]) linear_extrude(height=textheight,convexity = 32, scale = 0.300) translate([0,-textsize*shiftit,0]) writetext(textstr[i], textsize); } } } if (type=="tag" || type=="hollow") { scale([1,1,-1]) RiseText(textstring,textsize,textheight); } else { RiseText(textstring,textsize,textheight); }
// BLOCK 1 textstring="Swirly"; fontname="Henny Penny"; type="tag"; shiftit=0.300; scale=1.700; textheight=6; textsize=10; wall=1; width_factor=0.900; rim=0.500; delta=0.500; function is_monospaced() = (fontname=="Cutive Mono" || fontname=="Droid Sans Mono" ||fontname=="Fira Mono" ||fontname=="Nova Mono" ||fontname=="PT Mono" ||fontname=="Rubik Mono" ||fontname=="Share Tech Mono" ||fontname=="Ubuntu Mono" || fontname=="Oxygen Mono" )? 1 : 0; echo (is_monospaced()) ; width_big=textsize*width_factor; width_small=textsize*width_factor*(is_monospaced()==1?1:0.750); width_small_half=width_small*(is_monospaced()==1?1:0.500); width_tiny=textsize*width_factor*(is_monospaced()==1?1:0.250); width_tiny_half=width_tiny*(is_monospaced()==1?1:0.500); echo (width_big, width_small, width_tiny); function is_narrow_letter(c) = (c=="t" ||c=="f" || c=="l" || c=="i" || c=="j") ? 1 : 0; function is_space(c) = (c=="." ||c==";" || c==" ") ? 1 : 0; function width(c,d) = (is_narrow_letter(c)==1 && is_narrow_letter(d)==1) ? width_small_half : (is_narrow_letter(c)==1 || is_narrow_letter(d)==1) ? width_small : (is_space(c)==1 && is_space(d)==1) ? width_tiny_half : (is_space(c)==1 || is_space(d)==1) ? width_tiny : width_big; function widthfunction(i) = width(textstring[i-1],textstring[i-2]); function totalwidthfunction(x) = x < 1 ? 0 : widthfunction(x) + totalwidthfunction(x - 1); width = [for (a = [ 1 : len(textstring) ]) totalwidthfunction(a) ]; echo(width); dummy_cutoutlen=len(textstring)*textsize; // BLOCK 2 module writetext(textstr, sizeit) { text(textstr,size=sizeit*0.900,font=fontname,halign="center",valign="baseline"); } // BLOCK 3 module RiseText(textstr, textsize,textheight) { difference() { union() { for(i=[0:1:len(textstr)-1]) { translate([width[i],0,0]) linear_extrude(height=textheight,convexity = 32, scale = scale) translate([0,-textsize*shiftit,0]) writetext(textstr[i], textsize); if(type=="tag") { translate([width[i],0,textheight-0*wall]) linear_extrude(height=wall,convexity = 32) scale([scale,scale,1]) translate([0,-textsize*shiftit,0]) offset(delta=-delta) offset(delta=delta+rim) writetext(textstr[i], textsize); translate([width[i],0,textheight-0*wall]) linear_extrude(height=wall,convexity = 32) scale([scale,scale,1]) translate([0,-textsize*shiftit,0]) offset(delta=rim) writetext(textstr[i], textsize); } } } if (type=="container") { translate([0,0,wall]) for(i=[0:1:len(textstr)-1]) { translate([width[i],0,0]) linear_extrude(height=textheight,convexity = 32, scale = scale) translate([0,-textsize*shiftit,0]) offset(delta=-wall) writetext(textstr[i], textsize); } } if (type=="hollow") scale([1,1,1]) translate([0,0,-wall]) for(i=[0:1:len(textstr)-1]) { translate([width[i],0,0]) linear_extrude(height=textheight,convexity = 32, scale = 0.300) translate([0,-textsize*shiftit,0]) writetext(textstr[i], textsize); } } } if (type=="tag" || type=="hollow") { scale([1,1,-1]) RiseText(textstring,textsize,textheight); } else { RiseText(textstring,textsize,textheight); }
c4c77b08-de60-4818-89b0-af61c3348d68
// BLOCK 1 $fn = 120; innerR = 10.200 / 2; wall = 1; funnelZ = 1; cylinderH = 13; wheelOuterR = 50 / 2; wheelOuterZ = 5; contactR1 = 27 / 2; contactR2 = 22.500 / 2; contactWheelH = 11; contactWheelZ = 4.500; // BLOCK 2 difference () { union () { cylinder(r1 = wheelOuterR - 1, r2 = wheelOuterR, h = 1); translate([0, 0, 1]) cylinder(r = wheelOuterR, h = wheelOuterZ - 3); translate([0, 0, wheelOuterZ - 2]) cylinder(r1 = wheelOuterR, r2 = 12, h = 2); translate([0, 0, contactWheelZ]) cylinder(r1 = contactR1, r2 = contactR2, h = contactWheelH); } cylinder(r1 = innerR + funnelZ, r2 = innerR, h = funnelZ); translate([0, 0, funnelZ]) cylinder(r = innerR, cylinderH - funnelZ + .1); translate([0, 0, cylinderH]) cylinder(r = contactR2 - 1, h = 10); }
// BLOCK 1 $fn = 120; innerR = 10.200 / 2; wall = 1; funnelZ = 1; cylinderH = 13; wheelOuterR = 50 / 2; wheelOuterZ = 5; contactR1 = 27 / 2; contactR2 = 22.500 / 2; contactWheelH = 11; contactWheelZ = 4.500; // BLOCK 2 difference () { union () { cylinder(r1 = wheelOuterR - 1, r2 = wheelOuterR, h = 1); translate([0, 0, 1]) cylinder(r = wheelOuterR, h = wheelOuterZ - 3); translate([0, 0, wheelOuterZ - 2]) cylinder(r1 = wheelOuterR, r2 = 12, h = 2); translate([0, 0, contactWheelZ]) cylinder(r1 = contactR1, r2 = contactR2, h = contactWheelH); } cylinder(r1 = innerR + funnelZ, r2 = innerR, h = funnelZ); translate([0, 0, funnelZ]) cylinder(r = innerR, cylinderH - funnelZ + .1); translate([0, 0, cylinderH]) cylinder(r = contactR2 - 1, h = 10); }
ecdcdde9-44b9-4ec7-a747-14d97498c1c3
// BLOCK 1 $fn=321; // BLOCK 2 difference() { union() { cylinder(r1=20/2+0.100, r2=20/2-0.100, h=12); cylinder(r=20/2+3.500, h=2); } translate([0,0,3]) cylinder(r=20/2-2, h=12.010-3); }
// BLOCK 1 $fn=321; // BLOCK 2 difference() { union() { cylinder(r1=20/2+0.100, r2=20/2-0.100, h=12); cylinder(r=20/2+3.500, h=2); } translate([0,0,3]) cylinder(r=20/2-2, h=12.010-3); }
f91de5ba-dfb6-46bf-9c38-61e1bc4e88c4
// BLOCK 1 radius_in=9; radius_out=10; length=50; taper=0.120; union(){ // BLOCK 2 difference() { cylinder(h=15, r1=radius_in-taper, r2=radius_in,$fn=60); translate ([-6,-2,0]) cube(size = [12,4,4]); translate ([0,2,4]) rotate ([90,0,0]) cylinder(h=4,r=6,$fn=60); } // BLOCK 3 translate([0,2,2]) rotate([90,0,0]) cylinder(h=4,r=2,$fn=60); // BLOCK 4 translate ([0,0,15]) scale([1,1,length/radius_out]) difference() { sphere(r=radius_out,$fn=60); translate ([0,0,-radius_out/2]) cube(size=[2*radius_out,2*radius_out,radius_out],center=true); } }
// BLOCK 1 radius_in=9; radius_out=10; length=50; taper=0.120; union(){ // BLOCK 2 difference() { cylinder(h=15, r1=radius_in-taper, r2=radius_in,$fn=60); translate ([-6,-2,0]) cube(size = [12,4,4]); translate ([0,2,4]) rotate ([90,0,0]) cylinder(h=4,r=6,$fn=60); } // BLOCK 3 translate([0,2,2]) rotate([90,0,0]) cylinder(h=4,r=2,$fn=60); // BLOCK 4 translate ([0,0,15]) scale([1,1,length/radius_out]) difference() { sphere(r=radius_out,$fn=60); translate ([0,0,-radius_out/2]) cube(size=[2*radius_out,2*radius_out,radius_out],center=true); } }
9e13fc0c-c719-4f56-870d-2a5638352b07
// BLOCK 1 // BLOCK 2 difference(){ cylinder(30,3,3); translate([2,2,-.1]) cylinder(31,2.500,2.500); } // BLOCK 3 translate([0,-3,0]) cube([80,3,30]); // BLOCK 4 difference(){ translate([0,60,0]) cylinder(30,3,3); translate([2,58,-.1]) cylinder(31,2.500,2.500); } // BLOCK 5 translate([0,60,0]) cube([30,3,30]); // BLOCK 6 translate([-3,0,0]) cube([3,60,30]); // BLOCK 7 translate([77,-30,0]) cube([3,30,30]); // BLOCK 8 difference(){ translate([0,-42,0]) cylinder(20,37,37); translate([0,-42,-.1]) cylinder(21,35,35); } // BLOCK 9 module back(){ linear_extrude(20) polygon(points=[[0,0],[34,0],[34,8],[30.500,6],[32.200,6],[32.200,2],[2,2],[2,6],[3.500,6],[0,8]],paths=[[0,1,2,3,4,5,6,7,8,9,0]], convexity=10); } translate([-35,-25.500,0]) rotate([0,0,40]) back();
// BLOCK 1 // BLOCK 2 difference(){ cylinder(30,3,3); translate([2,2,-.1]) cylinder(31,2.500,2.500); } // BLOCK 3 translate([0,-3,0]) cube([80,3,30]); // BLOCK 4 difference(){ translate([0,60,0]) cylinder(30,3,3); translate([2,58,-.1]) cylinder(31,2.500,2.500); } // BLOCK 5 translate([0,60,0]) cube([30,3,30]); // BLOCK 6 translate([-3,0,0]) cube([3,60,30]); // BLOCK 7 translate([77,-30,0]) cube([3,30,30]); // BLOCK 8 difference(){ translate([0,-42,0]) cylinder(20,37,37); translate([0,-42,-.1]) cylinder(21,35,35); } // BLOCK 9 module back(){ linear_extrude(20) polygon(points=[[0,0],[34,0],[34,8],[30.500,6],[32.200,6],[32.200,2],[2,2],[2,6],[3.500,6],[0,8]],paths=[[0,1,2,3,4,5,6,7,8,9,0]], convexity=10); } translate([-35,-25.500,0]) rotate([0,0,40]) back();
a8c261be-86cc-4c43-8677-8a32d5c4dc6d
// BLOCK 1 $fa=5; $fs=0.500; bt = 6; st = 4.200; dt = bt-st; difference() // BLOCK 2 { union() { union() { cube([15,bt,4]); translate([-0.230,0,0.850]) rotate([0,3.700,0]) cube([15,bt,4]); dr = 2; scale([1,1,1.250]) translate([0,bt,dr]) rotate([90,0,0]) cylinder(r=dr,h=bt); } union() { translate([3.280,dt,0]) union() { rotate([0,-61,0]) cube([16,st,6]); translate([-0.500,0,0]) rotate([0,-50.800,0]) cube([16,st,5]); } er = 9.800/2; translate([12.500-4,6,er+14.100-6]) rotate([90,0,0]) cylinder(r=er,h=st); } union() { translate([3.280,0,0]) union() { rotate([0,-61,0]) cube([7,bt,6]); translate([-0.500,0,0]) rotate([0,-50.800,0]) cube([7,bt,5]); } } } hr = (2.500+0.600)/2; dx = 3 - 2 + hr; dz = 3 - hr; translate([dx,bt+1,hr+dz-0.200]) rotate([90,0,0]) cylinder(r=hr,h=bt+3); etr = 5.800/2; translate([12.500-4,st+3,19-6]) rotate([90,0,0]) cylinder(r=etr,h=bt); ebr = 6.800/2; translate([12.500-4,bt+1.600,19-6]) rotate([90,0,0]) cylinder(r=ebr,h=st); for(i = [1.200 : 1.200 : 6]) { translate([14-i,-1,-0.200]) rotate([0,45,0]) cube([1,bt+2,1]); } }
// BLOCK 1 $fa=5; $fs=0.500; bt = 6; st = 4.200; dt = bt-st; difference() // BLOCK 2 { union() { union() { cube([15,bt,4]); translate([-0.230,0,0.850]) rotate([0,3.700,0]) cube([15,bt,4]); dr = 2; scale([1,1,1.250]) translate([0,bt,dr]) rotate([90,0,0]) cylinder(r=dr,h=bt); } union() { translate([3.280,dt,0]) union() { rotate([0,-61,0]) cube([16,st,6]); translate([-0.500,0,0]) rotate([0,-50.800,0]) cube([16,st,5]); } er = 9.800/2; translate([12.500-4,6,er+14.100-6]) rotate([90,0,0]) cylinder(r=er,h=st); } union() { translate([3.280,0,0]) union() { rotate([0,-61,0]) cube([7,bt,6]); translate([-0.500,0,0]) rotate([0,-50.800,0]) cube([7,bt,5]); } } } hr = (2.500+0.600)/2; dx = 3 - 2 + hr; dz = 3 - hr; translate([dx,bt+1,hr+dz-0.200]) rotate([90,0,0]) cylinder(r=hr,h=bt+3); etr = 5.800/2; translate([12.500-4,st+3,19-6]) rotate([90,0,0]) cylinder(r=etr,h=bt); ebr = 6.800/2; translate([12.500-4,bt+1.600,19-6]) rotate([90,0,0]) cylinder(r=ebr,h=st); for(i = [1.200 : 1.200 : 6]) { translate([14-i,-1,-0.200]) rotate([0,45,0]) cube([1,bt+2,1]); } }
12488a17-6da2-4af7-a8ae-3d4fed01afa3
// BLOCK 1 LowestDiameter=44.500; LowestRadius=LowestDiameter/2; LowestHeight=3; MiddleDiameter=46.500; MiddleRadius=MiddleDiameter/2; MiddleHeight=7; TopDiameter1=47.500; TopDiameter2=46.000; TopRadius1=TopDiameter1/2; TopRadius2=TopDiameter2/2; TopHeight=13; InnerDiameter=41.500; InnerRadius=InnerDiameter/2; CenterDiameter=12; CenterRadius=CenterDiameter/2; CenterInnerRadius=3.700; Divots=45; FullHeight=LowestHeight+MiddleHeight+TopHeight; // BLOCK 2 difference(){ union(){ cylinder(LowestHeight,LowestRadius,LowestRadius); translate([0,0,LowestHeight]) cylinder(MiddleHeight,MiddleRadius,MiddleRadius); translate([0,0,LowestHeight+MiddleHeight]) cylinder(TopHeight,TopRadius1,TopRadius2); } translate([0,0,LowestHeight+MiddleHeight]) for(i=[0 :Divots-1]){ rotate(i*360/Divots, [0, 0 , 1]) translate([0, TopRadius2-1 ,0]) cube([1,2,TopHeight+10]);} translate([0,0,-0.100]) cylinder(LowestHeight+MiddleHeight+TopHeight-3,InnerRadius,InnerRadius); translate([0,0,FullHeight-1]) difference(){ cylinder(2,19,19); cylinder(2,18.250,18.250); }} // BLOCK 3 difference(){ cylinder(FullHeight-1.100,CenterRadius,CenterRadius); translate([0,0,-0.100]) difference(){ cylinder(FullHeight-1.100,CenterInnerRadius,CenterInnerRadius+0.100); translate([-CenterRadius,CenterRadius-3.500,0]) cube([CenterDiameter,CenterDiameter,FullHeight]); }} // BLOCK 4 translate([0,0,0]) for(i=[0:3]) rotate([0,0,45]) rotate(i*360/4, [0,0,1]) translate([-1,CenterRadius-0.500,5]) cube([2,InnerRadius-CenterRadius+0.600,FullHeight-6.100]);
// BLOCK 1 LowestDiameter=44.500; LowestRadius=LowestDiameter/2; LowestHeight=3; MiddleDiameter=46.500; MiddleRadius=MiddleDiameter/2; MiddleHeight=7; TopDiameter1=47.500; TopDiameter2=46.000; TopRadius1=TopDiameter1/2; TopRadius2=TopDiameter2/2; TopHeight=13; InnerDiameter=41.500; InnerRadius=InnerDiameter/2; CenterDiameter=12; CenterRadius=CenterDiameter/2; CenterInnerRadius=3.700; Divots=45; FullHeight=LowestHeight+MiddleHeight+TopHeight; // BLOCK 2 difference(){ union(){ cylinder(LowestHeight,LowestRadius,LowestRadius); translate([0,0,LowestHeight]) cylinder(MiddleHeight,MiddleRadius,MiddleRadius); translate([0,0,LowestHeight+MiddleHeight]) cylinder(TopHeight,TopRadius1,TopRadius2); } translate([0,0,LowestHeight+MiddleHeight]) for(i=[0 :Divots-1]){ rotate(i*360/Divots, [0, 0 , 1]) translate([0, TopRadius2-1 ,0]) cube([1,2,TopHeight+10]);} translate([0,0,-0.100]) cylinder(LowestHeight+MiddleHeight+TopHeight-3,InnerRadius,InnerRadius); translate([0,0,FullHeight-1]) difference(){ cylinder(2,19,19); cylinder(2,18.250,18.250); }} // BLOCK 3 difference(){ cylinder(FullHeight-1.100,CenterRadius,CenterRadius); translate([0,0,-0.100]) difference(){ cylinder(FullHeight-1.100,CenterInnerRadius,CenterInnerRadius+0.100); translate([-CenterRadius,CenterRadius-3.500,0]) cube([CenterDiameter,CenterDiameter,FullHeight]); }} // BLOCK 4 translate([0,0,0]) for(i=[0:3]) rotate([0,0,45]) rotate(i*360/4, [0,0,1]) translate([-1,CenterRadius-0.500,5]) cube([2,InnerRadius-CenterRadius+0.600,FullHeight-6.100]);
9d254586-10f4-4285-a64c-550ecbec34a9
// BLOCK 1 h=16; b=15; a=35; g=17; t=4; o=6.500; // BLOCK 2 difference () { union () { translate([0,0,0]) cube([b,t*2,h]); hull () { translate([b/2,2*t*0.750,0]) cylinder(d=t,h=h); translate([b/2+a+g+t,2*t*0.700+4.500,0]) cylinder(d=t*1.200,h=h); } hull () { translate([b/2,2*t*0.250,0]) cylinder(d=t,h=h); translate([b/2+a+g+t+1,2*t*0.300-4.500,0]) cylinder(d=t*1.200,h=h); } translate([b+a-4,5.300,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a,5,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+4,5,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+8,5,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+12,5,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a-2.500,-3,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+1.500,-2.500,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+5.500,-2.500,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+9.500,-2.500,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+13.500,-2.500,0]) rotate([0,0,45]) cube([4,4,h]); } translate([b/2+a+g+t,-5,-1]) cube([5,20,h+2]); translate([-2,-1,3]) rotate([0,60,0]) cube([5,t*2+2,2]); translate([0,-1,h-3]) rotate([0,-60,0]) cube([5,t*2+2,2]); translate([b+a+g-3,-t-2.500,-1]) rotate([0,0,45]) cube([4,3,h+2]); translate([b+a+g-3,2*t+2,-1]) rotate([0,0,45]) cube([3,4,h+2]); translate([b/2,t*2+8,h/2]) rotate([90,0,0]) cylinder(d=o,h=t*2+16); translate([b+a-o-4,t*2+8,h/2]) rotate([90,0,0]) cylinder(d=o,h=t*2+16); translate([b,t,-1]) cylinder(d=t*0.250,h=h+2,$fn=16); translate([b*1.500,t,-1]) cylinder(d=t,h=h+2,$fn=16); translate([b*2.000,t,-1]) cylinder(d=t+1,h=h+2,$fn=16); }
// BLOCK 1 h=16; b=15; a=35; g=17; t=4; o=6.500; // BLOCK 2 difference () { union () { translate([0,0,0]) cube([b,t*2,h]); hull () { translate([b/2,2*t*0.750,0]) cylinder(d=t,h=h); translate([b/2+a+g+t,2*t*0.700+4.500,0]) cylinder(d=t*1.200,h=h); } hull () { translate([b/2,2*t*0.250,0]) cylinder(d=t,h=h); translate([b/2+a+g+t+1,2*t*0.300-4.500,0]) cylinder(d=t*1.200,h=h); } translate([b+a-4,5.300,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a,5,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+4,5,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+8,5,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+12,5,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a-2.500,-3,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+1.500,-2.500,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+5.500,-2.500,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+9.500,-2.500,0]) rotate([0,0,45]) cube([4,4,h]); translate([b+a+13.500,-2.500,0]) rotate([0,0,45]) cube([4,4,h]); } translate([b/2+a+g+t,-5,-1]) cube([5,20,h+2]); translate([-2,-1,3]) rotate([0,60,0]) cube([5,t*2+2,2]); translate([0,-1,h-3]) rotate([0,-60,0]) cube([5,t*2+2,2]); translate([b+a+g-3,-t-2.500,-1]) rotate([0,0,45]) cube([4,3,h+2]); translate([b+a+g-3,2*t+2,-1]) rotate([0,0,45]) cube([3,4,h+2]); translate([b/2,t*2+8,h/2]) rotate([90,0,0]) cylinder(d=o,h=t*2+16); translate([b+a-o-4,t*2+8,h/2]) rotate([90,0,0]) cylinder(d=o,h=t*2+16); translate([b,t,-1]) cylinder(d=t*0.250,h=h+2,$fn=16); translate([b*1.500,t,-1]) cylinder(d=t,h=h+2,$fn=16); translate([b*2.000,t,-1]) cylinder(d=t+1,h=h+2,$fn=16); }
dbd4578f-d7c9-47c3-85c5-0e4f8923975c
// BLOCK 1 lid_diameter = 76; lid_height = 19; lid_count = 9; delta = 3; base_height = 12; wall_thickness = 7; slot_width_tweak = 0; smoothness = 100; MAX_PRINT_HEIGHT = 200; MAX_PRINT_DIAMETER = 200; assert((lid_count > 0), "lid count must be greater than zero!!!"); height_for_lids = lid_height * lid_count; height_total = height_for_lids + base_height; echo(" Height for Lids: ", height_for_lids); echo("Base Height: ", base_height); echo(" Height Total: ", height_total); echo("Max Print Height: ", MAX_PRINT_HEIGHT); assert((height_total < MAX_PRINT_HEIGHT), "TOO MANY LIDS"); max_diameter = lid_diameter + delta + wall_thickness; if (max_diameter > MAX_PRINT_DIAMETER) { max_diameter = MAX_PRINT_DIAMETER - 3; } r_outer = max_diameter / 2; r_inner = (lid_diameter + delta) / 2; $fn = smoothness; slot_width = r_outer + slot_width_tweak; // BLOCK 2 difference() { difference() { cylinder(h = height_total, r1 = r_outer, r2 = r_outer, center = false); translate([0,0,base_height]) cylinder(h = height_total, r1 = r_inner, r2 = r_inner, center = false); } translate([0,0,((MAX_PRINT_HEIGHT+10)/2)+base_height]) { union() { cube([slot_width, max_diameter+25, MAX_PRINT_HEIGHT+10], center=true); cube([max_diameter+25, slot_width, MAX_PRINT_HEIGHT+10], center=true); } } }
// BLOCK 1 lid_diameter = 76; lid_height = 19; lid_count = 9; delta = 3; base_height = 12; wall_thickness = 7; slot_width_tweak = 0; smoothness = 100; MAX_PRINT_HEIGHT = 200; MAX_PRINT_DIAMETER = 200; assert((lid_count > 0), "lid count must be greater than zero!!!"); height_for_lids = lid_height * lid_count; height_total = height_for_lids + base_height; echo(" Height for Lids: ", height_for_lids); echo("Base Height: ", base_height); echo(" Height Total: ", height_total); echo("Max Print Height: ", MAX_PRINT_HEIGHT); assert((height_total < MAX_PRINT_HEIGHT), "TOO MANY LIDS"); max_diameter = lid_diameter + delta + wall_thickness; if (max_diameter > MAX_PRINT_DIAMETER) { max_diameter = MAX_PRINT_DIAMETER - 3; } r_outer = max_diameter / 2; r_inner = (lid_diameter + delta) / 2; $fn = smoothness; slot_width = r_outer + slot_width_tweak; // BLOCK 2 difference() { difference() { cylinder(h = height_total, r1 = r_outer, r2 = r_outer, center = false); translate([0,0,base_height]) cylinder(h = height_total, r1 = r_inner, r2 = r_inner, center = false); } translate([0,0,((MAX_PRINT_HEIGHT+10)/2)+base_height]) { union() { cube([slot_width, max_diameter+25, MAX_PRINT_HEIGHT+10], center=true); cube([max_diameter+25, slot_width, MAX_PRINT_HEIGHT+10], center=true); } } }
67dfb818-a75c-450e-9c0e-a3dee4cde364
// BLOCK 1 $fn=100; d1=50; w1=6; h1=50; d2=50; w2=10; h2=50; a2=30; // BLOCK 2 difference() { union(){ cylinder(d=d1,h=h1); translate([0,0,h1-5]) rotate([a2,0,0]) cylinder(d=d2,h=h2); translate([0,0,h1-5]) rotate([-a2,0,0]) cylinder(d=d2,h=h2); } cylinder(d=d1-w1,h=h1); translate([0,0,h1-5]) rotate([a2,0,0]) cylinder(d=d2-w2,h=h2+5); translate([0,0,h1-5]) rotate([-a2,0,0]) cylinder(d=d2-w2,h=h2+5); }
// BLOCK 1 $fn=100; d1=50; w1=6; h1=50; d2=50; w2=10; h2=50; a2=30; // BLOCK 2 difference() { union(){ cylinder(d=d1,h=h1); translate([0,0,h1-5]) rotate([a2,0,0]) cylinder(d=d2,h=h2); translate([0,0,h1-5]) rotate([-a2,0,0]) cylinder(d=d2,h=h2); } cylinder(d=d1-w1,h=h1); translate([0,0,h1-5]) rotate([a2,0,0]) cylinder(d=d2-w2,h=h2+5); translate([0,0,h1-5]) rotate([-a2,0,0]) cylinder(d=d2-w2,h=h2+5); }
38f56080-67f6-4a62-88ea-2819d6e78228
// BLOCK 1 dx=.7; dz=-3.000; dRing = 31+dx; dRingInnen = 29.400+dx; hRing = 4+dz; dUnten = 35+dx; dUntenInnen = 33+dx; hUnten = 5.500-dz; dAussen = 54; zPaddlePlus = 4; rotorArmZ = hRing+hUnten; f = 60; // BLOCK 2 difference(){ union(){ cylinder(d1=dRing+3, d2=dRing, h=hRing, $fn=f); translate([0,0,-hUnten]) cylinder(d1=dUnten, d2=dUnten-1, h=hUnten, $fn=f); translate([0,0,-hUnten]){ rotorR = dAussen/2; cubR = 1; rotorCnt = 3; rotorArmW = 4; for(lauf=[0:rotorCnt-1]){ angle = 360*lauf/rotorCnt+$t*360/rotorCnt; rotate([0,0,angle]){ rotate([0,0,90]) translate([0,-rotorArmW,0]) cube([rotorR-cubR+.3,rotorArmW,rotorArmZ+zPaddlePlus]); } } } } translate([0,0,zPaddlePlus-.5]) cylinder(d=dRingInnen+15, h=(hRing+hUnten)+.2+zPaddlePlus, $fn=f); translate([0,0,-.1-hUnten]) cylinder(d=dRingInnen, h=(hRing+hUnten)+.2+zPaddlePlus, $fn=f); translate([0,0,-hUnten-.1]) cylinder(d1=dUntenInnen, d2=dUntenInnen-1, h=hUnten+.2-2, $fn=f); }
// BLOCK 1 dx=.7; dz=-3.000; dRing = 31+dx; dRingInnen = 29.400+dx; hRing = 4+dz; dUnten = 35+dx; dUntenInnen = 33+dx; hUnten = 5.500-dz; dAussen = 54; zPaddlePlus = 4; rotorArmZ = hRing+hUnten; f = 60; // BLOCK 2 difference(){ union(){ cylinder(d1=dRing+3, d2=dRing, h=hRing, $fn=f); translate([0,0,-hUnten]) cylinder(d1=dUnten, d2=dUnten-1, h=hUnten, $fn=f); translate([0,0,-hUnten]){ rotorR = dAussen/2; cubR = 1; rotorCnt = 3; rotorArmW = 4; for(lauf=[0:rotorCnt-1]){ angle = 360*lauf/rotorCnt+$t*360/rotorCnt; rotate([0,0,angle]){ rotate([0,0,90]) translate([0,-rotorArmW,0]) cube([rotorR-cubR+.3,rotorArmW,rotorArmZ+zPaddlePlus]); } } } } translate([0,0,zPaddlePlus-.5]) cylinder(d=dRingInnen+15, h=(hRing+hUnten)+.2+zPaddlePlus, $fn=f); translate([0,0,-.1-hUnten]) cylinder(d=dRingInnen, h=(hRing+hUnten)+.2+zPaddlePlus, $fn=f); translate([0,0,-hUnten-.1]) cylinder(d1=dUntenInnen, d2=dUntenInnen-1, h=hUnten+.2-2, $fn=f); }
c913dff0-f9f5-4b60-bc70-71a476bbbbc0
// BLOCK 1 chuckRad = 50; chuckPCD = 90; chuckScrewDiam = 6.400; discRad = 80; discHeight = 5; ringRad = 75; divisions = 100; centerHoleRad = 25.500; pegHoleRad = 1.250; $fn = 50; // BLOCK 2 module plate() { difference() { cylinder(r = discRad, h = discHeight); translate( [0, 0, discHeight - 0.100] ) difference() { cylinder(r = chuckRad + 0.200, h = 0.200); cylinder(r = chuckRad, h = 0.200); } translate( [0, 0, -0.100] ) cylinder(r = centerHoleRad, discHeight + 0.200); for (i = [1 : 3] ) rotate( i * 360 / 3 ) translate( [0, chuckPCD/2, -0.100] ) cylinder(d = chuckScrewDiam, h = discHeight + 0.200); for (i = [1 : divisions] ) rotate( ( i * 360 / divisions) ) translate( [0, ringRad, -0.100] ) cylinder(r = pegHoleRad, h = discHeight + 0.200); translate( [0, ringRad - 15, discHeight] ) sphere(r = pegHoleRad); count10 = floor(divisions / 10); for (i = [0 : count10] ) rotate( ( i * 360 / divisions * 10) ) translate( [0, ringRad - 10, discHeight] ) sphere(r = pegHoleRad); count5 = floor(divisions / 5); for(i = [0 : count5] ) rotate( ( i * 360 / count5) ) translate([0, ringRad - 5, discHeight]) sphere(r = pegHoleRad); } } // BLOCK 3 module test() { difference() { cylinder(r = chuckRad + 5, h = discHeight); translate( [0, 0, discHeight - 0.100] ) difference() { cylinder(r = chuckRad + 0.200, h = 0.200); cylinder(r = chuckRad, h = 0.200); } translate( [0, 0, -0.100] ) cylinder(r = centerHoleRad, discHeight + 0.200); for (i = [1 : 3] ) rotate( i * 360 / 3 ) translate( [0, chuckPCD/2, -0.100] ) cylinder(d = chuckScrewDiam, h = discHeight + 0.200); for (i = [1 : 3] ) rotate( i * 360 / 3 + 60) translate( [0, chuckPCD/2, -0.100] ) cylinder(r = pegHoleRad, h = discHeight + 0.200); for (i = [1 : 3] ) rotate( i * 360 / 3 + 60) translate( [0, chuckPCD/2 - 10, discHeight] ) sphere(r = pegHoleRad); } } plate();
// BLOCK 1 chuckRad = 50; chuckPCD = 90; chuckScrewDiam = 6.400; discRad = 80; discHeight = 5; ringRad = 75; divisions = 100; centerHoleRad = 25.500; pegHoleRad = 1.250; $fn = 50; // BLOCK 2 module plate() { difference() { cylinder(r = discRad, h = discHeight); translate( [0, 0, discHeight - 0.100] ) difference() { cylinder(r = chuckRad + 0.200, h = 0.200); cylinder(r = chuckRad, h = 0.200); } translate( [0, 0, -0.100] ) cylinder(r = centerHoleRad, discHeight + 0.200); for (i = [1 : 3] ) rotate( i * 360 / 3 ) translate( [0, chuckPCD/2, -0.100] ) cylinder(d = chuckScrewDiam, h = discHeight + 0.200); for (i = [1 : divisions] ) rotate( ( i * 360 / divisions) ) translate( [0, ringRad, -0.100] ) cylinder(r = pegHoleRad, h = discHeight + 0.200); translate( [0, ringRad - 15, discHeight] ) sphere(r = pegHoleRad); count10 = floor(divisions / 10); for (i = [0 : count10] ) rotate( ( i * 360 / divisions * 10) ) translate( [0, ringRad - 10, discHeight] ) sphere(r = pegHoleRad); count5 = floor(divisions / 5); for(i = [0 : count5] ) rotate( ( i * 360 / count5) ) translate([0, ringRad - 5, discHeight]) sphere(r = pegHoleRad); } } // BLOCK 3 module test() { difference() { cylinder(r = chuckRad + 5, h = discHeight); translate( [0, 0, discHeight - 0.100] ) difference() { cylinder(r = chuckRad + 0.200, h = 0.200); cylinder(r = chuckRad, h = 0.200); } translate( [0, 0, -0.100] ) cylinder(r = centerHoleRad, discHeight + 0.200); for (i = [1 : 3] ) rotate( i * 360 / 3 ) translate( [0, chuckPCD/2, -0.100] ) cylinder(d = chuckScrewDiam, h = discHeight + 0.200); for (i = [1 : 3] ) rotate( i * 360 / 3 + 60) translate( [0, chuckPCD/2, -0.100] ) cylinder(r = pegHoleRad, h = discHeight + 0.200); for (i = [1 : 3] ) rotate( i * 360 / 3 + 60) translate( [0, chuckPCD/2 - 10, discHeight] ) sphere(r = pegHoleRad); } } plate();
bb844702-7312-4b22-83df-c35127fe9894
// BLOCK 1 height=50; large_pocket_size = 17; large_pocket_rows = 3; large_pocket_cols = 4; small_pocket_size = 10; small_pocket_rows = 5; small_pocket_cols = 7; shape="square"; // BLOCK 2 module __stop_customizer__() {} overall_x=small_pocket_cols*(small_pocket_size+0.500)+1.500; overall_y=large_pocket_rows*(large_pocket_size+1) + small_pocket_rows*(small_pocket_size+0.500) + 3; echo(str("overall_x=", overall_x)); echo(str("overall_y=", overall_y)); // BLOCK 3 module material() { cube([overall_x, overall_y, height]); } // BLOCK 4 module cutout(size) { if(shape=="square") { cube([size,size,height*2], center=true); } else { cylinder(h=height*2, d=size, center=true, $fn=64); } } // BLOCK 5 module small_cutouts() { d=small_pocket_size; x0=d/2+1; y0=x0; xstep=small_pocket_size + 0.500; ystep=xstep; for (y=[0:small_pocket_rows-1]) { for (x=[0:small_pocket_cols-1]) { translate([x*xstep+x0, y*ystep+y0, height+3]) { cutout(d); } } } } // BLOCK 6 module large_cutouts() { d=large_pocket_size; w=d*large_pocket_cols+(1*(large_pocket_cols-1)); border=(overall_x - w)/2; x0=d/2+border; y0=small_pocket_rows*(small_pocket_size+0.500)+(d/2+2); xstep=d+1; ystep=xstep; for (y=[0:large_pocket_rows-1]) { for (x=[0:large_pocket_cols-1]) { translate([x*xstep+x0, y*ystep+y0, height+3]) { cutout(d); } } } } // BLOCK 7 difference() { material(); union() { small_cutouts(); large_cutouts(); } }
// BLOCK 1 height=50; large_pocket_size = 17; large_pocket_rows = 3; large_pocket_cols = 4; small_pocket_size = 10; small_pocket_rows = 5; small_pocket_cols = 7; shape="square"; // BLOCK 2 module __stop_customizer__() {} overall_x=small_pocket_cols*(small_pocket_size+0.500)+1.500; overall_y=large_pocket_rows*(large_pocket_size+1) + small_pocket_rows*(small_pocket_size+0.500) + 3; echo(str("overall_x=", overall_x)); echo(str("overall_y=", overall_y)); // BLOCK 3 module material() { cube([overall_x, overall_y, height]); } // BLOCK 4 module cutout(size) { if(shape=="square") { cube([size,size,height*2], center=true); } else { cylinder(h=height*2, d=size, center=true, $fn=64); } } // BLOCK 5 module small_cutouts() { d=small_pocket_size; x0=d/2+1; y0=x0; xstep=small_pocket_size + 0.500; ystep=xstep; for (y=[0:small_pocket_rows-1]) { for (x=[0:small_pocket_cols-1]) { translate([x*xstep+x0, y*ystep+y0, height+3]) { cutout(d); } } } } // BLOCK 6 module large_cutouts() { d=large_pocket_size; w=d*large_pocket_cols+(1*(large_pocket_cols-1)); border=(overall_x - w)/2; x0=d/2+border; y0=small_pocket_rows*(small_pocket_size+0.500)+(d/2+2); xstep=d+1; ystep=xstep; for (y=[0:large_pocket_rows-1]) { for (x=[0:large_pocket_cols-1]) { translate([x*xstep+x0, y*ystep+y0, height+3]) { cutout(d); } } } } // BLOCK 7 difference() { material(); union() { small_cutouts(); large_cutouts(); } }
07c577ab-f59e-47e6-afec-77d4e11e8af9
// BLOCK 1 height=30; sidelength = 20; center=[0,0,0]; rmax=50; rmin=40; stepsize=12; thickness=2; motorsupports=6; motorradius=10; width=rmax-rmin; rot=180; rotp=rot+stepsize; // BLOCK 2 module ramp() { linear_extrude(height=height,twist=2*360+stepsize) { for(i=[0:stepsize:rot]) { polygon([ [cos(i)*(rmax-(i/rotp)*width-thickness),sin(i)*(rmax-(i/rotp)*width-thickness)], [cos(i+stepsize)*(rmax-((i+stepsize)/rotp)*width-thickness),sin(i+stepsize)*(rmax-((i+stepsize)/rotp)*width-thickness)], [cos(i+stepsize)*(rmax-((i+stepsize)/rotp)*width),sin(i+stepsize)*(rmax-((i+stepsize)/rotp)*width)], [cos(i)*(rmax-(i/rotp)*width),sin(i)*(rmax-(i/rotp)*width)], ]); } } linear_extrude(height=height,twist=2*360+stepsize) { for(i=[(rot+stepsize)/2:stepsize:rot]) { polygon([ [cos(i)*(rmax-(1-(i/rotp))*width-thickness),sin(i)*(rmax-(1-(i/rotp))*width-thickness)], [cos(i+stepsize)*(rmax-(1-((i+stepsize)/rotp))*width-thickness),sin(i+stepsize)*(rmax-(1-((i+stepsize)/rotp))*width-thickness)], [cos(i+stepsize)*(rmax-(1-((i+stepsize)/rotp))*width),sin(i+stepsize)*(rmax-(1-((i+stepsize)/rotp))*width)], [cos(i)*(rmax-(1-(i/rotp))*width),sin(i)*(rmax-(1-(i/rotp))*width)], ]); } } } // BLOCK 3 module chicane() { linear_extrude(height=thickness) { polygon([ [0,0], [10,0], [10,5] ]); } } // BLOCK 4 module bowl() { difference() { union() { difference() { union() { cylinder( r=rmax,h=height+thickness ); translate([-rmax+thickness/2,0,0]) cube([width,rmax,height]); } translate([0,0,thickness]) cylinder( r=rmax-thickness,h=height+thickness ); } cylinder(r1=height,r2=0,h=height); } difference() { translate([0,0,-1]) cylinder(r1=height-thickness,r2=0,h=height-thickness); for(i=[0:1:motorsupports]) { rotate([0,0,360*(i/motorsupports)]) translate([motorradius,0,0]) cube([height,thickness,height]); } } } } // BLOCK 5 module exit( factor=1) { side=width; translate([0,-rmax*(factor-1)/2,-width/2]) rotate([0,-45,0]) cube([side,rmax*factor,side]); } // BLOCK 6 module support(length) { } // BLOCK 7 module mounting() { for(i=[0:1:motorsupports]) { rotate([0,0,360*i/motorsupports]) translate([rmax+thickness,0,0]) difference() { union() { translate([-2*thickness,-2*thickness,0]) cube([2*thickness,4*thickness,2*thickness]); cylinder(r=2*thickness,h=2*thickness); } cylinder(r=thickness,h=2*thickness); } } } cent=(rmax+rmin-thickness)/2; difference() // BLOCK 8 { union() { bowl(); translate([5,-rmin,11]) rotate([90,-3,180]) chicane(); translate([-cent,rmax*0.440,0]) { rotate([0,0,20]) support(rmax*0.200); rotate([0,0,-20]) support(rmax*0.200); } translate([-rmax*0.900, rmax*0.540,0]) support(rmax*0.500); } translate([-cent,0,height+thickness/2]) exit(1.100); translate([-rmax+thickness/2+width*0.200,0.600*rmax,0]) cube([width*0.600,rmax,height]); translate([-cent,rmax,0]) rotate([45,0,0]) #cube([2*width,2*height,2*height],center=true); } mounting();
// BLOCK 1 height=30; sidelength = 20; center=[0,0,0]; rmax=50; rmin=40; stepsize=12; thickness=2; motorsupports=6; motorradius=10; width=rmax-rmin; rot=180; rotp=rot+stepsize; // BLOCK 2 module ramp() { linear_extrude(height=height,twist=2*360+stepsize) { for(i=[0:stepsize:rot]) { polygon([ [cos(i)*(rmax-(i/rotp)*width-thickness),sin(i)*(rmax-(i/rotp)*width-thickness)], [cos(i+stepsize)*(rmax-((i+stepsize)/rotp)*width-thickness),sin(i+stepsize)*(rmax-((i+stepsize)/rotp)*width-thickness)], [cos(i+stepsize)*(rmax-((i+stepsize)/rotp)*width),sin(i+stepsize)*(rmax-((i+stepsize)/rotp)*width)], [cos(i)*(rmax-(i/rotp)*width),sin(i)*(rmax-(i/rotp)*width)], ]); } } linear_extrude(height=height,twist=2*360+stepsize) { for(i=[(rot+stepsize)/2:stepsize:rot]) { polygon([ [cos(i)*(rmax-(1-(i/rotp))*width-thickness),sin(i)*(rmax-(1-(i/rotp))*width-thickness)], [cos(i+stepsize)*(rmax-(1-((i+stepsize)/rotp))*width-thickness),sin(i+stepsize)*(rmax-(1-((i+stepsize)/rotp))*width-thickness)], [cos(i+stepsize)*(rmax-(1-((i+stepsize)/rotp))*width),sin(i+stepsize)*(rmax-(1-((i+stepsize)/rotp))*width)], [cos(i)*(rmax-(1-(i/rotp))*width),sin(i)*(rmax-(1-(i/rotp))*width)], ]); } } } // BLOCK 3 module chicane() { linear_extrude(height=thickness) { polygon([ [0,0], [10,0], [10,5] ]); } } // BLOCK 4 module bowl() { difference() { union() { difference() { union() { cylinder( r=rmax,h=height+thickness ); translate([-rmax+thickness/2,0,0]) cube([width,rmax,height]); } translate([0,0,thickness]) cylinder( r=rmax-thickness,h=height+thickness ); } cylinder(r1=height,r2=0,h=height); } difference() { translate([0,0,-1]) cylinder(r1=height-thickness,r2=0,h=height-thickness); for(i=[0:1:motorsupports]) { rotate([0,0,360*(i/motorsupports)]) translate([motorradius,0,0]) cube([height,thickness,height]); } } } } // BLOCK 5 module exit( factor=1) { side=width; translate([0,-rmax*(factor-1)/2,-width/2]) rotate([0,-45,0]) cube([side,rmax*factor,side]); } // BLOCK 6 module support(length) { } // BLOCK 7 module mounting() { for(i=[0:1:motorsupports]) { rotate([0,0,360*i/motorsupports]) translate([rmax+thickness,0,0]) difference() { union() { translate([-2*thickness,-2*thickness,0]) cube([2*thickness,4*thickness,2*thickness]); cylinder(r=2*thickness,h=2*thickness); } cylinder(r=thickness,h=2*thickness); } } } cent=(rmax+rmin-thickness)/2; difference() // BLOCK 8 { union() { bowl(); translate([5,-rmin,11]) rotate([90,-3,180]) chicane(); translate([-cent,rmax*0.440,0]) { rotate([0,0,20]) support(rmax*0.200); rotate([0,0,-20]) support(rmax*0.200); } translate([-rmax*0.900, rmax*0.540,0]) support(rmax*0.500); } translate([-cent,0,height+thickness/2]) exit(1.100); translate([-rmax+thickness/2+width*0.200,0.600*rmax,0]) cube([width*0.600,rmax,height]); translate([-cent,rmax,0]) rotate([45,0,0]) #cube([2*width,2*height,2*height],center=true); } mounting();
3039ba63-e26a-471f-ac83-21e67847c5ab
// BLOCK 1 _1_insideDiameter = 24; _2_outsideDiameter = 48; _3_height = 6; _4_radialCount = 6; _5_thickness = 0.800; _6_resolution = 60; // BLOCK 2 module smallArc(radius0, radius1, angle, depth) { thickness = radius1 - radius0; eps = 0.100; union() { difference() { cylinder(r=radius1, h=depth, center=true); cylinder(r=radius0, h=depth+2*eps, center=true); for(z=[0, 180 - angle]) { rotate([0,0,z]) translate([-radius1,0,0]) cube(size = [radius1*2, radius1*2, depth+eps], center=true); } } } } // BLOCK 3 module largeArc(radius0, radius1, angle, depth) { eps = 1; thickness = radius1 - radius0; cutAngle = 360-angle; centerRadius = (radius0 + radius1)/2.000; if (angle > 180) { union() { smallArc(radius0, radius1, 180, depth); rotate([0,0,-180 + eps]) { smallArc(radius0, radius1, angle-180 + eps, depth); } } } else { smallArc(radius0, radius1, angle, depth); } } // BLOCK 4 module stretchyBand(r1, r2, count, height, thickness) { angle = 180/count; eps = 0.100; overlap = 2; cord2 = 2 * r2 * sin(angle/2); outsideArc = 180 + angle + overlap; outsideRadius = cord2/sin(90-angle/2)/2; outsideOffset = r2 * cos(angle/2) + cos(90-angle/2) * outsideRadius; insideArc = 180 - angle + overlap; cord1 = 2 * r1 * sin(angle/2); insideRadius = cord1/sin(90-angle/2)/2; insideOffset = r1 * cos(angle/2) + cos(90-angle/2) * insideRadius; union() translate([0,0,height/2]) for(a = [0:angle*2:360]) { rotate([0,0,a]) { for(b=[0,angle]) { rotate([0,0,angle/2 - b]) translate([0,r1 + (r2-r1)/2,0]) { cube(size = [thickness, r2 - r1 + eps, height], center=true); } } translate([0,outsideOffset,0]) rotate([0,0,outsideArc/2]) { largeArc(outsideRadius-thickness/2,outsideRadius+thickness/2, outsideArc, height); } rotate([0,0,angle]) translate([0,insideOffset,0]) rotate([0,0,180 + insideArc/2]) { largeArc(insideRadius-thickness/2,insideRadius+thickness/2, insideArc, height); } } } } stretchyBand( _1_insideDiameter > _2_outsideDiameter ? _2_outsideDiameter/2 : _1_insideDiameter/2, _2_outsideDiameter/2, _4_radialCount, _3_height, _5_thickness, $fn=_6_resolution );
// BLOCK 1 _1_insideDiameter = 24; _2_outsideDiameter = 48; _3_height = 6; _4_radialCount = 6; _5_thickness = 0.800; _6_resolution = 60; // BLOCK 2 module smallArc(radius0, radius1, angle, depth) { thickness = radius1 - radius0; eps = 0.100; union() { difference() { cylinder(r=radius1, h=depth, center=true); cylinder(r=radius0, h=depth+2*eps, center=true); for(z=[0, 180 - angle]) { rotate([0,0,z]) translate([-radius1,0,0]) cube(size = [radius1*2, radius1*2, depth+eps], center=true); } } } } // BLOCK 3 module largeArc(radius0, radius1, angle, depth) { eps = 1; thickness = radius1 - radius0; cutAngle = 360-angle; centerRadius = (radius0 + radius1)/2.000; if (angle > 180) { union() { smallArc(radius0, radius1, 180, depth); rotate([0,0,-180 + eps]) { smallArc(radius0, radius1, angle-180 + eps, depth); } } } else { smallArc(radius0, radius1, angle, depth); } } // BLOCK 4 module stretchyBand(r1, r2, count, height, thickness) { angle = 180/count; eps = 0.100; overlap = 2; cord2 = 2 * r2 * sin(angle/2); outsideArc = 180 + angle + overlap; outsideRadius = cord2/sin(90-angle/2)/2; outsideOffset = r2 * cos(angle/2) + cos(90-angle/2) * outsideRadius; insideArc = 180 - angle + overlap; cord1 = 2 * r1 * sin(angle/2); insideRadius = cord1/sin(90-angle/2)/2; insideOffset = r1 * cos(angle/2) + cos(90-angle/2) * insideRadius; union() translate([0,0,height/2]) for(a = [0:angle*2:360]) { rotate([0,0,a]) { for(b=[0,angle]) { rotate([0,0,angle/2 - b]) translate([0,r1 + (r2-r1)/2,0]) { cube(size = [thickness, r2 - r1 + eps, height], center=true); } } translate([0,outsideOffset,0]) rotate([0,0,outsideArc/2]) { largeArc(outsideRadius-thickness/2,outsideRadius+thickness/2, outsideArc, height); } rotate([0,0,angle]) translate([0,insideOffset,0]) rotate([0,0,180 + insideArc/2]) { largeArc(insideRadius-thickness/2,insideRadius+thickness/2, insideArc, height); } } } } stretchyBand( _1_insideDiameter > _2_outsideDiameter ? _2_outsideDiameter/2 : _1_insideDiameter/2, _2_outsideDiameter/2, _4_radialCount, _3_height, _5_thickness, $fn=_6_resolution );
d1e79f7d-2a86-46c4-9d73-20cb04ab5ee7
// BLOCK 1 diam_element=6; diam_screw=4; boom_width=16; // BLOCK 2 module soporte_elemento() { difference() { union() { cube([50, 20, 10], center = true); translate([boom_width/2+3, 0, -10]) cube([6,20,10], center = true); translate([-boom_width/2-3, 0, -10]) cube([6,20,10], center = true); translate([25, 0, 0]) cylinder(h=10, r =10, center=true, $fn=100); translate([-25, 0, 0]) cylinder(h=10, r =10, center=true, $fn=100); } translate([0,0,5]) rotate([0,90,0]) cylinder(h=72, r=diam_element/2, center=true, $fn=100); cylinder(h=22, r=diam_screw/2, center=true, $fn=100); } } soporte_elemento();
// BLOCK 1 diam_element=6; diam_screw=4; boom_width=16; // BLOCK 2 module soporte_elemento() { difference() { union() { cube([50, 20, 10], center = true); translate([boom_width/2+3, 0, -10]) cube([6,20,10], center = true); translate([-boom_width/2-3, 0, -10]) cube([6,20,10], center = true); translate([25, 0, 0]) cylinder(h=10, r =10, center=true, $fn=100); translate([-25, 0, 0]) cylinder(h=10, r =10, center=true, $fn=100); } translate([0,0,5]) rotate([0,90,0]) cylinder(h=72, r=diam_element/2, center=true, $fn=100); cylinder(h=22, r=diam_screw/2, center=true, $fn=100); } } soporte_elemento();
98270a92-a839-46a7-b8ae-ec884e939c02
// BLOCK 1 base_diameter = 50; base_radius = base_diameter/2; base_height = 50; top_base_modifier = 0; tube_thickness = 3; tube_diameter = base_diameter-tube_thickness*2; tube_radius = tube_diameter/2; tube_height = 30; bolt_diameter = 3.700; bolt_radius = bolt_diameter/2; guide_diameter = 6.250; guide_radius = guide_diameter/2; bottom_height = base_height+tube_height; top_height = bottom_height+top_base_modifier; combined_height = base_height+top_height; both(); // BLOCK 2 module cutaway() { difference() { combined(); translate([0, -base_radius, combined_height/2]) cube([base_diameter, base_diameter, combined_height+2], center=true); } } // BLOCK 3 module combined() { color([150/255, 150/255, 0/255]) bottom(); %color([0/255, 150/255, 150/255]) translate([0, 0, top_height+base_height]) rotate([0, 180, 0]) top(); } // BLOCK 4 module both() { translate([-base_radius-1, 0, 0]) top(); translate([+base_radius+1, 0, 0]) bottom(); } // BLOCK 5 // BLOCK 6 module bottom() { difference() { union() { cylinder(h=base_height, r=base_radius); intersection() { translate([0, -base_radius-2, base_height/2]) rotate([0, 90, 90]) scale([1, 1, 2]) import_stl("makerbot_logo.stl", convexity=30); cylinder(h=base_height, r=base_radius+1); } translate([0, 0, base_height]) cylinder(h=tube_height, r=tube_radius); } translate([0, 0, 5]) cylinder(h=base_height+tube_height, r=tube_radius-tube_thickness); rotate([0, 0, -45]) translate([-base_radius-1, 0, base_height-guide_diameter]) rotate([0, 90, 0]) cylinder(h=base_diameter+2, r=guide_radius); rotate([0, 0, 45]) translate([-base_radius-1, 0, base_height-guide_diameter]) rotate([0, 90, 0]) cylinder(h=base_diameter+2, r=guide_radius); translate([0, 0, base_height/2]) teardrop(base_height/3.500, base_diameter+2, 90); mounting_holes(); } } // BLOCK 7 module mounting_holes() { translate([10, -10, -1]) cylinder(h=7, r=bolt_radius); translate([10, 10, -1]) cylinder(h=7, r=bolt_radius); translate([-10, -10, -1]) cylinder(h=7, r=bolt_radius); translate([-10, 10, -1]) cylinder(h=7, r=bolt_radius); } // BLOCK 8 module teardrop(radius, length, angle) { rotate([0, angle, 0]) union() { linear_extrude(height = length, center = true, convexity = radius, twist = 0) circle(r = radius, center = true, $fn = 30); linear_extrude(height = length, center = true, convexity = radius, twist = 0) projection(cut = false) rotate([0, -angle, 0]) translate([0, 0, radius * sin(45) * 1.500]) cylinder(h = radius * sin(45), r1 = radius * sin(45), r2 = 0, center = true, $fn = 30); } }
// BLOCK 1 base_diameter = 50; base_radius = base_diameter/2; base_height = 50; top_base_modifier = 0; tube_thickness = 3; tube_diameter = base_diameter-tube_thickness*2; tube_radius = tube_diameter/2; tube_height = 30; bolt_diameter = 3.700; bolt_radius = bolt_diameter/2; guide_diameter = 6.250; guide_radius = guide_diameter/2; bottom_height = base_height+tube_height; top_height = bottom_height+top_base_modifier; combined_height = base_height+top_height; both(); // BLOCK 2 module cutaway() { difference() { combined(); translate([0, -base_radius, combined_height/2]) cube([base_diameter, base_diameter, combined_height+2], center=true); } } // BLOCK 3 module combined() { color([150/255, 150/255, 0/255]) bottom(); %color([0/255, 150/255, 150/255]) translate([0, 0, top_height+base_height]) rotate([0, 180, 0]) top(); } // BLOCK 4 module both() { translate([-base_radius-1, 0, 0]) top(); translate([+base_radius+1, 0, 0]) bottom(); } // BLOCK 5 // BLOCK 6 module bottom() { difference() { union() { cylinder(h=base_height, r=base_radius); intersection() { translate([0, -base_radius-2, base_height/2]) rotate([0, 90, 90]) scale([1, 1, 2]) import_stl("makerbot_logo.stl", convexity=30); cylinder(h=base_height, r=base_radius+1); } translate([0, 0, base_height]) cylinder(h=tube_height, r=tube_radius); } translate([0, 0, 5]) cylinder(h=base_height+tube_height, r=tube_radius-tube_thickness); rotate([0, 0, -45]) translate([-base_radius-1, 0, base_height-guide_diameter]) rotate([0, 90, 0]) cylinder(h=base_diameter+2, r=guide_radius); rotate([0, 0, 45]) translate([-base_radius-1, 0, base_height-guide_diameter]) rotate([0, 90, 0]) cylinder(h=base_diameter+2, r=guide_radius); translate([0, 0, base_height/2]) teardrop(base_height/3.500, base_diameter+2, 90); mounting_holes(); } } // BLOCK 7 module mounting_holes() { translate([10, -10, -1]) cylinder(h=7, r=bolt_radius); translate([10, 10, -1]) cylinder(h=7, r=bolt_radius); translate([-10, -10, -1]) cylinder(h=7, r=bolt_radius); translate([-10, 10, -1]) cylinder(h=7, r=bolt_radius); } // BLOCK 8 module teardrop(radius, length, angle) { rotate([0, angle, 0]) union() { linear_extrude(height = length, center = true, convexity = radius, twist = 0) circle(r = radius, center = true, $fn = 30); linear_extrude(height = length, center = true, convexity = radius, twist = 0) projection(cut = false) rotate([0, -angle, 0]) translate([0, 0, radius * sin(45) * 1.500]) cylinder(h = radius * sin(45), r1 = radius * sin(45), r2 = 0, center = true, $fn = 30); } }
8d912c05-01a6-49e2-b0ff-467b375e6a39
// BLOCK 1 fullSize = [56, 30, 15]; sdSize = [3, 28, 14]; usbSize = [6, 14, 14]; msdSize = [2, 12, 10]; // BLOCK 2 difference() { cube(fullSize); translate([1, 1, 1]) cube(sdSize); translate([2+sdSize[0]*1, 1, 1]) cube(sdSize); translate([3+sdSize[0]*2, 1, 1]) cube(sdSize); translate([4+sdSize[0]*3, 1, 1]) cube(sdSize); translate([5+sdSize[0]*4, 1, 1]) cube(sdSize); c = 6+sdSize[0]*5; translate([c, 1, 1]) cube(usbSize); translate([c+1+usbSize[0]*1, 1, 1]) cube(usbSize); translate([c+2+usbSize[0]*2, 1, 1]) cube(usbSize); translate([c+3+usbSize[0]*3, 1, 1]) cube(usbSize); translate([c+4+usbSize[0]*4, 1, 1]) cube(usbSize); h = usbSize[1]+2; translate([c, h, 5]) cube(msdSize); translate([c+1+msdSize[0]*1, h, 5]) cube(msdSize); translate([c+2+msdSize[0]*2, h, 5]) cube(msdSize); translate([c+3+msdSize[0]*3, h, 5]) cube(msdSize); translate([c+4+msdSize[0]*4, h, 5]) cube(msdSize); translate([c+5+msdSize[0]*5, h, 5]) cube(msdSize); translate([c+6+msdSize[0]*6, h, 5]) cube(msdSize); translate([c+7+msdSize[0]*7, h, 5]) cube(msdSize); translate([c+8+msdSize[0]*8, h, 5]) cube(msdSize); translate([c+9+msdSize[0]*9, h, 5]) cube(msdSize); translate([c+10+msdSize[0]*10, h, 5]) cube(msdSize); translate([c, h, 0]) cube([33, 12, 4]); }
// BLOCK 1 fullSize = [56, 30, 15]; sdSize = [3, 28, 14]; usbSize = [6, 14, 14]; msdSize = [2, 12, 10]; // BLOCK 2 difference() { cube(fullSize); translate([1, 1, 1]) cube(sdSize); translate([2+sdSize[0]*1, 1, 1]) cube(sdSize); translate([3+sdSize[0]*2, 1, 1]) cube(sdSize); translate([4+sdSize[0]*3, 1, 1]) cube(sdSize); translate([5+sdSize[0]*4, 1, 1]) cube(sdSize); c = 6+sdSize[0]*5; translate([c, 1, 1]) cube(usbSize); translate([c+1+usbSize[0]*1, 1, 1]) cube(usbSize); translate([c+2+usbSize[0]*2, 1, 1]) cube(usbSize); translate([c+3+usbSize[0]*3, 1, 1]) cube(usbSize); translate([c+4+usbSize[0]*4, 1, 1]) cube(usbSize); h = usbSize[1]+2; translate([c, h, 5]) cube(msdSize); translate([c+1+msdSize[0]*1, h, 5]) cube(msdSize); translate([c+2+msdSize[0]*2, h, 5]) cube(msdSize); translate([c+3+msdSize[0]*3, h, 5]) cube(msdSize); translate([c+4+msdSize[0]*4, h, 5]) cube(msdSize); translate([c+5+msdSize[0]*5, h, 5]) cube(msdSize); translate([c+6+msdSize[0]*6, h, 5]) cube(msdSize); translate([c+7+msdSize[0]*7, h, 5]) cube(msdSize); translate([c+8+msdSize[0]*8, h, 5]) cube(msdSize); translate([c+9+msdSize[0]*9, h, 5]) cube(msdSize); translate([c+10+msdSize[0]*10, h, 5]) cube(msdSize); translate([c, h, 0]) cube([33, 12, 4]); }
84bd0f0c-6da5-4c74-89b9-0359e646c196
// BLOCK 1 biggest_size=80; thickness = 2.500; clearance = 3; tension = 0.600; stages = 5; angle = 52; connector_angle=50; female_connector_shaving_angle=55; print_in_place = true; $fs = 1; $fa = 5; if (print_in_place) { for(stage = [0: stages - 1]) stage(biggest_size + thickness * 2 - (thickness + clearance) * 2 * stage, stage); } else { for(stage = [0: stages - 1]) rotate(stage * 45) translate([0, 0, -(thickness + clearance) * stage]) stage(biggest_size + thickness * 2 - (thickness + clearance) * 2 * stage, stage); } // BLOCK 2 module female_connector(sizeref, a, stage) { if (stage % 2==0) { rotate([0, 90, 45 + 180 * a]) translate([0, 0, -(sizeref / sin(angle) / 2 - thickness)]) cylinder(r1 = (clearance + thickness + tension)*2, r2 = (clearance + thickness + tension) , h = clearance + thickness + tension ); } else { rotate([0, 90, -45 + 180 * a]) translate([0, 0, -(sizeref / sin(angle) / 2 - thickness)]) cylinder(r1 = (clearance + thickness + tension)*2, r2 = (clearance + thickness + tension) , h = clearance + thickness + tension ); } } // BLOCK 3 module male_connector(sizeref, a, withtension, stage) { echo("Size Ref Tension", sizeref); echo("Stage Mod 2", stage % 2); if (withtension) { if (stage % 2==0) { myRadius = clearance + thickness + tension; rotate([0, 90, 45 + 180 * a]) translate([0, 0, (sizeref / sin(connector_angle) / 2 - thickness)]) cylinder(r1 = myRadius, r2 = 0, h = myRadius); } else { myRadius = clearance + thickness + tension; rotate([0, 90, -45 + 180 * a]) translate([0, 0, (sizeref / sin(connector_angle) / 2 - thickness)]) cylinder(r1 = myRadius, r2 = 0, h = myRadius); } } else { if (stage % 2==0) { myRadius = clearance + thickness; rotate([0, 90, -45 + 180 * a]) translate([0, 0, (sizeref / sin(connector_angle) / 2 - thickness)]) cylinder(r1 = myRadius, r2 = 0, h = myRadius); } else { myRadius = clearance + thickness; rotate([0, 90, 45 + 180 * a]) translate([0, 0, (sizeref / sin(connector_angle) / 2 - thickness)]) cylinder(r1 = myRadius, r2 = 0, h = myRadius); } } } // BLOCK 4 module stage(size, stage) difference() { previousStage = stage+1; previousSize = biggest_size + thickness * 2 - (thickness + clearance) * 2 * previousStage; echo("Stage ", stage, " Size ", size); echo("Previous Stage", previousStage, " Previous Size ", previousSize); union() { difference() { intersection() { sphere(size / sin(angle) / 2); cube(size - thickness * 2, center = true); } for(o = [0:2]) rotate([0, 90 + 90 * o, 90 + 45 * o]) cylinder(r = sqrt(abs(pow(size / sin(female_connector_shaving_angle), 2) - pow(size, 2))) / 2, h = size * 2, center = true); sphere((size / sin(angle) / 2)-((thickness+clearance+tension ))); difference() { sphere(size / sin(angle) / 2 - thickness, $fn=32); if (stage != stages - 1) { difference() { female_connector(size, 1, stage); male_connector(previousSize, 0, true, stage); } difference() { female_connector(size, 0, stage); male_connector(previousSize, 1, true, stage); } } } } if (stage != 0) for(a = [0, 1]) difference() { male_connector(size, a, false, stage); for(o = [0:2]) rotate([0, 90 + 90 * o, 90 + 45 * o]) cylinder(r = sqrt(abs(pow(size / sin(connector_angle), 2) - pow(size, 2))) / 2, h = size * 2, center = true); } } }
// BLOCK 1 biggest_size=80; thickness = 2.500; clearance = 3; tension = 0.600; stages = 5; angle = 52; connector_angle=50; female_connector_shaving_angle=55; print_in_place = true; $fs = 1; $fa = 5; if (print_in_place) { for(stage = [0: stages - 1]) stage(biggest_size + thickness * 2 - (thickness + clearance) * 2 * stage, stage); } else { for(stage = [0: stages - 1]) rotate(stage * 45) translate([0, 0, -(thickness + clearance) * stage]) stage(biggest_size + thickness * 2 - (thickness + clearance) * 2 * stage, stage); } // BLOCK 2 module female_connector(sizeref, a, stage) { if (stage % 2==0) { rotate([0, 90, 45 + 180 * a]) translate([0, 0, -(sizeref / sin(angle) / 2 - thickness)]) cylinder(r1 = (clearance + thickness + tension)*2, r2 = (clearance + thickness + tension) , h = clearance + thickness + tension ); } else { rotate([0, 90, -45 + 180 * a]) translate([0, 0, -(sizeref / sin(angle) / 2 - thickness)]) cylinder(r1 = (clearance + thickness + tension)*2, r2 = (clearance + thickness + tension) , h = clearance + thickness + tension ); } } // BLOCK 3 module male_connector(sizeref, a, withtension, stage) { echo("Size Ref Tension", sizeref); echo("Stage Mod 2", stage % 2); if (withtension) { if (stage % 2==0) { myRadius = clearance + thickness + tension; rotate([0, 90, 45 + 180 * a]) translate([0, 0, (sizeref / sin(connector_angle) / 2 - thickness)]) cylinder(r1 = myRadius, r2 = 0, h = myRadius); } else { myRadius = clearance + thickness + tension; rotate([0, 90, -45 + 180 * a]) translate([0, 0, (sizeref / sin(connector_angle) / 2 - thickness)]) cylinder(r1 = myRadius, r2 = 0, h = myRadius); } } else { if (stage % 2==0) { myRadius = clearance + thickness; rotate([0, 90, -45 + 180 * a]) translate([0, 0, (sizeref / sin(connector_angle) / 2 - thickness)]) cylinder(r1 = myRadius, r2 = 0, h = myRadius); } else { myRadius = clearance + thickness; rotate([0, 90, 45 + 180 * a]) translate([0, 0, (sizeref / sin(connector_angle) / 2 - thickness)]) cylinder(r1 = myRadius, r2 = 0, h = myRadius); } } } // BLOCK 4 module stage(size, stage) difference() { previousStage = stage+1; previousSize = biggest_size + thickness * 2 - (thickness + clearance) * 2 * previousStage; echo("Stage ", stage, " Size ", size); echo("Previous Stage", previousStage, " Previous Size ", previousSize); union() { difference() { intersection() { sphere(size / sin(angle) / 2); cube(size - thickness * 2, center = true); } for(o = [0:2]) rotate([0, 90 + 90 * o, 90 + 45 * o]) cylinder(r = sqrt(abs(pow(size / sin(female_connector_shaving_angle), 2) - pow(size, 2))) / 2, h = size * 2, center = true); sphere((size / sin(angle) / 2)-((thickness+clearance+tension ))); difference() { sphere(size / sin(angle) / 2 - thickness, $fn=32); if (stage != stages - 1) { difference() { female_connector(size, 1, stage); male_connector(previousSize, 0, true, stage); } difference() { female_connector(size, 0, stage); male_connector(previousSize, 1, true, stage); } } } } if (stage != 0) for(a = [0, 1]) difference() { male_connector(size, a, false, stage); for(o = [0:2]) rotate([0, 90 + 90 * o, 90 + 45 * o]) cylinder(r = sqrt(abs(pow(size / sin(connector_angle), 2) - pow(size, 2))) / 2, h = size * 2, center = true); } } }
eaf19022-3e98-465c-b6ac-92e1737b3934
// BLOCK 1 hl=170; hh=24; hhh=10; hw=8; hld=4; hls=145; hsd=15.800; hsh=20; cr=2; xw=0.350; // BLOCK 2 rotate([90,0,0]) translate([0,0,hsh]) difference(){ union(){ minkowski(){ union(){ intersection(){ translate([0,0,-hh]) scale([(hl/2)/((hh*2-cr)*cos(30)),1,1]) rotate([90,0,0]) cylinder(r=(hh*2-cr),h=hw-cr, center=true, $fn=100); translate([-hl/2,-hw/2,0]) cube([hl,hw,hl]); } #translate([0,0,-hsh]) for(xi = [-hls/2,hls/2]){ translate([xi-hw/2,-(hw-cr)/2,0]) cube([hw,hw-cr,hh+xw]); } } sphere(r=cr, $fn=8); } } for(xi = [-hls/2,hls/2]){ translate([xi,0,-0.500-xw-hh-cr]) { cylinder(r=hld/2, h=hh+cr, $fn=20); } } }
// BLOCK 1 hl=170; hh=24; hhh=10; hw=8; hld=4; hls=145; hsd=15.800; hsh=20; cr=2; xw=0.350; // BLOCK 2 rotate([90,0,0]) translate([0,0,hsh]) difference(){ union(){ minkowski(){ union(){ intersection(){ translate([0,0,-hh]) scale([(hl/2)/((hh*2-cr)*cos(30)),1,1]) rotate([90,0,0]) cylinder(r=(hh*2-cr),h=hw-cr, center=true, $fn=100); translate([-hl/2,-hw/2,0]) cube([hl,hw,hl]); } #translate([0,0,-hsh]) for(xi = [-hls/2,hls/2]){ translate([xi-hw/2,-(hw-cr)/2,0]) cube([hw,hw-cr,hh+xw]); } } sphere(r=cr, $fn=8); } } for(xi = [-hls/2,hls/2]){ translate([xi,0,-0.500-xw-hh-cr]) { cylinder(r=hld/2, h=hh+cr, $fn=20); } } }
6ca1ba33-1859-4e9b-aa68-a10a8d1eb099
// BLOCK 1 bbi = 39.500; bbo = 42.500; bti = 38; bto = 43; bh = 40; jh = 10; tbi = 28; tbo = 33; tti = 29; tto = 31; th = 40; descr = [ [bbi, bbo, 0], [bti, bto, bh], [tbi, tbo, jh], [tti, tto, th] ]; $fn = 100; // BLOCK 2 module pipe(descr, $fn=$fn) { function combine_descr(descr, i) = i == 0 ? [[[descr[0][0], descr[0][2]]], [[descr[0][1], descr[0][2]]]] : let(p=combine_descr(descr, i-1), h=p[0][i-1][1]+descr[i][2]) [concat(p[0], [[descr[i][0], h]]), concat(p[1], [[descr[i][1], h]])]; function create_shape(descr) = let(c=combine_descr(descr, len(descr) - 1)) concat(c[0], [for (i = [len(c[1])-1:-1:0]) c[1][i]]); rotate_extrude($fn=$fn) scale([0.500, 1]) polygon(create_shape(descr)); } pipe(descr);
// BLOCK 1 bbi = 39.500; bbo = 42.500; bti = 38; bto = 43; bh = 40; jh = 10; tbi = 28; tbo = 33; tti = 29; tto = 31; th = 40; descr = [ [bbi, bbo, 0], [bti, bto, bh], [tbi, tbo, jh], [tti, tto, th] ]; $fn = 100; // BLOCK 2 module pipe(descr, $fn=$fn) { function combine_descr(descr, i) = i == 0 ? [[[descr[0][0], descr[0][2]]], [[descr[0][1], descr[0][2]]]] : let(p=combine_descr(descr, i-1), h=p[0][i-1][1]+descr[i][2]) [concat(p[0], [[descr[i][0], h]]), concat(p[1], [[descr[i][1], h]])]; function create_shape(descr) = let(c=combine_descr(descr, len(descr) - 1)) concat(c[0], [for (i = [len(c[1])-1:-1:0]) c[1][i]]); rotate_extrude($fn=$fn) scale([0.500, 1]) polygon(create_shape(descr)); } pipe(descr);
e684fbb7-b163-4961-8a30-4e9f6548184c
// BLOCK 1 hotshoe_adapter(pedestal_ht=2); // BLOCK 2 module hotshoe_adapter(pedestal_ht=2) { intwid = 18.700; intlen = 18.000; intht = 2.050; wingspc = 12.600; winglen = 16.400; halfwid = 0.500*intwid - 0.200; halflen = 0.500*intlen; ht = intht - 0.100; centerspc = wingspc - 0.500; cliplen = winglen - 2.000; translate([0,0.500*(winglen-intlen),-ht-pedestal_ht]) difference() { union() { translate([0,0.500*(intlen-winglen),0.500*(ht+pedestal_ht)]) cube([centerspc, winglen, ht+pedestal_ht], center=true); translate([halfwid,0,0]) rotate([0,-90,0]) linear_extrude(2*halfwid) polygon(points=[ [0,-halflen], [0, halflen-cliplen-0.500], [ht, halflen-cliplen-0.500], [ht, halflen-winglen], [0.400, -halflen] ]); wing(); mirror([1,0,0]) wing(); } frontbevel(-1); } module wing() { difference() { linear_extrude(ht, convexity=4) polygon(points = [ [0, halflen], [halfwid-1, halflen], [halfwid, halflen-1], [halfwid, halflen-cliplen+4], [halfwid+1, halflen-cliplen+1], [halfwid+1, halflen-cliplen], [halfwid-1, halflen-cliplen], [halfwid-1.500, halflen-cliplen+1], [0.500*centerspc+0.500, halflen-3.500], [0, halflen-2] ]); frontbevel(1); } } module frontbevel(side) { b = 2; translate([0,0,0.500*ht]) rotate([0,side*90,0]) translate([0,halflen+0.250*ht,-0.500*intwid-1]) linear_extrude(intwid+2) polygon(points=[[0,0], [-b,-b], [-b,0]]); } }
// BLOCK 1 hotshoe_adapter(pedestal_ht=2); // BLOCK 2 module hotshoe_adapter(pedestal_ht=2) { intwid = 18.700; intlen = 18.000; intht = 2.050; wingspc = 12.600; winglen = 16.400; halfwid = 0.500*intwid - 0.200; halflen = 0.500*intlen; ht = intht - 0.100; centerspc = wingspc - 0.500; cliplen = winglen - 2.000; translate([0,0.500*(winglen-intlen),-ht-pedestal_ht]) difference() { union() { translate([0,0.500*(intlen-winglen),0.500*(ht+pedestal_ht)]) cube([centerspc, winglen, ht+pedestal_ht], center=true); translate([halfwid,0,0]) rotate([0,-90,0]) linear_extrude(2*halfwid) polygon(points=[ [0,-halflen], [0, halflen-cliplen-0.500], [ht, halflen-cliplen-0.500], [ht, halflen-winglen], [0.400, -halflen] ]); wing(); mirror([1,0,0]) wing(); } frontbevel(-1); } module wing() { difference() { linear_extrude(ht, convexity=4) polygon(points = [ [0, halflen], [halfwid-1, halflen], [halfwid, halflen-1], [halfwid, halflen-cliplen+4], [halfwid+1, halflen-cliplen+1], [halfwid+1, halflen-cliplen], [halfwid-1, halflen-cliplen], [halfwid-1.500, halflen-cliplen+1], [0.500*centerspc+0.500, halflen-3.500], [0, halflen-2] ]); frontbevel(1); } } module frontbevel(side) { b = 2; translate([0,0,0.500*ht]) rotate([0,side*90,0]) translate([0,halflen+0.250*ht,-0.500*intwid-1]) linear_extrude(intwid+2) polygon(points=[[0,0], [-b,-b], [-b,0]]); } }
6b5cc719-ef9c-4ce6-9e4a-912d626a4e66
// BLOCK 1 $fn=50; // BLOCK 2 cylinder (d=12, h=10); // BLOCK 3 cylinder (d=13.800, h=1.800); // BLOCK 4 translate([-15,0,0]) cylinder (d=9.800, h=1.800); // BLOCK 5 translate([15,0,0]) cylinder (d=9.800, h=1.800);
// BLOCK 1 $fn=50; // BLOCK 2 cylinder (d=12, h=10); // BLOCK 3 cylinder (d=13.800, h=1.800); // BLOCK 4 translate([-15,0,0]) cylinder (d=9.800, h=1.800); // BLOCK 5 translate([15,0,0]) cylinder (d=9.800, h=1.800);
0b1853e3-18aa-4007-8eba-b2f26c887ddd
// BLOCK 1 $fn=30; // BLOCK 2 module stack(){ cylinder(2,5,5); translate([0,0,2]) cylinder(5,5,10); translate([0,0,7]) cylinder(2,10,10); translate([0,0,9]) cylinder(9,10,5); translate([0,0,14]) cylinder(20,5,5); translate([0,0,8]){ rotate_extrude(convexity = 10) translate([10, 0, 0]) circle(r = 1, $fn = 100); } } // BLOCK 3 difference(){ stack(); cylinder(50,3.500,3.500); }
// BLOCK 1 $fn=30; // BLOCK 2 module stack(){ cylinder(2,5,5); translate([0,0,2]) cylinder(5,5,10); translate([0,0,7]) cylinder(2,10,10); translate([0,0,9]) cylinder(9,10,5); translate([0,0,14]) cylinder(20,5,5); translate([0,0,8]){ rotate_extrude(convexity = 10) translate([10, 0, 0]) circle(r = 1, $fn = 100); } } // BLOCK 3 difference(){ stack(); cylinder(50,3.500,3.500); }
2ca573c7-32a1-4800-b9c3-f8ffa8b982cd
// BLOCK 1 innerDiamBearing=12.200; wheelScrewDiam=4.600; wheelNutDiam=8.500; end2Nut=15; hJointSection=9.100; jointSectionDiam=15.200; hBearingSection=17; hHexKey=3; HexKeyDiam=9.400; hexJointDiam=12.100; hexJointDeep= 5.200; wFlatKey=12.900; tFlatKey=2.200; dFlatKey=6.900; resolution=30; wheelLink(); // BLOCK 2 module wheelLink() { difference() { wheelLinkOuter(); wheelLinkInner(); } } // BLOCK 3 module wheelLinkOuter() { union() { cylinder(h=hBearingSection, d=innerDiamBearing, $fn=resolution); translate([0,0,hBearingSection]) cylinder(h=hHexKey, d=HexKeyDiam, $fn=6); rotate([0,180,0]) cylinder(h=hJointSection, d=jointSectionDiam, $fn=resolution); } } // BLOCK 4 module wheelLinkInner() { union() { cylinder(h=hBearingSection*5, d=wheelScrewDiam, $fn=resolution,center=true); translate([0,0,hBearingSection+hHexKey-end2Nut])rotate([0,180,0]) cylinder(h=hBearingSection, d=wheelNutDiam, $fn=6); translate([0,0,-hJointSection+hexJointDeep])rotate([0,180,0])union() {translate([0,0,-.01])cylinder(h=hJointSection, d=hexJointDiam, $fn=6); rotate([0,180,0])cylinder(h=hexJointDiam/3, d1=hexJointDiam,d2=hexJointDiam/2, $fn=6); } translate([tFlatKey/2,-wFlatKey/2,-hJointSection+dFlatKey])rotate([0,180,0])cube([tFlatKey,wFlatKey,dFlatKey*2],center=false); } }
// BLOCK 1 innerDiamBearing=12.200; wheelScrewDiam=4.600; wheelNutDiam=8.500; end2Nut=15; hJointSection=9.100; jointSectionDiam=15.200; hBearingSection=17; hHexKey=3; HexKeyDiam=9.400; hexJointDiam=12.100; hexJointDeep= 5.200; wFlatKey=12.900; tFlatKey=2.200; dFlatKey=6.900; resolution=30; wheelLink(); // BLOCK 2 module wheelLink() { difference() { wheelLinkOuter(); wheelLinkInner(); } } // BLOCK 3 module wheelLinkOuter() { union() { cylinder(h=hBearingSection, d=innerDiamBearing, $fn=resolution); translate([0,0,hBearingSection]) cylinder(h=hHexKey, d=HexKeyDiam, $fn=6); rotate([0,180,0]) cylinder(h=hJointSection, d=jointSectionDiam, $fn=resolution); } } // BLOCK 4 module wheelLinkInner() { union() { cylinder(h=hBearingSection*5, d=wheelScrewDiam, $fn=resolution,center=true); translate([0,0,hBearingSection+hHexKey-end2Nut])rotate([0,180,0]) cylinder(h=hBearingSection, d=wheelNutDiam, $fn=6); translate([0,0,-hJointSection+hexJointDeep])rotate([0,180,0])union() {translate([0,0,-.01])cylinder(h=hJointSection, d=hexJointDiam, $fn=6); rotate([0,180,0])cylinder(h=hexJointDiam/3, d1=hexJointDiam,d2=hexJointDiam/2, $fn=6); } translate([tFlatKey/2,-wFlatKey/2,-hJointSection+dFlatKey])rotate([0,180,0])cube([tFlatKey,wFlatKey,dFlatKey*2],center=false); } }
00f50a0f-346d-4550-9f48-b2488524ade9
// BLOCK 1 nozzle_size = 0.350; size = 20; wall = 2; MyTestCube(); // BLOCK 2 module MyTestCube() { difference() { body(); holes(); } } // BLOCK 3 module body() { cube(size,center=true); } // BLOCK 4 module holes() { cutout = size - nozzle_size*2*wall; cube(cutout,center=true); $fn=100; rotate([90,0,0])cylinder(d=size/2,h=size+nozzle_size,center=true); rotate([0,90,0]) { $fn=3; cylinder(d=size/2,h=size+nozzle_size,center=true); } translate([0,0,-size/2])cube(size/2,center=true); }
// BLOCK 1 nozzle_size = 0.350; size = 20; wall = 2; MyTestCube(); // BLOCK 2 module MyTestCube() { difference() { body(); holes(); } } // BLOCK 3 module body() { cube(size,center=true); } // BLOCK 4 module holes() { cutout = size - nozzle_size*2*wall; cube(cutout,center=true); $fn=100; rotate([90,0,0])cylinder(d=size/2,h=size+nozzle_size,center=true); rotate([0,90,0]) { $fn=3; cylinder(d=size/2,h=size+nozzle_size,center=true); } translate([0,0,-size/2])cube(size/2,center=true); }
3da9aa1a-428e-49c8-8157-a6a28f482383
// BLOCK 1 side=20; ptext=side*0.800; depth=2; cube_xyz(side,ptext,depth); // BLOCK 2 module cube_xyz(i_side,i_ptext,i_depth) { insurance=0.100; difference() { cube(i_side,true); translate([(i_side/2)-i_depth,0,0]) rotate(a=[90,0,90]) linear_extrude(i_depth+insurance) text("X",size=i_ptext,halign="center",valign="center"); translate([0,((i_side/2)+insurance),0]) rotate(a=[90,90,0]) linear_extrude(i_depth+insurance) text("Y",size=i_ptext,halign="center",valign="center"); translate([0,0,(i_side/2)-i_depth]) linear_extrude(i_depth+insurance) text("Z",size=i_ptext,halign="center",valign="center"); } }
// BLOCK 1 side=20; ptext=side*0.800; depth=2; cube_xyz(side,ptext,depth); // BLOCK 2 module cube_xyz(i_side,i_ptext,i_depth) { insurance=0.100; difference() { cube(i_side,true); translate([(i_side/2)-i_depth,0,0]) rotate(a=[90,0,90]) linear_extrude(i_depth+insurance) text("X",size=i_ptext,halign="center",valign="center"); translate([0,((i_side/2)+insurance),0]) rotate(a=[90,90,0]) linear_extrude(i_depth+insurance) text("Y",size=i_ptext,halign="center",valign="center"); translate([0,0,(i_side/2)-i_depth]) linear_extrude(i_depth+insurance) text("Z",size=i_ptext,halign="center",valign="center"); } }
d6a4a7aa-eed4-4e15-bb2d-f393d1476758
// BLOCK 1 type="all"; fn_factor=50; table_width=200; table_length=100; table_height=20; table_strength=3; table_hole_diameter=10; table_conn_stick=5; stand_back_diameter=68; stand_back_length=20; stand_back_space=150; stand_back_tablegap=4; stand_back_connector_length=50; stand_back_connector_height=60; stand_front_diameter=44; stand_front_length=10; stand_front_stength=5; stand_front_wall_space=85; stand_front_table_space=7; if(type=="table") { difference() // BLOCK 2 { table(); right_back_stand(); left_back_stand(); translate([25,0,0])table_stand_front(); translate([table_width-25-stand_front_length,0,0])table_stand_front(); } } else if(type=="stand_front") { translate([25,0,0])table_stand_front(); } else if(type=="stand_back") { right_back_stand(); } else { table(); right_back_stand(); left_back_stand(); translate([25,0,0])table_stand_front(); translate([table_width-25-stand_front_length,0,0])table_stand_front(); } // BLOCK 3 module left_back_stand() { difference() { translate([-12,0,0])translate([stand_back_space,0,0])table_stand_back_connector(); translate([stand_back_space,0,0])table_stand_back(); } translate([table_width-60-table_conn_stick,(stand_back_length/2)-(table_conn_stick/2),0])table_back_conn_stick(); translate([table_width-30-table_conn_stick,(stand_back_length/2)-(table_conn_stick/2),0])table_back_conn_stick(); } // BLOCK 4 module right_back_stand() { difference() { translate([30,0,0])table_stand_back_connector(); table_stand_back(); } translate([60,(stand_back_length/2)-(table_conn_stick/2),0])table_back_conn_stick(); translate([30,(stand_back_length/2)-(table_conn_stick/2),0])table_back_conn_stick(); } // BLOCK 5 module table_back_conn_stick() { translate([-(table_width-stand_back_diameter-stand_back_space)/2,0,0]) cube([table_conn_stick,table_conn_stick,table_strength]); } // BLOCK 6 module table_stand_front() { translate([ 9, table_length-10, 0]) cube([stand_front_length,table_conn_stick,table_strength]); translate([ 9, table_length-35, 0]) cube([stand_front_length,table_conn_stick,table_strength]); translate([ 9, stand_front_wall_space, -(stand_front_diameter/2)+stand_front_stength-stand_front_length ]) difference() { union() { translate([0,0,-stand_front_table_space])rotate([0,90,0]) cylinder(h=stand_front_length,d=stand_front_diameter+(stand_front_stength*2), $fn=fn_factor); translate([ 0, -(stand_front_diameter+(stand_front_stength/2))/2, 0 ]) cube([ stand_front_length, (stand_front_diameter+stand_front_stength)-11, (stand_front_diameter/2+stand_front_stength) ]); } translate([0,0,-stand_front_table_space])rotate([0,90,0]) cylinder(h=stand_front_length,d=stand_front_diameter, $fn=fn_factor); translate([0,-stand_front_diameter,-(stand_front_diameter/2)-stand_front_stength/2-stand_front_table_space]) cube([stand_front_length,stand_front_diameter+stand_front_stength,stand_front_diameter]); translate([0,-20,-stand_front_diameter-10-stand_front_table_space]) cube([stand_front_length,stand_front_diameter+stand_front_stength,stand_front_diameter]); } } // BLOCK 7 module table_stand_back_connector() { translate([0, stand_back_length, -stand_back_connector_height]) rotate([90,0,0])cube([stand_back_connector_length,stand_back_connector_height,stand_back_length]); } // BLOCK 8 module table_stand_back() { translate([ stand_back_diameter/2, stand_back_length, -(stand_back_tablegap+(stand_back_diameter/2))]) rotate([90,0,0]) cylinder(h=stand_back_length,d=stand_back_diameter, $fn=fn_factor); } // BLOCK 9 module table() { translate([-(table_width-stand_back_diameter-stand_back_space)/2,0,0]) difference() { cube([table_width,table_length,table_height]); translate([table_strength,table_strength,table_strength]) cube([table_width-(table_strength*2), table_length-(table_strength*2), table_height-table_strength]); for (x =[1:10]) { for (y =[1:5]) { if((x==2 || x==3 || x==4 || x==7 || x==8 || x==9) && y==1) { } else if((x==2 || x==9) && (y==4 ||y==5)) { } else { translate([ (table_width/10*x)-(table_hole_diameter), (table_length/5*y)-(table_hole_diameter), 0]) cylinder(d=table_hole_diameter,h=table_height, $fn=6); } } } } }
// BLOCK 1 type="all"; fn_factor=50; table_width=200; table_length=100; table_height=20; table_strength=3; table_hole_diameter=10; table_conn_stick=5; stand_back_diameter=68; stand_back_length=20; stand_back_space=150; stand_back_tablegap=4; stand_back_connector_length=50; stand_back_connector_height=60; stand_front_diameter=44; stand_front_length=10; stand_front_stength=5; stand_front_wall_space=85; stand_front_table_space=7; if(type=="table") { difference() // BLOCK 2 { table(); right_back_stand(); left_back_stand(); translate([25,0,0])table_stand_front(); translate([table_width-25-stand_front_length,0,0])table_stand_front(); } } else if(type=="stand_front") { translate([25,0,0])table_stand_front(); } else if(type=="stand_back") { right_back_stand(); } else { table(); right_back_stand(); left_back_stand(); translate([25,0,0])table_stand_front(); translate([table_width-25-stand_front_length,0,0])table_stand_front(); } // BLOCK 3 module left_back_stand() { difference() { translate([-12,0,0])translate([stand_back_space,0,0])table_stand_back_connector(); translate([stand_back_space,0,0])table_stand_back(); } translate([table_width-60-table_conn_stick,(stand_back_length/2)-(table_conn_stick/2),0])table_back_conn_stick(); translate([table_width-30-table_conn_stick,(stand_back_length/2)-(table_conn_stick/2),0])table_back_conn_stick(); } // BLOCK 4 module right_back_stand() { difference() { translate([30,0,0])table_stand_back_connector(); table_stand_back(); } translate([60,(stand_back_length/2)-(table_conn_stick/2),0])table_back_conn_stick(); translate([30,(stand_back_length/2)-(table_conn_stick/2),0])table_back_conn_stick(); } // BLOCK 5 module table_back_conn_stick() { translate([-(table_width-stand_back_diameter-stand_back_space)/2,0,0]) cube([table_conn_stick,table_conn_stick,table_strength]); } // BLOCK 6 module table_stand_front() { translate([ 9, table_length-10, 0]) cube([stand_front_length,table_conn_stick,table_strength]); translate([ 9, table_length-35, 0]) cube([stand_front_length,table_conn_stick,table_strength]); translate([ 9, stand_front_wall_space, -(stand_front_diameter/2)+stand_front_stength-stand_front_length ]) difference() { union() { translate([0,0,-stand_front_table_space])rotate([0,90,0]) cylinder(h=stand_front_length,d=stand_front_diameter+(stand_front_stength*2), $fn=fn_factor); translate([ 0, -(stand_front_diameter+(stand_front_stength/2))/2, 0 ]) cube([ stand_front_length, (stand_front_diameter+stand_front_stength)-11, (stand_front_diameter/2+stand_front_stength) ]); } translate([0,0,-stand_front_table_space])rotate([0,90,0]) cylinder(h=stand_front_length,d=stand_front_diameter, $fn=fn_factor); translate([0,-stand_front_diameter,-(stand_front_diameter/2)-stand_front_stength/2-stand_front_table_space]) cube([stand_front_length,stand_front_diameter+stand_front_stength,stand_front_diameter]); translate([0,-20,-stand_front_diameter-10-stand_front_table_space]) cube([stand_front_length,stand_front_diameter+stand_front_stength,stand_front_diameter]); } } // BLOCK 7 module table_stand_back_connector() { translate([0, stand_back_length, -stand_back_connector_height]) rotate([90,0,0])cube([stand_back_connector_length,stand_back_connector_height,stand_back_length]); } // BLOCK 8 module table_stand_back() { translate([ stand_back_diameter/2, stand_back_length, -(stand_back_tablegap+(stand_back_diameter/2))]) rotate([90,0,0]) cylinder(h=stand_back_length,d=stand_back_diameter, $fn=fn_factor); } // BLOCK 9 module table() { translate([-(table_width-stand_back_diameter-stand_back_space)/2,0,0]) difference() { cube([table_width,table_length,table_height]); translate([table_strength,table_strength,table_strength]) cube([table_width-(table_strength*2), table_length-(table_strength*2), table_height-table_strength]); for (x =[1:10]) { for (y =[1:5]) { if((x==2 || x==3 || x==4 || x==7 || x==8 || x==9) && y==1) { } else if((x==2 || x==9) && (y==4 ||y==5)) { } else { translate([ (table_width/10*x)-(table_hole_diameter), (table_length/5*y)-(table_hole_diameter), 0]) cylinder(d=table_hole_diameter,h=table_height, $fn=6); } } } } }
81adee30-e97f-4448-85d9-5e18adeea3d9
// BLOCK 1 inch2mm = 0.300/12*1000; mm2inch = 12/0.300/1000; $fs = 0.200; $fa = 5; baseDiam = 25; baseHeight = 3; standOffDiam = 8; standOffHeight = 10; centerDrillDiam = 2.700; baseDrillDiam = 3.100; filletRad = 6; maxHeight = max(baseHeight, standOffHeight); holeRadius = (baseDiam+standOffDiam)/4; // BLOCK 2 difference() { union() { ring(centerDrillDiam/2, baseDiam/2, baseHeight); ring(centerDrillDiam/2, standOffDiam/2, standOffHeight); fillet(baseHeight, standOffDiam/2); } union() { mountingHoles(4, baseDrillDiam, holeRadius); } } // BLOCK 3 module ring(inner, outer, height) { difference() { cylinder(h=height, r=outer); cylinder(h=4*height, r=inner, center=true); } } // BLOCK 4 module mountingHoles(num, screwDiam, offsetRadius) { for (step = [0:num-1]) { rotate( a = step*(360/num), v=[0, 0, 1]) { translate ( [offsetRadius, 0, 0] ) { cylinder(h=maxHeight*4, r=screwDiam/2, center=true); translate ([0,0,baseHeight]) { cylinder(h=maxHeight*4, r=2.500*screwDiam/2); } } } } } // BLOCK 5 module fillet(height, radius) { difference() { ring((centerDrillDiam/2+radius)/2, radius + filletRad, filletRad+height); translate([0, 0, filletRad+height]) { torus(filletRad, radius + filletRad); } } } // BLOCK 6 module torus(radius, sweepRad) { rotate_extrude(convexity = 10) { translate([sweepRad, 0, 0]) { circle(radius); } } }
// BLOCK 1 inch2mm = 0.300/12*1000; mm2inch = 12/0.300/1000; $fs = 0.200; $fa = 5; baseDiam = 25; baseHeight = 3; standOffDiam = 8; standOffHeight = 10; centerDrillDiam = 2.700; baseDrillDiam = 3.100; filletRad = 6; maxHeight = max(baseHeight, standOffHeight); holeRadius = (baseDiam+standOffDiam)/4; // BLOCK 2 difference() { union() { ring(centerDrillDiam/2, baseDiam/2, baseHeight); ring(centerDrillDiam/2, standOffDiam/2, standOffHeight); fillet(baseHeight, standOffDiam/2); } union() { mountingHoles(4, baseDrillDiam, holeRadius); } } // BLOCK 3 module ring(inner, outer, height) { difference() { cylinder(h=height, r=outer); cylinder(h=4*height, r=inner, center=true); } } // BLOCK 4 module mountingHoles(num, screwDiam, offsetRadius) { for (step = [0:num-1]) { rotate( a = step*(360/num), v=[0, 0, 1]) { translate ( [offsetRadius, 0, 0] ) { cylinder(h=maxHeight*4, r=screwDiam/2, center=true); translate ([0,0,baseHeight]) { cylinder(h=maxHeight*4, r=2.500*screwDiam/2); } } } } } // BLOCK 5 module fillet(height, radius) { difference() { ring((centerDrillDiam/2+radius)/2, radius + filletRad, filletRad+height); translate([0, 0, filletRad+height]) { torus(filletRad, radius + filletRad); } } } // BLOCK 6 module torus(radius, sweepRad) { rotate_extrude(convexity = 10) { translate([sweepRad, 0, 0]) { circle(radius); } } }
190b3ced-f1cb-44f3-8c44-b38bdfb7b467
// BLOCK 1 tol=0.050; groove=11; baseh=0; len = 30; supx = 6.760 + 0.500; supy = 5.180 + 0.500; rod = groove*2+4; rotate([0,90,0]) // BLOCK 2 difference() { rotate([0,90,0]) cylinder(h=len, r=rod/2); translate([-tol,-groove/2,0]) cube([len+tol*2,groove,rod]); translate([len/2,0,-rod/2+supy-1]) rotate([90-30,0,0]) support(0); translate([len/2,rod/2-supy*.7,0]) rotate([-90+60,0,0]) support(-5); } // BLOCK 3 module support(z) { translate([-supx/2,-supy/2,z]) cube([supx,supy,groove*10]); }
// BLOCK 1 tol=0.050; groove=11; baseh=0; len = 30; supx = 6.760 + 0.500; supy = 5.180 + 0.500; rod = groove*2+4; rotate([0,90,0]) // BLOCK 2 difference() { rotate([0,90,0]) cylinder(h=len, r=rod/2); translate([-tol,-groove/2,0]) cube([len+tol*2,groove,rod]); translate([len/2,0,-rod/2+supy-1]) rotate([90-30,0,0]) support(0); translate([len/2,rod/2-supy*.7,0]) rotate([-90+60,0,0]) support(-5); } // BLOCK 3 module support(z) { translate([-supx/2,-supy/2,z]) cube([supx,supy,groove*10]); }
7e4306a0-54f2-4d59-ac2b-4ccaa689cb68
// BLOCK 1 width = 50; height = 100; depth = 50; sideTickness = 2; HoldingSideTickness = 3; screwHeadDiameter = 7; screwHeadHeight = 4; screwDiameter = 5; screwDistance = 20; screwDistanceFromTopBorder = 20; screwDriverHoleDiameter = 5; rightSideHoleOffset = -10; screwTolerance = 1; effectiveScrewHeadDiameter = screwHeadDiameter + screwTolerance; effectiveScrewHeadHeight = screwHeadHeight + screwTolerance; screwSkirtWidth = effectiveScrewHeadDiameter + 4; effectiveScrewDriverHoleDiameter = screwDriverHoleDiameter + 1; // BLOCK 2 module screwHoles() { translate([(width - screwDistance) / 2, HoldingSideTickness, height - screwDistanceFromTopBorder]) rotate([90, 0, 0]) union() { cylinder(h = HoldingSideTickness, d = screwDiameter); translate([screwDistance, 0, 0]) cylinder(h = HoldingSideTickness, d = screwDiameter); } } // BLOCK 3 module screwDriverHoles() { translate([(width - screwDistance) / 2, depth, height - screwDistanceFromTopBorder]) rotate([90, 0, 0]) union() { cylinder(h = sideTickness, d = effectiveScrewDriverHoleDiameter); translate([screwDistance, 0, 0]) cylinder(h = sideTickness, d = effectiveScrewDriverHoleDiameter); } } // BLOCK 4 module screwSkirt() { rotate([0, -90, 0]) difference() { linear_extrude(height = screwSkirtWidth) { polygon([[0,0], [ effectiveScrewHeadHeight * 2 + screwSkirtWidth, 0 ], [effectiveScrewHeadHeight + screwSkirtWidth, effectiveScrewHeadHeight], [effectiveScrewHeadHeight, effectiveScrewHeadHeight], [0, 0]]); } translate([(effectiveScrewHeadHeight * 2 + screwSkirtWidth) / 2, 0, screwSkirtWidth / 2]) rotate([-90, 0, 0]) cylinder(d = effectiveScrewHeadDiameter, h = effectiveScrewHeadHeight); } } // BLOCK 5 module main() { difference() { cube([width, depth, height]); translate([sideTickness, HoldingSideTickness, sideTickness]) cube([width - sideTickness * 2, depth - sideTickness - HoldingSideTickness, height - sideTickness]); translate([-rightSideHoleOffset / 2, 0, 0]) screwHoles(); translate([-rightSideHoleOffset / 2, 0, 0]) screwDriverHoles(); } } union() { main(); translate([(screwSkirtWidth + width - rightSideHoleOffset - screwDistance) / 2, HoldingSideTickness, height - (effectiveScrewHeadHeight * 2 + screwSkirtWidth) / 2 - screwDistanceFromTopBorder]) screwSkirt(); translate([(screwSkirtWidth + width - rightSideHoleOffset + screwDistance) / 2, HoldingSideTickness, height - (effectiveScrewHeadHeight * 2 + screwSkirtWidth) / 2 - screwDistanceFromTopBorder]) screwSkirt(); }
// BLOCK 1 width = 50; height = 100; depth = 50; sideTickness = 2; HoldingSideTickness = 3; screwHeadDiameter = 7; screwHeadHeight = 4; screwDiameter = 5; screwDistance = 20; screwDistanceFromTopBorder = 20; screwDriverHoleDiameter = 5; rightSideHoleOffset = -10; screwTolerance = 1; effectiveScrewHeadDiameter = screwHeadDiameter + screwTolerance; effectiveScrewHeadHeight = screwHeadHeight + screwTolerance; screwSkirtWidth = effectiveScrewHeadDiameter + 4; effectiveScrewDriverHoleDiameter = screwDriverHoleDiameter + 1; // BLOCK 2 module screwHoles() { translate([(width - screwDistance) / 2, HoldingSideTickness, height - screwDistanceFromTopBorder]) rotate([90, 0, 0]) union() { cylinder(h = HoldingSideTickness, d = screwDiameter); translate([screwDistance, 0, 0]) cylinder(h = HoldingSideTickness, d = screwDiameter); } } // BLOCK 3 module screwDriverHoles() { translate([(width - screwDistance) / 2, depth, height - screwDistanceFromTopBorder]) rotate([90, 0, 0]) union() { cylinder(h = sideTickness, d = effectiveScrewDriverHoleDiameter); translate([screwDistance, 0, 0]) cylinder(h = sideTickness, d = effectiveScrewDriverHoleDiameter); } } // BLOCK 4 module screwSkirt() { rotate([0, -90, 0]) difference() { linear_extrude(height = screwSkirtWidth) { polygon([[0,0], [ effectiveScrewHeadHeight * 2 + screwSkirtWidth, 0 ], [effectiveScrewHeadHeight + screwSkirtWidth, effectiveScrewHeadHeight], [effectiveScrewHeadHeight, effectiveScrewHeadHeight], [0, 0]]); } translate([(effectiveScrewHeadHeight * 2 + screwSkirtWidth) / 2, 0, screwSkirtWidth / 2]) rotate([-90, 0, 0]) cylinder(d = effectiveScrewHeadDiameter, h = effectiveScrewHeadHeight); } } // BLOCK 5 module main() { difference() { cube([width, depth, height]); translate([sideTickness, HoldingSideTickness, sideTickness]) cube([width - sideTickness * 2, depth - sideTickness - HoldingSideTickness, height - sideTickness]); translate([-rightSideHoleOffset / 2, 0, 0]) screwHoles(); translate([-rightSideHoleOffset / 2, 0, 0]) screwDriverHoles(); } } union() { main(); translate([(screwSkirtWidth + width - rightSideHoleOffset - screwDistance) / 2, HoldingSideTickness, height - (effectiveScrewHeadHeight * 2 + screwSkirtWidth) / 2 - screwDistanceFromTopBorder]) screwSkirt(); translate([(screwSkirtWidth + width - rightSideHoleOffset + screwDistance) / 2, HoldingSideTickness, height - (effectiveScrewHeadHeight * 2 + screwSkirtWidth) / 2 - screwDistanceFromTopBorder]) screwSkirt(); }
d66e609c-9cf8-455e-b2e5-a4a13708c109
// BLOCK 1 $fn=30; // BLOCK 2 module foot() { difference(){ scale([1,2,1]) sphere(2); translate([-2,-10,-2]) cube([5,20,2]); } translate([0,-3,.80]) sphere(.8); translate([-1,-3,.75]) sphere(.75); translate([1,-3,.75]) sphere(.75); } // BLOCK 3 module hand(){ scale([2,2,1]) sphere(.8); translate([0,-2,0]) scale([1,3,1]) sphere(.6); translate([-1,-2,0]) rotate([0,0,-20]) scale([1,3,1]) sphere(.6); translate([1.200,-1.500,0]) rotate([0,0,20]) scale([1,3,1]) sphere(.6); translate([-2,-.5,0]) rotate([0,0,-60]) scale([1,3,1]) sphere(.6); translate([-3,-1.500,0]) sphere(.6); } // BLOCK 4 module tail(){ hull(){ translate([0,.5,13]) sphere(1.200); translate([0,4,18]) sphere(1.700); } } translate([-3,0,0]) foot(); translate([3,0,0]) foot(); // BLOCK 5 translate([-3,1,1]) cylinder(12,2,1.500); // BLOCK 6 translate([3,1,1]) cylinder(12,2,1.500); // BLOCK 7 translate([0,1,13]) scale([1.800,1.500,1]) sphere(3); translate([0,4,0]) tail(); // BLOCK 8 translate([0,1,15]) rotate([4,0,0]) cylinder(12,3,1.500); // BLOCK 9 translate([0,0,28]) scale([1,.5,1]) sphere(3); translate([-5,0,15]) rotate([90,0,90]) hand(); // BLOCK 10 translate([-5,0,15]) rotate([0,-30,0]) cylinder(10,1,1); // BLOCK 11 translate([-10.500,0,24.200]) sphere(1); // BLOCK 12 translate([-10,0,24]) rotate([0,65,0]) cylinder(10,1,1.500); translate([5,0,15]) rotate([90,0,90]) hand(); // BLOCK 13 translate([5,0,15]) rotate([0,30,0]) cylinder(10,1,1); // BLOCK 14 translate([10.500,0,24.200]) sphere(1); // BLOCK 15 translate([10,0,24]) rotate([0,-65,0]) cylinder(10,1,1.500); // BLOCK 16 difference(){ hull(){ translate([0,0,35]) scale([1,.5,1]) sphere(7); translate([-4,0,32]) scale([1,.75,1]) sphere(3); } translate([-2.800,-2,36]) sphere(1.500); translate([2.800,-2,36]) sphere(1.500); } // BLOCK 17 module ear(){ hull(){ translate([2,0,0]) sphere(1); translate([-2,0,0]) sphere(1); translate([0,2,0]) sphere(1); }} translate([5,0,40]) rotate([-90,100,0]) ear(); translate([-5,0,40]) rotate([-90,-100,0]) ear(); translate([-3,-2,35]) rotate([90,0,0]) eye(); translate([3,-2,35]) rotate([90,0,0]) eye(); // BLOCK 18 module eye(){ difference(){ hull(){ sphere(1.700); translate([0,1,0]) sphere(2); translate([0,2,0]) sphere(1.700); } translate([0,1,1]) sphere(1.500); } }
// BLOCK 1 $fn=30; // BLOCK 2 module foot() { difference(){ scale([1,2,1]) sphere(2); translate([-2,-10,-2]) cube([5,20,2]); } translate([0,-3,.80]) sphere(.8); translate([-1,-3,.75]) sphere(.75); translate([1,-3,.75]) sphere(.75); } // BLOCK 3 module hand(){ scale([2,2,1]) sphere(.8); translate([0,-2,0]) scale([1,3,1]) sphere(.6); translate([-1,-2,0]) rotate([0,0,-20]) scale([1,3,1]) sphere(.6); translate([1.200,-1.500,0]) rotate([0,0,20]) scale([1,3,1]) sphere(.6); translate([-2,-.5,0]) rotate([0,0,-60]) scale([1,3,1]) sphere(.6); translate([-3,-1.500,0]) sphere(.6); } // BLOCK 4 module tail(){ hull(){ translate([0,.5,13]) sphere(1.200); translate([0,4,18]) sphere(1.700); } } translate([-3,0,0]) foot(); translate([3,0,0]) foot(); // BLOCK 5 translate([-3,1,1]) cylinder(12,2,1.500); // BLOCK 6 translate([3,1,1]) cylinder(12,2,1.500); // BLOCK 7 translate([0,1,13]) scale([1.800,1.500,1]) sphere(3); translate([0,4,0]) tail(); // BLOCK 8 translate([0,1,15]) rotate([4,0,0]) cylinder(12,3,1.500); // BLOCK 9 translate([0,0,28]) scale([1,.5,1]) sphere(3); translate([-5,0,15]) rotate([90,0,90]) hand(); // BLOCK 10 translate([-5,0,15]) rotate([0,-30,0]) cylinder(10,1,1); // BLOCK 11 translate([-10.500,0,24.200]) sphere(1); // BLOCK 12 translate([-10,0,24]) rotate([0,65,0]) cylinder(10,1,1.500); translate([5,0,15]) rotate([90,0,90]) hand(); // BLOCK 13 translate([5,0,15]) rotate([0,30,0]) cylinder(10,1,1); // BLOCK 14 translate([10.500,0,24.200]) sphere(1); // BLOCK 15 translate([10,0,24]) rotate([0,-65,0]) cylinder(10,1,1.500); // BLOCK 16 difference(){ hull(){ translate([0,0,35]) scale([1,.5,1]) sphere(7); translate([-4,0,32]) scale([1,.75,1]) sphere(3); } translate([-2.800,-2,36]) sphere(1.500); translate([2.800,-2,36]) sphere(1.500); } // BLOCK 17 module ear(){ hull(){ translate([2,0,0]) sphere(1); translate([-2,0,0]) sphere(1); translate([0,2,0]) sphere(1); }} translate([5,0,40]) rotate([-90,100,0]) ear(); translate([-5,0,40]) rotate([-90,-100,0]) ear(); translate([-3,-2,35]) rotate([90,0,0]) eye(); translate([3,-2,35]) rotate([90,0,0]) eye(); // BLOCK 18 module eye(){ difference(){ hull(){ sphere(1.700); translate([0,1,0]) sphere(2); translate([0,2,0]) sphere(1.700); } translate([0,1,1]) sphere(1.500); } }
967c5d58-f85e-42c9-a135-856b64911564
// BLOCK 1 $fn = 80; button_dia = 15; button_height = 70; axel_hole_dia = 1; tooth_height = 1.500; tooth_width = 1; tooth_base_width = 3.500; cog_dia = 13; cog_thickness = 3; case_wall = 2; case_clearance = 0.300; lock_clearance = 0.200; tooth_distance = sqrt(cog_dia/2 * cog_dia/2 - tooth_base_width/2 * tooth_base_width/2); case_chamfer = 5; case_x = cog_dia + button_dia*2 + case_wall*2 + case_clearance*2 + case_chamfer; case_y = max(cog_thickness, button_dia) + case_wall*2 + case_clearance + case_chamfer; case_z = button_height + case_wall + 1; cog_hole_dia = (tooth_distance + tooth_height)*2 + case_clearance; botton_tooth_distance = tooth_base_width + tooth_width; button_nb_tooth = round((button_height - cog_hole_dia/2) / botton_tooth_distance); case_button_hole_chamfer = 0.800; button_chamfer = 0.800; *button(); *cog(); rotate([-90, 0, 0]) case(); *assembled(); // BLOCK 2 module assembled() { button_movement_height = botton_tooth_distance * (button_nb_tooth - 1); color([1, 0, 0]) { translate([ -(button_dia + cog_dia + case_clearance)/2, 0, $t * (button_movement_height) + case_wall ]) { button(); } } color([0, 1, 0]) { translate([ (button_dia + cog_dia + case_clearance)/2, 0, -($t * (button_movement_height)) + case_wall + button_movement_height ]) { button(); } } case(); translate([0, 0, case_z -cog_hole_dia/2 - case_wall]) { translate([0, cog_thickness/2, 0]) { rotate([90, 360 * $t / 1.270 + 20, 0]) { cog(); } } } } // BLOCK 3 module button() { difference() { union() { cylinder(d = button_dia, h = button_height - button_chamfer); translate([0, 0, button_height - button_chamfer]) { cylinder( d1 = button_dia, d2 = button_dia - button_chamfer*2, h = button_chamfer ); } } for (n = [0 : button_nb_tooth-1]) { translate([0, 0, 3 + n * botton_tooth_distance]) { rotate_extrude() { translate([button_dia/2 + 0.010, 0, 0]) { rotate([0, 0, 90]) { tooth_profile(); } } } } } } } // BLOCK 4 module cog() { linear_extrude(cog_thickness) { cog_profile(); } module cog_profile() { nb_tooth = 9; angle = 360 / nb_tooth; difference() { circle(d = cog_dia); circle(d = axel_hole_dia); } for(theta = [0 : angle : 360]) { rotate([0, 0, theta]) { translate([0, tooth_distance]) { tooth_profile(); } } } } } // BLOCK 5 module case() { button_hole_dia = button_dia + case_clearance; difference() { translate([-case_x/2, 0, 0]) { linear_extrude(case_z) { polygon([ [0, 0], [case_x, 0], [case_x, case_y/2 - case_chamfer], [case_x - case_chamfer, case_y/2], [case_chamfer, case_y/2], [0, case_y/2 - case_chamfer] ]); } } for(side = [-1, 1]) { translate([side * (button_dia + cog_dia + case_clearance)/2, 0, 0]) { translate([0, 0, case_wall]) { cylinder(d=button_hole_dia, h=case_z + 0.010); } translate([0, 0, case_z - case_button_hole_chamfer + 0.010]) { cylinder( d1 = button_hole_dia, d2 = button_hole_dia + case_button_hole_chamfer*2, h = case_button_hole_chamfer ); } } } translate([0, 0, case_z - cog_hole_dia/2 - case_wall]) { rotate([90, 0, 0]) { cylinder(d=cog_hole_dia, h = cog_thickness + case_clearance, center = true); } translate([0, case_y/2 - 2, 0]) { rotate([90, 0, 0]) { cylinder(d = axel_hole_dia, h = case_y/2 - 2); } } } mirror([1, 0, 0]) lock(); } lock(lock_clearance); module lock(_lock_clearance = 0) { lock_z_offset = 5; lock_max_y = 4; lock_x = cog_dia/2 - case_wall - _lock_clearance; lock_y = min(case_y - case_wall, lock_max_y*2) - _lock_clearance; lock_z = case_z - cog_hole_dia - case_wall*2 - lock_z_offset*2 - _lock_clearance; translate([ (lock_x + _lock_clearance)/2, 0, (lock_z + _lock_clearance)/2 + case_wall + lock_z_offset ]) { cube([lock_x, lock_y, lock_z], center = true); } } } // BLOCK 6 module tooth_profile() { polygon([ [-tooth_base_width/2, 0], [-tooth_width/2, tooth_height], [tooth_width/2, tooth_height], [tooth_base_width/2, 0] ]); }
// BLOCK 1 $fn = 80; button_dia = 15; button_height = 70; axel_hole_dia = 1; tooth_height = 1.500; tooth_width = 1; tooth_base_width = 3.500; cog_dia = 13; cog_thickness = 3; case_wall = 2; case_clearance = 0.300; lock_clearance = 0.200; tooth_distance = sqrt(cog_dia/2 * cog_dia/2 - tooth_base_width/2 * tooth_base_width/2); case_chamfer = 5; case_x = cog_dia + button_dia*2 + case_wall*2 + case_clearance*2 + case_chamfer; case_y = max(cog_thickness, button_dia) + case_wall*2 + case_clearance + case_chamfer; case_z = button_height + case_wall + 1; cog_hole_dia = (tooth_distance + tooth_height)*2 + case_clearance; botton_tooth_distance = tooth_base_width + tooth_width; button_nb_tooth = round((button_height - cog_hole_dia/2) / botton_tooth_distance); case_button_hole_chamfer = 0.800; button_chamfer = 0.800; *button(); *cog(); rotate([-90, 0, 0]) case(); *assembled(); // BLOCK 2 module assembled() { button_movement_height = botton_tooth_distance * (button_nb_tooth - 1); color([1, 0, 0]) { translate([ -(button_dia + cog_dia + case_clearance)/2, 0, $t * (button_movement_height) + case_wall ]) { button(); } } color([0, 1, 0]) { translate([ (button_dia + cog_dia + case_clearance)/2, 0, -($t * (button_movement_height)) + case_wall + button_movement_height ]) { button(); } } case(); translate([0, 0, case_z -cog_hole_dia/2 - case_wall]) { translate([0, cog_thickness/2, 0]) { rotate([90, 360 * $t / 1.270 + 20, 0]) { cog(); } } } } // BLOCK 3 module button() { difference() { union() { cylinder(d = button_dia, h = button_height - button_chamfer); translate([0, 0, button_height - button_chamfer]) { cylinder( d1 = button_dia, d2 = button_dia - button_chamfer*2, h = button_chamfer ); } } for (n = [0 : button_nb_tooth-1]) { translate([0, 0, 3 + n * botton_tooth_distance]) { rotate_extrude() { translate([button_dia/2 + 0.010, 0, 0]) { rotate([0, 0, 90]) { tooth_profile(); } } } } } } } // BLOCK 4 module cog() { linear_extrude(cog_thickness) { cog_profile(); } module cog_profile() { nb_tooth = 9; angle = 360 / nb_tooth; difference() { circle(d = cog_dia); circle(d = axel_hole_dia); } for(theta = [0 : angle : 360]) { rotate([0, 0, theta]) { translate([0, tooth_distance]) { tooth_profile(); } } } } } // BLOCK 5 module case() { button_hole_dia = button_dia + case_clearance; difference() { translate([-case_x/2, 0, 0]) { linear_extrude(case_z) { polygon([ [0, 0], [case_x, 0], [case_x, case_y/2 - case_chamfer], [case_x - case_chamfer, case_y/2], [case_chamfer, case_y/2], [0, case_y/2 - case_chamfer] ]); } } for(side = [-1, 1]) { translate([side * (button_dia + cog_dia + case_clearance)/2, 0, 0]) { translate([0, 0, case_wall]) { cylinder(d=button_hole_dia, h=case_z + 0.010); } translate([0, 0, case_z - case_button_hole_chamfer + 0.010]) { cylinder( d1 = button_hole_dia, d2 = button_hole_dia + case_button_hole_chamfer*2, h = case_button_hole_chamfer ); } } } translate([0, 0, case_z - cog_hole_dia/2 - case_wall]) { rotate([90, 0, 0]) { cylinder(d=cog_hole_dia, h = cog_thickness + case_clearance, center = true); } translate([0, case_y/2 - 2, 0]) { rotate([90, 0, 0]) { cylinder(d = axel_hole_dia, h = case_y/2 - 2); } } } mirror([1, 0, 0]) lock(); } lock(lock_clearance); module lock(_lock_clearance = 0) { lock_z_offset = 5; lock_max_y = 4; lock_x = cog_dia/2 - case_wall - _lock_clearance; lock_y = min(case_y - case_wall, lock_max_y*2) - _lock_clearance; lock_z = case_z - cog_hole_dia - case_wall*2 - lock_z_offset*2 - _lock_clearance; translate([ (lock_x + _lock_clearance)/2, 0, (lock_z + _lock_clearance)/2 + case_wall + lock_z_offset ]) { cube([lock_x, lock_y, lock_z], center = true); } } } // BLOCK 6 module tooth_profile() { polygon([ [-tooth_base_width/2, 0], [-tooth_width/2, tooth_height], [tooth_width/2, tooth_height], [tooth_base_width/2, 0] ]); }
2786a710-ba3d-4503-b774-e0ad41415299
// BLOCK 1 axisDia=52; innerDia=78; filamentWid=59; wall=3; slideGap=0.200; filamentRadius=96; buildPlateLen=227; buildPlateWid=143; $fn=90; small=0.010; // BLOCK 2 module wedge() { polygon([ [0,-.4], [0.050,-.2], [.1,0], [.2,.18], [.3,.3], [wall-.2, wall-.2], [wall-.15,wall-.13], [wall-.1,wall-.05], [wall-.05,wall+.05], [wall-.00,wall+.17], [wall,2*wall-.8], [wall-.05,2*wall-.2], [wall-.1,2*wall-.1], [wall-.2,2*wall-.05], [wall-.8,2*wall], [0,2*wall] ]); } // BLOCK 3 module spoolHalf() { difference() { rotate([0,0,60]) { difference() { cylinder(d=innerDia, h=filamentWid/2-2*wall); translate([0,0,filamentWid/2-2*wall-wall]) cylinder(d=innerDia-2*wall, h=filamentWid/2); } cylinder(d=innerDia-4*wall, h=filamentWid/2-2*wall); cylinder(d=innerDia-6*wall+2*small, h=filamentWid/2+wall); translate([0,0,filamentWid/2-wall]) rotate_extrude(angle=239) translate([innerDia/2-3*wall-small,0]) wedge(); rotate([0,0,180]) translate([0,0,filamentWid/2+2*wall]) rotate_extrude(angle=119) translate([-(innerDia/2-2*wall)-slideGap-small,0]) union() { wedge(); polygon([ [small+slideGap,-1*wall], [0-small,3*wall-slideGap], [-wall+slideGap,3*wall-slideGap], [-wall,2*wall], [-2*wall+slideGap,2*wall], [-2*wall+slideGap,-5*wall], [wall+4*small+slideGap,-5*wall], [wall+4*small+slideGap,-3*wall+slideGap], ]); } rotate([0,0,-60]) intersection() { cylinder(r=filamentRadius, h=wall); cube([buildPlateWid, buildPlateLen, 2*wall],center=true); } } translate([0,0,-small]) cylinder(d=innerDia-8*wall, h=filamentWid+2*small); rotate([0,0,-65]) translate([filamentRadius-wall,0,-small]) cylinder(d=3, h=wall+2*small); rotate([0,0,-57]) translate([filamentRadius-wall,0,-small]) cylinder(d=3, h=wall+2*small); rotate([0,0,115]) translate([filamentRadius-wall,0,-small]) cylinder(d=3, h=wall+2*small); rotate([0,0,123]) translate([filamentRadius-wall,0,-small]) cylinder(d=3, h=wall+2*small); rotate([0,0,0]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-2*wall-innerDia/2,wall+2*small]); rotate([0,0,180]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-2*wall-innerDia/2,wall+2*small]); rotate([0,0,45]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-3*wall-innerDia/2,wall+2*small]); rotate([0,0,180+45]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-3*wall-innerDia/2,wall+2*small]); rotate([0,0,-45]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-3*wall-innerDia/2,wall+2*small]); rotate([0,0,180-45]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-3*wall-innerDia/2,wall+2*small]); rotate([0,0,-90]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-10*wall-innerDia/2,wall+2*small]); rotate([0,0,180-90]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-10*wall-innerDia/2,wall+2*small]); } } rotate([0,0,90]) spoolHalf();
// BLOCK 1 axisDia=52; innerDia=78; filamentWid=59; wall=3; slideGap=0.200; filamentRadius=96; buildPlateLen=227; buildPlateWid=143; $fn=90; small=0.010; // BLOCK 2 module wedge() { polygon([ [0,-.4], [0.050,-.2], [.1,0], [.2,.18], [.3,.3], [wall-.2, wall-.2], [wall-.15,wall-.13], [wall-.1,wall-.05], [wall-.05,wall+.05], [wall-.00,wall+.17], [wall,2*wall-.8], [wall-.05,2*wall-.2], [wall-.1,2*wall-.1], [wall-.2,2*wall-.05], [wall-.8,2*wall], [0,2*wall] ]); } // BLOCK 3 module spoolHalf() { difference() { rotate([0,0,60]) { difference() { cylinder(d=innerDia, h=filamentWid/2-2*wall); translate([0,0,filamentWid/2-2*wall-wall]) cylinder(d=innerDia-2*wall, h=filamentWid/2); } cylinder(d=innerDia-4*wall, h=filamentWid/2-2*wall); cylinder(d=innerDia-6*wall+2*small, h=filamentWid/2+wall); translate([0,0,filamentWid/2-wall]) rotate_extrude(angle=239) translate([innerDia/2-3*wall-small,0]) wedge(); rotate([0,0,180]) translate([0,0,filamentWid/2+2*wall]) rotate_extrude(angle=119) translate([-(innerDia/2-2*wall)-slideGap-small,0]) union() { wedge(); polygon([ [small+slideGap,-1*wall], [0-small,3*wall-slideGap], [-wall+slideGap,3*wall-slideGap], [-wall,2*wall], [-2*wall+slideGap,2*wall], [-2*wall+slideGap,-5*wall], [wall+4*small+slideGap,-5*wall], [wall+4*small+slideGap,-3*wall+slideGap], ]); } rotate([0,0,-60]) intersection() { cylinder(r=filamentRadius, h=wall); cube([buildPlateWid, buildPlateLen, 2*wall],center=true); } } translate([0,0,-small]) cylinder(d=innerDia-8*wall, h=filamentWid+2*small); rotate([0,0,-65]) translate([filamentRadius-wall,0,-small]) cylinder(d=3, h=wall+2*small); rotate([0,0,-57]) translate([filamentRadius-wall,0,-small]) cylinder(d=3, h=wall+2*small); rotate([0,0,115]) translate([filamentRadius-wall,0,-small]) cylinder(d=3, h=wall+2*small); rotate([0,0,123]) translate([filamentRadius-wall,0,-small]) cylinder(d=3, h=wall+2*small); rotate([0,0,0]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-2*wall-innerDia/2,wall+2*small]); rotate([0,0,180]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-2*wall-innerDia/2,wall+2*small]); rotate([0,0,45]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-3*wall-innerDia/2,wall+2*small]); rotate([0,0,180+45]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-3*wall-innerDia/2,wall+2*small]); rotate([0,0,-45]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-3*wall-innerDia/2,wall+2*small]); rotate([0,0,180-45]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-3*wall-innerDia/2,wall+2*small]); rotate([0,0,-90]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-10*wall-innerDia/2,wall+2*small]); rotate([0,0,180-90]) translate([-15/2,innerDia/2,-small]) cube([15,filamentRadius-10*wall-innerDia/2,wall+2*small]); } } rotate([0,0,90]) spoolHalf();
28d260a7-371a-48f6-89bc-1f9d5cd53a60
// BLOCK 1 fn = 20; post_radius = 2; post_distance_apart = 10; center_bridge_length = 20; center_bridge_width = .6; helix_height = 72; helix_twists = 360; twist_direction = -1; helix_slices = 500; helix_scale = 1; spacer_radius = 8.150; spacer_height = 4; spacer_start = 0; spacer_increment_distance = 6; spacer_increment_height = 100; base_platform_radius = 18; base_platform_height = 3; base_platform_shape = 6; // BLOCK 2 module helix_basic(){ translate([-post_distance_apart,0,0]){ circle(post_radius,$fn = fn); } translate([post_distance_apart,0,0]){ circle(post_radius, $fn = fn); } square([center_bridge_length,center_bridge_width],center = true); } union(){ // BLOCK 3 difference(){ linear_extrude(height = helix_height, twist = helix_twists*twist_direction, slices = helix_slices, scale = helix_scale){ helix_basic(); } for (a = [ spacer_start : spacer_increment_distance : spacer_increment_height]) translate([0, 0, a]) { linear_extrude(height = spacer_height, center = true){ circle(spacer_radius, $fn = fn); } } } // BLOCK 4 cylinder(r = base_platform_radius, h = base_platform_height, center = true, $fn = base_platform_shape); }
// BLOCK 1 fn = 20; post_radius = 2; post_distance_apart = 10; center_bridge_length = 20; center_bridge_width = .6; helix_height = 72; helix_twists = 360; twist_direction = -1; helix_slices = 500; helix_scale = 1; spacer_radius = 8.150; spacer_height = 4; spacer_start = 0; spacer_increment_distance = 6; spacer_increment_height = 100; base_platform_radius = 18; base_platform_height = 3; base_platform_shape = 6; // BLOCK 2 module helix_basic(){ translate([-post_distance_apart,0,0]){ circle(post_radius,$fn = fn); } translate([post_distance_apart,0,0]){ circle(post_radius, $fn = fn); } square([center_bridge_length,center_bridge_width],center = true); } union(){ // BLOCK 3 difference(){ linear_extrude(height = helix_height, twist = helix_twists*twist_direction, slices = helix_slices, scale = helix_scale){ helix_basic(); } for (a = [ spacer_start : spacer_increment_distance : spacer_increment_height]) translate([0, 0, a]) { linear_extrude(height = spacer_height, center = true){ circle(spacer_radius, $fn = fn); } } } // BLOCK 4 cylinder(r = base_platform_radius, h = base_platform_height, center = true, $fn = base_platform_shape); }
33e22bea-24bf-4e0e-9a60-e4b9de42ed2c
// BLOCK 1 pindistx = 12.500; pindisty = 15.500; pin_dia = 2.500; clip_thick =3; clip_heigth = 8.500; clip_hang = 1; clip_width = 3; clip_length=41; // BLOCK 2 module PP_Pin( x, y, z, heigth,dia) { detail = 0.200; translate([x,y,z]) { cylinder(h=heigth,d=dia,$fs = detail); } } // BLOCK 3 module clip( x, y, z, heigth, side_thick, width, clipthick, cliphang) { translate ([-side_thick, -width/2,0]) { translate([x,y,z]) { cube ([side_thick,width,heigth]); } translate([x,y,z+heigth]) { cube ([side_thick+cliphang,width,clipthick/2]); } } } // BLOCK 4 module clip_rot( x, y, z, heigth, side_thick, width, clipthick, cliphang) { if ( x>0) { rotate(a=[0,0,180]) { clip( -x, y, z, heigth, side_thick, width, clipthick, cliphang); } } else { clip( x, y, z, heigth, side_thick, width, clipthick, cliphang); } } // BLOCK 5 module base (length,width,thick) { translate([-length/2,-width/2,-thick]) { cube ([length,width,thick]); } } // BLOCK 6 module PP_Clip() { pin_pos = (pindistx/2); clip_pos = clip_length/2; base_length = clip_length+ 2 * clip_thick; base_width = clip_width*2; base_thick = clip_thick/2; union () { base(base_length, ,base_width, base_thick); PP_Pin(pin_pos,0,0,clip_heigth,pin_dia); PP_Pin(-pin_pos,0,0,clip_heigth,pin_dia); clip_rot( clip_pos , 0,0, clip_heigth, clip_thick, clip_width, clip_thick, clip_hang); clip_rot( -clip_pos, 0,0, clip_heigth, clip_thick, clip_width, clip_thick, clip_hang); } } // BLOCK 7 module PP_Clip90() { clip_width = pindistx+pin_dia; clip_length=pindisty; clip_thick = clip_thick/2; pin_posx = (pindisty/2); pin_posy = pindistx/2; clip_pos = clip_length/2; base_length = clip_length+ 2 * clip_thick; base_width = clip_width; base_thick = clip_thick; rotate(a=[0,0,90]) { union () { base(base_length, ,base_width, base_thick); PP_Pin(0,pin_posy,0,clip_heigth,pin_dia); PP_Pin(0,-pin_posy,0,clip_heigth,pin_dia); PP_Pin(pin_posx,pin_posy,0,clip_heigth,pin_dia); PP_Pin(-pin_posx,pin_posy,0,clip_heigth,pin_dia); PP_Pin(pin_posx,-pin_posy,0,clip_heigth,pin_dia); PP_Pin(-pin_posx,-pin_posy,0,clip_heigth,pin_dia); clip_rot( clip_pos , 0,0, clip_heigth, clip_thick, clip_width, clip_thick, clip_hang); clip_rot( -clip_pos, 0,0, clip_heigth, clip_thick, clip_width, clip_thick, clip_hang); } } } PP_Clip90(); PP_Clip();
// BLOCK 1 pindistx = 12.500; pindisty = 15.500; pin_dia = 2.500; clip_thick =3; clip_heigth = 8.500; clip_hang = 1; clip_width = 3; clip_length=41; // BLOCK 2 module PP_Pin( x, y, z, heigth,dia) { detail = 0.200; translate([x,y,z]) { cylinder(h=heigth,d=dia,$fs = detail); } } // BLOCK 3 module clip( x, y, z, heigth, side_thick, width, clipthick, cliphang) { translate ([-side_thick, -width/2,0]) { translate([x,y,z]) { cube ([side_thick,width,heigth]); } translate([x,y,z+heigth]) { cube ([side_thick+cliphang,width,clipthick/2]); } } } // BLOCK 4 module clip_rot( x, y, z, heigth, side_thick, width, clipthick, cliphang) { if ( x>0) { rotate(a=[0,0,180]) { clip( -x, y, z, heigth, side_thick, width, clipthick, cliphang); } } else { clip( x, y, z, heigth, side_thick, width, clipthick, cliphang); } } // BLOCK 5 module base (length,width,thick) { translate([-length/2,-width/2,-thick]) { cube ([length,width,thick]); } } // BLOCK 6 module PP_Clip() { pin_pos = (pindistx/2); clip_pos = clip_length/2; base_length = clip_length+ 2 * clip_thick; base_width = clip_width*2; base_thick = clip_thick/2; union () { base(base_length, ,base_width, base_thick); PP_Pin(pin_pos,0,0,clip_heigth,pin_dia); PP_Pin(-pin_pos,0,0,clip_heigth,pin_dia); clip_rot( clip_pos , 0,0, clip_heigth, clip_thick, clip_width, clip_thick, clip_hang); clip_rot( -clip_pos, 0,0, clip_heigth, clip_thick, clip_width, clip_thick, clip_hang); } } // BLOCK 7 module PP_Clip90() { clip_width = pindistx+pin_dia; clip_length=pindisty; clip_thick = clip_thick/2; pin_posx = (pindisty/2); pin_posy = pindistx/2; clip_pos = clip_length/2; base_length = clip_length+ 2 * clip_thick; base_width = clip_width; base_thick = clip_thick; rotate(a=[0,0,90]) { union () { base(base_length, ,base_width, base_thick); PP_Pin(0,pin_posy,0,clip_heigth,pin_dia); PP_Pin(0,-pin_posy,0,clip_heigth,pin_dia); PP_Pin(pin_posx,pin_posy,0,clip_heigth,pin_dia); PP_Pin(-pin_posx,pin_posy,0,clip_heigth,pin_dia); PP_Pin(pin_posx,-pin_posy,0,clip_heigth,pin_dia); PP_Pin(-pin_posx,-pin_posy,0,clip_heigth,pin_dia); clip_rot( clip_pos , 0,0, clip_heigth, clip_thick, clip_width, clip_thick, clip_hang); clip_rot( -clip_pos, 0,0, clip_heigth, clip_thick, clip_width, clip_thick, clip_hang); } } } PP_Clip90(); PP_Clip();
fd707ef9-cc8e-4427-90b7-816860a61aa6
// BLOCK 1 $fn=60; Body_H = 30; Body_Top_D = 5; Body_Bottom_D = 10; Body_Hole_Y_Scale = 1; Hole_D = 4; Hole_Y_Scale = 1; Hole_Phase = 0; Tip_Ena = true; Tip_Square = true; Tip_H = 0.080; Tip_D = 0.500; Retainer_Ena = true; Retainer_H = 2; Retainer_Top_D = 0.750; Retainer_D = 0.250; Gap_H = 1.500; Gap_Inset = 0; Base_Ena = true; Base_Square = true; Base_H = 3; Base_D = 5; Base_Hole_Y_Scale = 1; Base_Phase = 0; // BLOCK 2 difference() { union() { scale([1,Body_Hole_Y_Scale,1]) union() { Body(); if (Retainer_Ena) Retainer(); if (Tip_Ena) Tip(); } if (Base_Ena) Base(); } Gap(); rotate(Hole_Phase) scale([1,Hole_Y_Scale,1]) translate([0,0,-0.010]) cylinder(d=Hole_D,h=Body_H*2); } // BLOCK 3 module Tip() { translate([0,0,Body_H*(1-Tip_H)]) cylinder(d=Body_Top_D*(1+Tip_D),h=Body_H*Tip_H); if (!Tip_Square) { translate([0,0,Body_H*(1-Tip_H/2)]) Torus((Body_Top_D*(1+Tip_D))/2,Body_H*Tip_H/2); } } // BLOCK 4 module Body() { if (Retainer_Ena) { k = Gap_H+Base_H; cylinder(d=Body_Bottom_D,h=k); translate([0,0,k]) cylinder(d1=Body_Bottom_D,d2=Body_Top_D,h=Body_H-k); } else { cylinder(d1=Body_Bottom_D,d2=Body_Top_D,h=Body_H); } } // BLOCK 5 module Gap() { translate([0,0,Base_H]) difference() { cylinder(d=1000,h=Gap_H); cylinder(d=Body_Bottom_D-Gap_Inset,h=Gap_H); } } // BLOCK 6 module Retainer() { D= Body_Bottom_D*Retainer_D; translate([0,0,Base_H+Gap_H]) cylinder(d1=Body_Bottom_D+D,d2=Body_Bottom_D+D*Retainer_Top_D,h=Retainer_H); } // BLOCK 7 module Base() { rotate(Base_Phase) scale([1,Base_Hole_Y_Scale]) if (Base_Square) { translate([0,0,Base_H/2]) cube([Body_Bottom_D+Base_D,Body_Bottom_D+Base_D,Base_H],center=true); } else { cylinder(d=Body_Bottom_D+Base_D,h=Base_H); } } // BLOCK 8 module Torus(R,r) { rotate_extrude() translate([R,0]) intersection() { circle(r); translate([0,-500]) square(1000); } }
// BLOCK 1 $fn=60; Body_H = 30; Body_Top_D = 5; Body_Bottom_D = 10; Body_Hole_Y_Scale = 1; Hole_D = 4; Hole_Y_Scale = 1; Hole_Phase = 0; Tip_Ena = true; Tip_Square = true; Tip_H = 0.080; Tip_D = 0.500; Retainer_Ena = true; Retainer_H = 2; Retainer_Top_D = 0.750; Retainer_D = 0.250; Gap_H = 1.500; Gap_Inset = 0; Base_Ena = true; Base_Square = true; Base_H = 3; Base_D = 5; Base_Hole_Y_Scale = 1; Base_Phase = 0; // BLOCK 2 difference() { union() { scale([1,Body_Hole_Y_Scale,1]) union() { Body(); if (Retainer_Ena) Retainer(); if (Tip_Ena) Tip(); } if (Base_Ena) Base(); } Gap(); rotate(Hole_Phase) scale([1,Hole_Y_Scale,1]) translate([0,0,-0.010]) cylinder(d=Hole_D,h=Body_H*2); } // BLOCK 3 module Tip() { translate([0,0,Body_H*(1-Tip_H)]) cylinder(d=Body_Top_D*(1+Tip_D),h=Body_H*Tip_H); if (!Tip_Square) { translate([0,0,Body_H*(1-Tip_H/2)]) Torus((Body_Top_D*(1+Tip_D))/2,Body_H*Tip_H/2); } } // BLOCK 4 module Body() { if (Retainer_Ena) { k = Gap_H+Base_H; cylinder(d=Body_Bottom_D,h=k); translate([0,0,k]) cylinder(d1=Body_Bottom_D,d2=Body_Top_D,h=Body_H-k); } else { cylinder(d1=Body_Bottom_D,d2=Body_Top_D,h=Body_H); } } // BLOCK 5 module Gap() { translate([0,0,Base_H]) difference() { cylinder(d=1000,h=Gap_H); cylinder(d=Body_Bottom_D-Gap_Inset,h=Gap_H); } } // BLOCK 6 module Retainer() { D= Body_Bottom_D*Retainer_D; translate([0,0,Base_H+Gap_H]) cylinder(d1=Body_Bottom_D+D,d2=Body_Bottom_D+D*Retainer_Top_D,h=Retainer_H); } // BLOCK 7 module Base() { rotate(Base_Phase) scale([1,Base_Hole_Y_Scale]) if (Base_Square) { translate([0,0,Base_H/2]) cube([Body_Bottom_D+Base_D,Body_Bottom_D+Base_D,Base_H],center=true); } else { cylinder(d=Body_Bottom_D+Base_D,h=Base_H); } } // BLOCK 8 module Torus(R,r) { rotate_extrude() translate([R,0]) intersection() { circle(r); translate([0,-500]) square(1000); } }
6109cbee-0119-4eef-a29e-745896ca096e
// BLOCK 1 $fn=30; AAA(); // BLOCK 2 module AAA () { difference () { union() { hull() { translate ([+20, +8, 0]) cylinder (d=4,h=6); translate ([+20, -8, 0]) cylinder (d=4,h=6); translate ([-20, +8, 0]) cylinder (d=4,h=6); translate ([-20, -8, 0]) cylinder (d=4,h=6); } } translate ([ 0,0,-5]) cylinder (d=3.500, h= 20); translate ([+15,0,-5]) cylinder (d=4.500, h= 20); translate ([-15,0,-5]) cylinder (d=4.500, h= 20); translate ([+15,0,+3]) cylinder (d=16.500, h= 20); translate ([-15,0,+3]) cylinder (d=16.500, h= 20); translate ([+15, -6,3]) cube ([20, 12, 6]); translate ([-35, -6,3]) cube ([20, 12, 6]); } }
// BLOCK 1 $fn=30; AAA(); // BLOCK 2 module AAA () { difference () { union() { hull() { translate ([+20, +8, 0]) cylinder (d=4,h=6); translate ([+20, -8, 0]) cylinder (d=4,h=6); translate ([-20, +8, 0]) cylinder (d=4,h=6); translate ([-20, -8, 0]) cylinder (d=4,h=6); } } translate ([ 0,0,-5]) cylinder (d=3.500, h= 20); translate ([+15,0,-5]) cylinder (d=4.500, h= 20); translate ([-15,0,-5]) cylinder (d=4.500, h= 20); translate ([+15,0,+3]) cylinder (d=16.500, h= 20); translate ([-15,0,+3]) cylinder (d=16.500, h= 20); translate ([+15, -6,3]) cube ([20, 12, 6]); translate ([-35, -6,3]) cube ([20, 12, 6]); } }
fe52e278-aa3d-47ca-996c-cba12f5d88d3
// BLOCK 1 // BLOCK 2 module wood_texture(size, depth=0.200, width=0.500, spacing=1.650, angle=6, disable=false, fn=4){ undersize = 0.600*width; if(disable){ children(0); }else if($preview){ intersection(){ union(){ resize([size.x-2*depth-undersize, size.y-2*depth-undersize, size.z]) children(0); difference() { resize([size.x, size.y, size.z]) children(0); rotate([0, 0, -3]) translate([0, 0, size.z/2]) rotate([-angle, 0, 0]) for(y=[-size.y:spacing:size.y]){ translate([0, y+0.500*spacing, 0]) cube([2*size.x, width, 2*size.z], center=true); } } } } }else{ intersection(){ children(0); union(){ resize([size.x-4*depth-undersize, size.y-4*depth-undersize, size.z]) children(0); minkowski(){ difference(){ resize([size.x-undersize, size.y-undersize, size.z]) children(0); render() rotate([0, 0, -3]) translate([0, 0, size.z/2]) rotate([-angle, 0, 0]) for(y=[-size.y:spacing:size.y]){ translate([0, y+0.500*spacing, 0]) cube([2*size.x, width, 2*size.z], center=true); } } sphere(r=0.700*width, $fn=fn); } } } } } // BLOCK 3 wood_texture([20, 20, 20]){ cylinder(h=20, d=20, $fn=64); }
// BLOCK 1 // BLOCK 2 module wood_texture(size, depth=0.200, width=0.500, spacing=1.650, angle=6, disable=false, fn=4){ undersize = 0.600*width; if(disable){ children(0); }else if($preview){ intersection(){ union(){ resize([size.x-2*depth-undersize, size.y-2*depth-undersize, size.z]) children(0); difference() { resize([size.x, size.y, size.z]) children(0); rotate([0, 0, -3]) translate([0, 0, size.z/2]) rotate([-angle, 0, 0]) for(y=[-size.y:spacing:size.y]){ translate([0, y+0.500*spacing, 0]) cube([2*size.x, width, 2*size.z], center=true); } } } } }else{ intersection(){ children(0); union(){ resize([size.x-4*depth-undersize, size.y-4*depth-undersize, size.z]) children(0); minkowski(){ difference(){ resize([size.x-undersize, size.y-undersize, size.z]) children(0); render() rotate([0, 0, -3]) translate([0, 0, size.z/2]) rotate([-angle, 0, 0]) for(y=[-size.y:spacing:size.y]){ translate([0, y+0.500*spacing, 0]) cube([2*size.x, width, 2*size.z], center=true); } } sphere(r=0.700*width, $fn=fn); } } } } } // BLOCK 3 wood_texture([20, 20, 20]){ cylinder(h=20, d=20, $fn=64); }
b8e578ad-077c-4ff5-bbb6-ef5ad41f3d16
// BLOCK 1 $fn=180; // BLOCK 2 module radius(radius,length,axis) { if(axis=="X") { rotate(90,[1,0,0]) rotate(90,[0,1,0]) translate([0,0,-0.100]) linear_extrude(height = length+0.200, center = false, convexity = 4, twist = 0) difference() { translate([-0.100,-0.100]) square([radius+0.100,radius+0.100]); translate([radius,radius]) circle(r=radius); } } else if(axis=="Y") { rotate(270,[0,1,0]) rotate(270,[1,0,0]) translate([0,0,-0.100]) linear_extrude(height = length+0.200, center = false, convexity = 4, twist = 0) difference() { translate([-0.100,-0.100]) square([radius+0.100,radius+0.100]); translate([radius,radius]) circle(r=radius); } } else { translate([0,0,-0.100]) linear_extrude(height = length+0.200, center = false, convexity = 4, twist = 0) difference() { translate([-0.100,-0.100]) square([radius+0.100,radius+0.100]); translate([radius,radius]) circle(r=radius); } } } // BLOCK 3 module FTDI_EVAL232R_Case() { difference() { union() { translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,0]) cube([32+0.500+0.500+3+3,14.350+0.500+0.500+3+3,61.500+3+0.500]); translate([-35,+10.200,3]) rotate(90,[0,1,0]) rotate(180,[0,0,1]) rotate(+90,[1,0,0]) scale([0.027,0.027,1]) color([0,0,1,0.500]) import_stl("cf_logo.STL", convexity = 5); translate([-27,-10,3]) rotate(0,[0,1,0]) rotate(0,[0,0,1]) rotate(+90,[1,0,0]) scale([0.023,0.023,1]) color([0,0,1,0.500]) import_stl("cf_logo.STL", convexity = 5); } translate([-(12+0.500+0.500)/2,-(14.350+0.500+0.500+3+3)/2+3+0.500+1.600,-1]) cube([12+0.500+0.500,10.900+0.500+0.500,20]); translate([-(32+0.500+0.500)/2,-(14.350+0.500+0.500)/2,3]) cube([32+0.500+0.500,14.350+0.500+0.500,80]); translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,-1]) radius(radius=2.500,length=70,axis="Z"); translate([+(32+0.500+0.500+3+3)/2,+(14.350+0.500+0.500+3+3)/2,-1]) rotate(180,[0,0,1]) radius(radius=2.500,length=70,axis="Z"); translate([-(32+0.500+0.500+3+3)/2,+(14.350+0.500+0.500+3+3)/2,-1]) rotate(-90,[0,0,1]) radius(radius=2.500,length=70,axis="Z"); translate([+(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,-1]) rotate(+90,[0,0,1]) radius(radius=2.500,length=70,axis="Z"); translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,61.500+3+0.500]) rotate(-90,[1,0,0]) radius(radius=2.500,length=40,axis="X"); translate([-(32+0.500+0.500+3+3)/2,+(14.350+0.500+0.500+3+3)/2,61.500+3+0.500]) rotate(180,[1,0,0]) radius(radius=2.500,length=40,axis="X"); translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,61.500+3+0.500]) rotate(90,[0,1,0]) radius(radius=2.500,length=40,axis="Y"); translate([+(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,61.500+3+0.500]) rotate(180,[0,1,0]) radius(radius=2.500,length=40,axis="Y"); mirror([0,0,1]) { translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,0.400]) rotate(-90,[1,0,0]) radius(radius=2.500,length=40,axis="X"); translate([-(32+0.500+0.500+3+3)/2,+(14.350+0.500+0.500+3+3)/2,0.400]) rotate(180,[1,0,0]) radius(radius=2.500,length=40,axis="X"); translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,0.400]) rotate(90,[0,1,0]) radius(radius=2.500,length=40,axis="Y"); translate([+(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,0.400]) rotate(180,[0,1,0]) radius(radius=2.500,length=40,axis="Y"); } } } // BLOCK 4 color([0.500,0.500,0.500,0.100]) translate([-50,-50,-1.010]) %cube([100,100,1]); translate([0,0,0]) FTDI_EVAL232R_Case();
// BLOCK 1 $fn=180; // BLOCK 2 module radius(radius,length,axis) { if(axis=="X") { rotate(90,[1,0,0]) rotate(90,[0,1,0]) translate([0,0,-0.100]) linear_extrude(height = length+0.200, center = false, convexity = 4, twist = 0) difference() { translate([-0.100,-0.100]) square([radius+0.100,radius+0.100]); translate([radius,radius]) circle(r=radius); } } else if(axis=="Y") { rotate(270,[0,1,0]) rotate(270,[1,0,0]) translate([0,0,-0.100]) linear_extrude(height = length+0.200, center = false, convexity = 4, twist = 0) difference() { translate([-0.100,-0.100]) square([radius+0.100,radius+0.100]); translate([radius,radius]) circle(r=radius); } } else { translate([0,0,-0.100]) linear_extrude(height = length+0.200, center = false, convexity = 4, twist = 0) difference() { translate([-0.100,-0.100]) square([radius+0.100,radius+0.100]); translate([radius,radius]) circle(r=radius); } } } // BLOCK 3 module FTDI_EVAL232R_Case() { difference() { union() { translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,0]) cube([32+0.500+0.500+3+3,14.350+0.500+0.500+3+3,61.500+3+0.500]); translate([-35,+10.200,3]) rotate(90,[0,1,0]) rotate(180,[0,0,1]) rotate(+90,[1,0,0]) scale([0.027,0.027,1]) color([0,0,1,0.500]) import_stl("cf_logo.STL", convexity = 5); translate([-27,-10,3]) rotate(0,[0,1,0]) rotate(0,[0,0,1]) rotate(+90,[1,0,0]) scale([0.023,0.023,1]) color([0,0,1,0.500]) import_stl("cf_logo.STL", convexity = 5); } translate([-(12+0.500+0.500)/2,-(14.350+0.500+0.500+3+3)/2+3+0.500+1.600,-1]) cube([12+0.500+0.500,10.900+0.500+0.500,20]); translate([-(32+0.500+0.500)/2,-(14.350+0.500+0.500)/2,3]) cube([32+0.500+0.500,14.350+0.500+0.500,80]); translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,-1]) radius(radius=2.500,length=70,axis="Z"); translate([+(32+0.500+0.500+3+3)/2,+(14.350+0.500+0.500+3+3)/2,-1]) rotate(180,[0,0,1]) radius(radius=2.500,length=70,axis="Z"); translate([-(32+0.500+0.500+3+3)/2,+(14.350+0.500+0.500+3+3)/2,-1]) rotate(-90,[0,0,1]) radius(radius=2.500,length=70,axis="Z"); translate([+(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,-1]) rotate(+90,[0,0,1]) radius(radius=2.500,length=70,axis="Z"); translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,61.500+3+0.500]) rotate(-90,[1,0,0]) radius(radius=2.500,length=40,axis="X"); translate([-(32+0.500+0.500+3+3)/2,+(14.350+0.500+0.500+3+3)/2,61.500+3+0.500]) rotate(180,[1,0,0]) radius(radius=2.500,length=40,axis="X"); translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,61.500+3+0.500]) rotate(90,[0,1,0]) radius(radius=2.500,length=40,axis="Y"); translate([+(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,61.500+3+0.500]) rotate(180,[0,1,0]) radius(radius=2.500,length=40,axis="Y"); mirror([0,0,1]) { translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,0.400]) rotate(-90,[1,0,0]) radius(radius=2.500,length=40,axis="X"); translate([-(32+0.500+0.500+3+3)/2,+(14.350+0.500+0.500+3+3)/2,0.400]) rotate(180,[1,0,0]) radius(radius=2.500,length=40,axis="X"); translate([-(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,0.400]) rotate(90,[0,1,0]) radius(radius=2.500,length=40,axis="Y"); translate([+(32+0.500+0.500+3+3)/2,-(14.350+0.500+0.500+3+3)/2,0.400]) rotate(180,[0,1,0]) radius(radius=2.500,length=40,axis="Y"); } } } // BLOCK 4 color([0.500,0.500,0.500,0.100]) translate([-50,-50,-1.010]) %cube([100,100,1]); translate([0,0,0]) FTDI_EVAL232R_Case();
41bc640f-f876-4cec-9416-e8b2c47765d0
// BLOCK 1 length = 120; height = 20; diameter_magnet = 7; depth = 8; height_fence = 4; depth_fence = 10; cover_magnet = 0.240; sq = depth/sqrt(2); $fn=150; // BLOCK 2 difference(){ base(); for(x = [height*(-1) : height/3 : length]){ translate ([x,0,-6.300]) riffel(); } translate ([0,(height/2)+(height_fence/2),depth/2*(-1)]) rotate ([45,0,0]) cube ([length,sq,sq]); translate ([length/4,0,depth/2*(-1)]) rotate ([45,0,90]) cube ([height+height_fence,sq,sq]); translate ([length/4*3,0,depth/2*(-1)]) rotate ([45,0,90]) cube ([height+height_fence,sq,sq]); translate ([length/4/2,(height/2)+(height_fence/2),cover_magnet*(-1)]) cylinder(depth,diameter_magnet/2,diameter_magnet/2); translate ([(length/4/2)+(length/4*3),(height/2)+(height_fence/2),cover_magnet*(-1)]) cylinder(depth,diameter_magnet/2,diameter_magnet/2); } // BLOCK 3 module base(){ cube ([length,height,depth]); translate([0,height,0]) cube ([length,height_fence,depth_fence+depth]); } // BLOCK 4 module riffel(){ rotate ([45,0,45]) cube([120,5,5]); }
// BLOCK 1 length = 120; height = 20; diameter_magnet = 7; depth = 8; height_fence = 4; depth_fence = 10; cover_magnet = 0.240; sq = depth/sqrt(2); $fn=150; // BLOCK 2 difference(){ base(); for(x = [height*(-1) : height/3 : length]){ translate ([x,0,-6.300]) riffel(); } translate ([0,(height/2)+(height_fence/2),depth/2*(-1)]) rotate ([45,0,0]) cube ([length,sq,sq]); translate ([length/4,0,depth/2*(-1)]) rotate ([45,0,90]) cube ([height+height_fence,sq,sq]); translate ([length/4*3,0,depth/2*(-1)]) rotate ([45,0,90]) cube ([height+height_fence,sq,sq]); translate ([length/4/2,(height/2)+(height_fence/2),cover_magnet*(-1)]) cylinder(depth,diameter_magnet/2,diameter_magnet/2); translate ([(length/4/2)+(length/4*3),(height/2)+(height_fence/2),cover_magnet*(-1)]) cylinder(depth,diameter_magnet/2,diameter_magnet/2); } // BLOCK 3 module base(){ cube ([length,height,depth]); translate([0,height,0]) cube ([length,height_fence,depth_fence+depth]); } // BLOCK 4 module riffel(){ rotate ([45,0,45]) cube([120,5,5]); }
09b3b41a-ef46-4fb9-b1b6-7472510500b7
// BLOCK 1 tol=0.050; $fn=50; brg_608_th=7; brg_608_outer_d=22; brg_608_inner_d=8; brg_608_inner_shoulder_d=10; pulley_cable_d= brg_608_outer_d+2*3; pulley_shoulder= 2; nail_d= 4.600; brg_tightness=0.000; cover_leg_outer_d= 8; cover_leg_inner_d= 3; cover_angular_size= 70; cover_gap=0.600; cover_th= pulley_shoulder; reinforced_legs=true; pulley_d= pulley_cable_d+brg_608_th; pulley_overhang_correction= pulley_d/30; // BLOCK 2 module debug_bearing_608() { %difference() { cylinder(r= brg_608_outer_d/2, h=brg_608_th); translate([0,0,-tol]) cylinder(r= brg_608_inner_d/2, h=brg_608_th + 2*tol); translate([0,0,-tol]) cylinder(r= 17.500/2, h=0.660); translate([0,0,brg_608_th-0.660+tol]) cylinder(r= 17.500/2, h=0.660); } } // BLOCK 3 module pulley() { difference() { cylinder(r= pulley_d/2-pulley_overhang_correction, h= pulley_shoulder*2 + brg_608_th); translate([0,0,-tol]) cylinder(r= brg_608_outer_d/2 - pulley_shoulder, h= pulley_shoulder+2*tol); translate([0,0,pulley_shoulder-tol]) cylinder(r= brg_608_outer_d/2-brg_tightness/2, h= brg_608_th+pulley_shoulder+2*tol); translate([0, 0, brg_608_th/2 + pulley_shoulder]) rotate_extrude(convexity = 10) translate([pulley_d/2, 0,0]) circle(r=brg_608_th/2); } } // BLOCK 4 module cover_sector() { translate([0,0,-1]) hull() { for(a=[-cover_angular_size/2:30:cover_angular_size/2-0.010]) rotate([0,0,a]) cube([0.100,pulley_d/2+brg_608_th+3,brg_608_th+2*cover_th+2*cover_gap+3]); rotate([0,0,cover_angular_size/2]) cube([0.100,pulley_d/2+brg_608_th+3,brg_608_th+2*cover_th+2*cover_gap+3]); } } cover_r= pulley_d/2+cover_gap; leg_outer_pos= pulley_d/2 + (brg_608_th/2+pulley_shoulder) + cover_leg_outer_d/2 + cover_gap; // BLOCK 5 module cover(bottom_side=true) { color([0.150,0.500,0.250]) difference() { union() { if(bottom_side==true) { cylinder(r=brg_608_inner_d/2 + brg_tightness/2, h=pulley_shoulder+brg_608_th+pulley_shoulder*0+cover_th+cover_gap); } cylinder(r=brg_608_inner_shoulder_d/2, h=pulley_shoulder+cover_th+cover_gap); hull() { cylinder(r=brg_608_inner_d/2, h=cover_th); if(cover_angular_size>0) { intersection() { cover_sector(); cylinder(r= (pulley_d)/2+cover_gap+pulley_shoulder, h= cover_th); } } } if(cover_leg_outer_d>0) { difference() { union() { hull() { cylinder(r=brg_608_inner_d/2, h=cover_th); translate([0,leg_outer_pos,0]) cylinder(r= cover_leg_outer_d/2,h= cover_th); } if(bottom_side==false) { translate([0,leg_outer_pos,0]) cylinder(r= cover_leg_outer_d/2,h= cover_th+cover_gap*2+pulley_shoulder*2+brg_608_th); } } translate([0,leg_outer_pos,-tol]) cylinder(r= cover_leg_inner_d/2,h= cover_th+cover_gap*2+pulley_shoulder*2+brg_608_th+2*tol); } } if(cover_angular_size>0 && bottom_side) { intersection() { cover_sector(); difference() { hull() { translate([0,0,pulley_shoulder+brg_608_th/2+cover_th+cover_gap]) rotate_extrude(convexity = 10) translate([pulley_d/2, 0,0]) circle(r=brg_608_th/2+pulley_shoulder); translate([0,0,pulley_shoulder/2]) rotate_extrude(convexity = 10) translate([pulley_d/2+pulley_shoulder, 0,0]) circle(r=pulley_shoulder/2); } translate([0,0,-tol]) cylinder(r=cover_r, h=pulley_shoulder+brg_608_th+pulley_shoulder+cover_th+cover_gap+2*tol); translate([0, 0, brg_608_th/2 + pulley_shoulder + cover_th + cover_gap]) rotate_extrude(convexity = 10) translate([pulley_d/2, 0,0]) circle(r=brg_608_th/2); } } } } translate([0,0,-tol]) cylinder(r=nail_d/2, h=pulley_shoulder+brg_608_th+pulley_shoulder+cover_th+cover_gap+2*tol); if(reinforced_legs) { for(i=[-brg_608_inner_d/2:brg_608_inner_d/10:brg_608_inner_d/2]) translate([i,-10,cover_th/2]) rotate([-90,0,0]) cylinder(r=0.100,h= leg_outer_pos+20, $fn=4); } } } // BLOCK 6 module cover_bottom() { cover(true); } // BLOCK 7 module cover_top() { cover(false); } // BLOCK 8 module show(show_bearing=true, show_pulley=true, show_coverb=true, show_covert=true) { if(show_bearing) translate([0,0,cover_th+cover_gap+pulley_shoulder]) debug_bearing_608(); if(show_pulley) translate([0,0,cover_th+cover_gap]) pulley(); if(show_coverb) cover_bottom(); if(show_covert) color([0.800,0.300,0.300]) scale([1,1,-1]) translate([0,0,-(cover_th*2+cover_gap*2+pulley_shoulder*2+brg_608_th)]) cover_top(); } show(false,true,true,true);
// BLOCK 1 tol=0.050; $fn=50; brg_608_th=7; brg_608_outer_d=22; brg_608_inner_d=8; brg_608_inner_shoulder_d=10; pulley_cable_d= brg_608_outer_d+2*3; pulley_shoulder= 2; nail_d= 4.600; brg_tightness=0.000; cover_leg_outer_d= 8; cover_leg_inner_d= 3; cover_angular_size= 70; cover_gap=0.600; cover_th= pulley_shoulder; reinforced_legs=true; pulley_d= pulley_cable_d+brg_608_th; pulley_overhang_correction= pulley_d/30; // BLOCK 2 module debug_bearing_608() { %difference() { cylinder(r= brg_608_outer_d/2, h=brg_608_th); translate([0,0,-tol]) cylinder(r= brg_608_inner_d/2, h=brg_608_th + 2*tol); translate([0,0,-tol]) cylinder(r= 17.500/2, h=0.660); translate([0,0,brg_608_th-0.660+tol]) cylinder(r= 17.500/2, h=0.660); } } // BLOCK 3 module pulley() { difference() { cylinder(r= pulley_d/2-pulley_overhang_correction, h= pulley_shoulder*2 + brg_608_th); translate([0,0,-tol]) cylinder(r= brg_608_outer_d/2 - pulley_shoulder, h= pulley_shoulder+2*tol); translate([0,0,pulley_shoulder-tol]) cylinder(r= brg_608_outer_d/2-brg_tightness/2, h= brg_608_th+pulley_shoulder+2*tol); translate([0, 0, brg_608_th/2 + pulley_shoulder]) rotate_extrude(convexity = 10) translate([pulley_d/2, 0,0]) circle(r=brg_608_th/2); } } // BLOCK 4 module cover_sector() { translate([0,0,-1]) hull() { for(a=[-cover_angular_size/2:30:cover_angular_size/2-0.010]) rotate([0,0,a]) cube([0.100,pulley_d/2+brg_608_th+3,brg_608_th+2*cover_th+2*cover_gap+3]); rotate([0,0,cover_angular_size/2]) cube([0.100,pulley_d/2+brg_608_th+3,brg_608_th+2*cover_th+2*cover_gap+3]); } } cover_r= pulley_d/2+cover_gap; leg_outer_pos= pulley_d/2 + (brg_608_th/2+pulley_shoulder) + cover_leg_outer_d/2 + cover_gap; // BLOCK 5 module cover(bottom_side=true) { color([0.150,0.500,0.250]) difference() { union() { if(bottom_side==true) { cylinder(r=brg_608_inner_d/2 + brg_tightness/2, h=pulley_shoulder+brg_608_th+pulley_shoulder*0+cover_th+cover_gap); } cylinder(r=brg_608_inner_shoulder_d/2, h=pulley_shoulder+cover_th+cover_gap); hull() { cylinder(r=brg_608_inner_d/2, h=cover_th); if(cover_angular_size>0) { intersection() { cover_sector(); cylinder(r= (pulley_d)/2+cover_gap+pulley_shoulder, h= cover_th); } } } if(cover_leg_outer_d>0) { difference() { union() { hull() { cylinder(r=brg_608_inner_d/2, h=cover_th); translate([0,leg_outer_pos,0]) cylinder(r= cover_leg_outer_d/2,h= cover_th); } if(bottom_side==false) { translate([0,leg_outer_pos,0]) cylinder(r= cover_leg_outer_d/2,h= cover_th+cover_gap*2+pulley_shoulder*2+brg_608_th); } } translate([0,leg_outer_pos,-tol]) cylinder(r= cover_leg_inner_d/2,h= cover_th+cover_gap*2+pulley_shoulder*2+brg_608_th+2*tol); } } if(cover_angular_size>0 && bottom_side) { intersection() { cover_sector(); difference() { hull() { translate([0,0,pulley_shoulder+brg_608_th/2+cover_th+cover_gap]) rotate_extrude(convexity = 10) translate([pulley_d/2, 0,0]) circle(r=brg_608_th/2+pulley_shoulder); translate([0,0,pulley_shoulder/2]) rotate_extrude(convexity = 10) translate([pulley_d/2+pulley_shoulder, 0,0]) circle(r=pulley_shoulder/2); } translate([0,0,-tol]) cylinder(r=cover_r, h=pulley_shoulder+brg_608_th+pulley_shoulder+cover_th+cover_gap+2*tol); translate([0, 0, brg_608_th/2 + pulley_shoulder + cover_th + cover_gap]) rotate_extrude(convexity = 10) translate([pulley_d/2, 0,0]) circle(r=brg_608_th/2); } } } } translate([0,0,-tol]) cylinder(r=nail_d/2, h=pulley_shoulder+brg_608_th+pulley_shoulder+cover_th+cover_gap+2*tol); if(reinforced_legs) { for(i=[-brg_608_inner_d/2:brg_608_inner_d/10:brg_608_inner_d/2]) translate([i,-10,cover_th/2]) rotate([-90,0,0]) cylinder(r=0.100,h= leg_outer_pos+20, $fn=4); } } } // BLOCK 6 module cover_bottom() { cover(true); } // BLOCK 7 module cover_top() { cover(false); } // BLOCK 8 module show(show_bearing=true, show_pulley=true, show_coverb=true, show_covert=true) { if(show_bearing) translate([0,0,cover_th+cover_gap+pulley_shoulder]) debug_bearing_608(); if(show_pulley) translate([0,0,cover_th+cover_gap]) pulley(); if(show_coverb) cover_bottom(); if(show_covert) color([0.800,0.300,0.300]) scale([1,1,-1]) translate([0,0,-(cover_th*2+cover_gap*2+pulley_shoulder*2+brg_608_th)]) cover_top(); } show(false,true,true,true);
478c3665-3588-47f0-bc92-fe680d613a7f
// BLOCK 1 use<gnu3.scad> wid=90; depth=120; thk=3; // BLOCK 2 hull(){ translate([wid/2,5,0]) cylinder(thk,5,5); translate([wid/2,115,0]) cylinder(thk,5,5); cube([wid/2,depth,thk]); } mirror(){ // BLOCK 3 hull(){ translate([wid,5,0]) cylinder(1,5,5); translate([wid,115,0]) cylinder(1,5,5); cube([wid,depth,1]); }} rotate([0,-90,0]) // BLOCK 4 hull(){ translate([wid,5,0]) cylinder(thk,5,5); translate([wid,115,0]) cylinder(thk,5,5); cube([wid,depth,thk]); } rotate([90,0,90]) translate([wid*.66,depth/2.300,0]) scale([1,1,1]) gnu(2);
// BLOCK 1 use<gnu3.scad> wid=90; depth=120; thk=3; // BLOCK 2 hull(){ translate([wid/2,5,0]) cylinder(thk,5,5); translate([wid/2,115,0]) cylinder(thk,5,5); cube([wid/2,depth,thk]); } mirror(){ // BLOCK 3 hull(){ translate([wid,5,0]) cylinder(1,5,5); translate([wid,115,0]) cylinder(1,5,5); cube([wid,depth,1]); }} rotate([0,-90,0]) // BLOCK 4 hull(){ translate([wid,5,0]) cylinder(thk,5,5); translate([wid,115,0]) cylinder(thk,5,5); cube([wid,depth,thk]); } rotate([90,0,90]) translate([wid*.66,depth/2.300,0]) scale([1,1,1]) gnu(2);
9d9160b7-e707-4b4f-9729-5b0e362d24bd
// BLOCK 1 $fa=2; $fs=1; os1=9; os2=9.500; // BLOCK 2 module toe(){ translate([0,0,2]) sphere(2); difference(){ hull(){ scale([1,1,1]) sphere(2); translate([-0,-5,0]) scale([1,1,1]) sphere(2); } translate([-2,-7,-2]) cube([4,10,2]); }} // BLOCK 3 module foot(){ toe(); rotate([0,0,30]) toe(); rotate([0,0,-30]) toe(); } // BLOCK 4 module wing(){ hull(){ sphere(3); translate([0,0,8]) sphere(2); } } // BLOCK 5 module beak(){ translate([0,0,2]) sphere(2); difference(){ hull(){ scale([1,1,.75]) sphere(4); translate([-0,-5,0]) scale([1,1,.5]) sphere(2); } }} // BLOCK 6 module wintertux(){ translate([-5,0,0]) rotate([0,0,-20]) color("yellow") foot(); translate([5,0,0]) rotate([0,0,20]) color("yellow") foot(); color("gray") hull(){ translate([0,0,5]) scale([1,1,.5]) sphere(10); translate([0,0,20]) sphere(7); } translate([-7,0,15]) rotate([0,200,0]) scale([.8,1.500,1]) color("gray") wing(); translate([6.500,0,15]) rotate([0,160,0]) scale([.8,1.500,1]) color("gray") wing(); color("gray") hull(){ translate([0,0,25]) sphere(8.500); translate([0,0,28]) sphere(7); } difference(){ translate([-3,-6,26]) color("white") sphere(3); translate([-3.800,-9,26]) sphere(1.500); } translate([-3.800,-8,26]) color("blue") sphere(1.100); difference(){ translate([3,-6,26]) color("white") sphere(3); translate([3.800,-9,26]) sphere(1.500); } translate([3.800,-8,26]) color("blue") sphere(1.100); translate([0,-6,24]) color("yellow") beak(); color("white") hull(){ translate([0,0,30]) scale([1,1,.25]) sphere(8.500); translate([0,0,32]) scale([1,1,.25]) sphere(7.800); } color("red") hull(){ translate([0,0,30]) sphere(7.500); translate([3,0,39]) scale([1,3,1]) sphere(2); } color("red") hull(){ translate([3,0,39]) scale([1,3,1]) sphere(2); translate([8,0,34]) sphere(2); } color("white") translate([10,0,33]) sphere(2.700); color("red") hull(){ translate([0,0,17]) scale([1,1,.1]) sphere(8.700); translate([0,0,20]) scale([1,1,.2]) sphere(8.200); } color("red") hull(){ translate([0,-8,20]) sphere(1); translate([3,-7,20]) sphere(1); translate([3,-9,9]) sphere(1); translate([-1,-9,11]) sphere(1); } module fringe(){ hull(){ translate([-1,-os1,10]) sphere(.5); translate([-1,-os2,8]) sphere(.5); } hull(){ translate([0,-os1,10]) sphere(.5); translate([0,-os2,7.500]) sphere(.5); } hull(){ translate([1,-os1,10]) sphere(.5); translate([1,-os2,7]) sphere(.5); } hull(){ translate([2,-os1,10]) sphere(.5); translate([2,-os2,6.500]) sphere(.5); } hull(){ translate([3,-os1,10]) sphere(.5); translate([3,-os2,6]) sphere(.5); } } color("white") fringe(); color("gray") hull(){ translate([0,9,5]) scale([5,1,1]) sphere(1); translate([0,10,1]) scale([4,1,1]) sphere(1); } } scale([2,2,2]) wintertux();
// BLOCK 1 $fa=2; $fs=1; os1=9; os2=9.500; // BLOCK 2 module toe(){ translate([0,0,2]) sphere(2); difference(){ hull(){ scale([1,1,1]) sphere(2); translate([-0,-5,0]) scale([1,1,1]) sphere(2); } translate([-2,-7,-2]) cube([4,10,2]); }} // BLOCK 3 module foot(){ toe(); rotate([0,0,30]) toe(); rotate([0,0,-30]) toe(); } // BLOCK 4 module wing(){ hull(){ sphere(3); translate([0,0,8]) sphere(2); } } // BLOCK 5 module beak(){ translate([0,0,2]) sphere(2); difference(){ hull(){ scale([1,1,.75]) sphere(4); translate([-0,-5,0]) scale([1,1,.5]) sphere(2); } }} // BLOCK 6 module wintertux(){ translate([-5,0,0]) rotate([0,0,-20]) color("yellow") foot(); translate([5,0,0]) rotate([0,0,20]) color("yellow") foot(); color("gray") hull(){ translate([0,0,5]) scale([1,1,.5]) sphere(10); translate([0,0,20]) sphere(7); } translate([-7,0,15]) rotate([0,200,0]) scale([.8,1.500,1]) color("gray") wing(); translate([6.500,0,15]) rotate([0,160,0]) scale([.8,1.500,1]) color("gray") wing(); color("gray") hull(){ translate([0,0,25]) sphere(8.500); translate([0,0,28]) sphere(7); } difference(){ translate([-3,-6,26]) color("white") sphere(3); translate([-3.800,-9,26]) sphere(1.500); } translate([-3.800,-8,26]) color("blue") sphere(1.100); difference(){ translate([3,-6,26]) color("white") sphere(3); translate([3.800,-9,26]) sphere(1.500); } translate([3.800,-8,26]) color("blue") sphere(1.100); translate([0,-6,24]) color("yellow") beak(); color("white") hull(){ translate([0,0,30]) scale([1,1,.25]) sphere(8.500); translate([0,0,32]) scale([1,1,.25]) sphere(7.800); } color("red") hull(){ translate([0,0,30]) sphere(7.500); translate([3,0,39]) scale([1,3,1]) sphere(2); } color("red") hull(){ translate([3,0,39]) scale([1,3,1]) sphere(2); translate([8,0,34]) sphere(2); } color("white") translate([10,0,33]) sphere(2.700); color("red") hull(){ translate([0,0,17]) scale([1,1,.1]) sphere(8.700); translate([0,0,20]) scale([1,1,.2]) sphere(8.200); } color("red") hull(){ translate([0,-8,20]) sphere(1); translate([3,-7,20]) sphere(1); translate([3,-9,9]) sphere(1); translate([-1,-9,11]) sphere(1); } module fringe(){ hull(){ translate([-1,-os1,10]) sphere(.5); translate([-1,-os2,8]) sphere(.5); } hull(){ translate([0,-os1,10]) sphere(.5); translate([0,-os2,7.500]) sphere(.5); } hull(){ translate([1,-os1,10]) sphere(.5); translate([1,-os2,7]) sphere(.5); } hull(){ translate([2,-os1,10]) sphere(.5); translate([2,-os2,6.500]) sphere(.5); } hull(){ translate([3,-os1,10]) sphere(.5); translate([3,-os2,6]) sphere(.5); } } color("white") fringe(); color("gray") hull(){ translate([0,9,5]) scale([5,1,1]) sphere(1); translate([0,10,1]) scale([4,1,1]) sphere(1); } } scale([2,2,2]) wintertux();
22afce81-e001-4fd6-9d7f-61b919937de0
// BLOCK 1 // BLOCK 2 module radius(radius,length,axis) { if(axis=="X") { rotate(90,[1,0,0]) rotate(90,[0,1,0]) difference() { translate([-0.100,-0.100,-0.100])cube([radius+0.100,radius+0.100,length+0.200]); translate([radius,radius,-0.200]) cylinder(r=radius,h=length+0.400); } } else if(axis=="Y") { rotate(270,[0,1,0]) rotate(270,[1,0,0]) difference() { translate([-0.100,-0.100,-0.100])cube([radius+0.100,radius+0.100,length+0.200]); translate([radius,radius,-0.200]) cylinder(r=radius,h=length+0.400); } } else difference() { translate([-0.100,-0.100,-0.100])cube([radius+0.100,radius+0.100,length+0.200]); translate([radius,radius,-0.200]) cylinder(r=radius,h=length+0.400); } } // BLOCK 3 module torus(outerRadius, innerRadius) { r=(outerRadius-innerRadius)/2; rotate_extrude() translate([innerRadius+r,0,0]) circle(r); } // BLOCK 4 module linear_exturde_flat_option(flat =false, height = 10, center = false, convexity = 2, twist = 0) { if(flat==false) { linear_extrude(height = height, center = center, convexity = convexity, twist= twist) child(0); } else { child(0); } } // BLOCK 5 module pulley() { circles = 7; circle_orbit_diameter= 48; circle_diameter=18; difference() { translate([0,0,-4]) cylinder(h=8,r=47); translate([0,0,-5]) cylinder(h=10,r=4.750); torus(40,34); difference() { translate([0,0,-3]) cylinder(h=6,r=48); translate([0,0,-5]) cylinder(h=10,r=37); } translate([0,0,-10]) for(i=[0:circles-1]) rotate([0,0,i*360/circles]) translate([circle_orbit_diameter/2,0,-1]) linear_exturde_flat_option(flat =false, height=20) circle(r=circle_diameter/2); } } // BLOCK 6 module top_half_holder() { difference() { union() { translate([0,0,0]) cylinder(h=10,r=8); translate([0,0,+6]) cylinder(h=4,r=15); translate([-15,0,+6]) cube([30,48.500,4]); translate([-15,48,0]) cube([30,8,10]); } translate([0,0,0]) cylinder(h=11,r=4.250); translate([0,0,-5]) cylinder(h=10,r=10); translate([0,24,-11]) cylinder(r=18/2,h=22); translate([-15,56,0]) rotate(270,[0,0,1]) radius(8,11,"Z"); translate([+15,56,0]) rotate(180,[0,0,1]) radius(8,11,"Z"); } difference() { translate([0,60.500,0]) cylinder(h=10,r=8); translate([0,60.500,-1]) cylinder(h=12,r=4.500); } } // BLOCK 7 module bottom_half_holder() { difference() { union() { translate([0,0,-10]) cylinder(h=10,r=8); translate([0,0,-6-4]) cylinder(h=4,r=15); translate([-15,0,-6-4]) cube([30,48.500,4]); translate([-15,48,-10]) cube([30,8,10]); } translate([0,0,-5]) cylinder(h=10,r=10); translate([0,24,-11]) cylinder(r=18/2,h=22); translate([-15,56,-11]) rotate(270,[0,0,1]) radius(8,11,"Z"); translate([+15,56,-11]) rotate(180,[0,0,1]) radius(8,11,"Z"); } translate([0,0,-9]) cylinder(h=19,r=4); difference() { translate([0,60.500,-10]) cylinder(h=10,r=8); translate([0,60.500,-11]) cylinder(h=12,r=4.500); } } $fn=50; if(true) { pulley(); color([0,1,0,0.750]) top_half_holder(); color([0,0,1,0.750]) bottom_half_holder(); } if(false) { translate([0,0,4]) difference() // BLOCK 8 { pulley(); cylinder(h=20,r=80); } } // BLOCK 9 if(false) { %color([0.500,0.500,0.500,0.100]) translate([-50,-50,-1.010]) cube([100,100,1]); translate([-20,-27,10]) rotate(180,[0,1,0]) color([0,1,0,0.750]) top_half_holder(); translate([+20,-27,10]) color([0,0,1,0.750]) bottom_half_holder(); }
// BLOCK 1 // BLOCK 2 module radius(radius,length,axis) { if(axis=="X") { rotate(90,[1,0,0]) rotate(90,[0,1,0]) difference() { translate([-0.100,-0.100,-0.100])cube([radius+0.100,radius+0.100,length+0.200]); translate([radius,radius,-0.200]) cylinder(r=radius,h=length+0.400); } } else if(axis=="Y") { rotate(270,[0,1,0]) rotate(270,[1,0,0]) difference() { translate([-0.100,-0.100,-0.100])cube([radius+0.100,radius+0.100,length+0.200]); translate([radius,radius,-0.200]) cylinder(r=radius,h=length+0.400); } } else difference() { translate([-0.100,-0.100,-0.100])cube([radius+0.100,radius+0.100,length+0.200]); translate([radius,radius,-0.200]) cylinder(r=radius,h=length+0.400); } } // BLOCK 3 module torus(outerRadius, innerRadius) { r=(outerRadius-innerRadius)/2; rotate_extrude() translate([innerRadius+r,0,0]) circle(r); } // BLOCK 4 module linear_exturde_flat_option(flat =false, height = 10, center = false, convexity = 2, twist = 0) { if(flat==false) { linear_extrude(height = height, center = center, convexity = convexity, twist= twist) child(0); } else { child(0); } } // BLOCK 5 module pulley() { circles = 7; circle_orbit_diameter= 48; circle_diameter=18; difference() { translate([0,0,-4]) cylinder(h=8,r=47); translate([0,0,-5]) cylinder(h=10,r=4.750); torus(40,34); difference() { translate([0,0,-3]) cylinder(h=6,r=48); translate([0,0,-5]) cylinder(h=10,r=37); } translate([0,0,-10]) for(i=[0:circles-1]) rotate([0,0,i*360/circles]) translate([circle_orbit_diameter/2,0,-1]) linear_exturde_flat_option(flat =false, height=20) circle(r=circle_diameter/2); } } // BLOCK 6 module top_half_holder() { difference() { union() { translate([0,0,0]) cylinder(h=10,r=8); translate([0,0,+6]) cylinder(h=4,r=15); translate([-15,0,+6]) cube([30,48.500,4]); translate([-15,48,0]) cube([30,8,10]); } translate([0,0,0]) cylinder(h=11,r=4.250); translate([0,0,-5]) cylinder(h=10,r=10); translate([0,24,-11]) cylinder(r=18/2,h=22); translate([-15,56,0]) rotate(270,[0,0,1]) radius(8,11,"Z"); translate([+15,56,0]) rotate(180,[0,0,1]) radius(8,11,"Z"); } difference() { translate([0,60.500,0]) cylinder(h=10,r=8); translate([0,60.500,-1]) cylinder(h=12,r=4.500); } } // BLOCK 7 module bottom_half_holder() { difference() { union() { translate([0,0,-10]) cylinder(h=10,r=8); translate([0,0,-6-4]) cylinder(h=4,r=15); translate([-15,0,-6-4]) cube([30,48.500,4]); translate([-15,48,-10]) cube([30,8,10]); } translate([0,0,-5]) cylinder(h=10,r=10); translate([0,24,-11]) cylinder(r=18/2,h=22); translate([-15,56,-11]) rotate(270,[0,0,1]) radius(8,11,"Z"); translate([+15,56,-11]) rotate(180,[0,0,1]) radius(8,11,"Z"); } translate([0,0,-9]) cylinder(h=19,r=4); difference() { translate([0,60.500,-10]) cylinder(h=10,r=8); translate([0,60.500,-11]) cylinder(h=12,r=4.500); } } $fn=50; if(true) { pulley(); color([0,1,0,0.750]) top_half_holder(); color([0,0,1,0.750]) bottom_half_holder(); } if(false) { translate([0,0,4]) difference() // BLOCK 8 { pulley(); cylinder(h=20,r=80); } } // BLOCK 9 if(false) { %color([0.500,0.500,0.500,0.100]) translate([-50,-50,-1.010]) cube([100,100,1]); translate([-20,-27,10]) rotate(180,[0,1,0]) color([0,1,0,0.750]) top_half_holder(); translate([+20,-27,10]) color([0,0,1,0.750]) bottom_half_holder(); }
d8a7d021-911a-41fc-9fc8-1e2dc4107dc5
// BLOCK 1 th=5; ht=15; td=44.900; to_proposed=36; gap=2; hd=4; tool_coverage=0.350; $fn=32; // BLOCK 2 module bimirror(mr) { for (m = [[0,0,0],mr]) mirror(m) children(); } // BLOCK 3 module arc(r,a1,a2,ir=0) { a1n = (a1 % 360 + 360) % 360; a2n = (a2 % 360 + 360) % 360; difference() { circle(r); if (ir != 0) circle(ir); a1next = a2n>a1n ? a1n + 360 : a1n; polygon([ [0,0], [cos(1.000*a2n + 0.000*a1next)*2*r,sin(1.000*a2n + 0.000*a1next)*2*r], [cos(0.660*a2n + 0.330*a1next)*2*r,sin(0.660*a2n + 0.330*a1next)*2*r], [cos(0.330*a2n + 0.660*a1next)*2*r,sin(0.330*a2n + 0.660*a1next)*2*r], [cos(0.000*a2n + 1.000*a1next)*2*r,sin(0.000*a2n + 1.000*a1next)*2*r], ]); } } // BLOCK 4 module tool() { translate([0,0, 0]) cylinder(d=44.900,h=7); translate([0,0, 7]) cylinder(d=40.800,h=2); translate([0,0, 9]) cylinder(d=44.900,h=10); translate([0,0,19]) cylinder(d=44.900,d2=75,h=10); translate([0,0,29]) cylinder(d=75,h=17.700); translate([0,0,46.700]) cylinder(d=75,d2=67.400,h=7); translate([0,0,53.700]) cylinder(d=67.400,h=80); } // BLOCK 5 module square2(size,aligns="LL",radius=0) { real_size = len(size) ? size : [size,size]; tr = [ aligns[0]=="C" ? 0 : aligns[0]=="R" ? (-real_size[0]/2) : (+real_size[0]/2), aligns[1]=="C" ? 0 : aligns[1]=="R" ? (-real_size[1]/2) : (+real_size[1]/2), ]; translate(tr) { if (radius>0) { inner_size = [for (v=real_size) v-min(radius*2,v)]; offset(r=radius) square(inner_size, center=true); } else { square(size,center=true); } } } // BLOCK 6 module tool_holder_profile() { translate([-37/2,0]) difference() { polygon([ [0,0], [-7.727,2.071], [-7.727+-5.780,2.071+5.765], [37+7.727+5.578,2.071+5.765], [37+7.727,2.071], [37,0] ]); translate([37/2,-35.250+5.244]) circle(d=70.500, $fn=$fn*4); } } to = max(to_proposed,td/2+th); echo("effective tool offset =",to); offset_hole = td>45; mount_hole_z = offset_hole ? ht*1.500 : ht*0.500; real_ht = offset_hole ? ht*2 : ht; // BLOCK 7 difference(convexity=50) { linear_extrude(real_ht,convexity=50) { difference() { union() { bimirror([1,0]) translate([-37/2,0]) rotate(90+90-15) square2([8*2,th],aligns="CL"); translate([0,-35.250+5.244]) arc(r=35.250,a1=-63.304/2+90,a2=63.304/2+90,$fn=4*$fn); } translate([0,-th]) square2([80,40],aligns="CR"); } difference() { union() { hull() { translate([0,-to]) arc(r=th+td/2,a1=90-180*tool_coverage,a2=90+180*tool_coverage,ir=td/2); square2([37,th],aligns="CR"); } translate([0,-to]) offset(th) circle(d=td); bimirror([1,0,0]) translate([gap/2,-to-td/2]) square2([th,th+2*hd],aligns="LR"); } translate([0,-to]) circle(d=td,$fn=2*$fn); translate([0,-to-td/2+1]) square2([gap,th+5],aligns="CR"); } } bimirror([1,0]) translate([-37/2-4,0,mount_hole_z]) rotate([0,90,90-15]) cylinder(d=hd,h=th*2+1,center=true); translate([0,-to-td/2-th-hd,ht/2]) rotate([0,90]) cylinder(d=hd,h=gap+th*2+1,center=true); if (offset_hole) { bimirror([1,0]) { translate([37/2,-th,ht]) cube2([50,td+th*2+20,ht+1],aligns="LRL"); translate([-37/2,0]) rotate(90+90-15) translate([0,th,ht]) cube2([8+th+5,th*5,ht+1],aligns="LL"); } translate([0,-to,ht]) cube2([td+2*th+1,td,ht+1],aligns="CRL"); } }
// BLOCK 1 th=5; ht=15; td=44.900; to_proposed=36; gap=2; hd=4; tool_coverage=0.350; $fn=32; // BLOCK 2 module bimirror(mr) { for (m = [[0,0,0],mr]) mirror(m) children(); } // BLOCK 3 module arc(r,a1,a2,ir=0) { a1n = (a1 % 360 + 360) % 360; a2n = (a2 % 360 + 360) % 360; difference() { circle(r); if (ir != 0) circle(ir); a1next = a2n>a1n ? a1n + 360 : a1n; polygon([ [0,0], [cos(1.000*a2n + 0.000*a1next)*2*r,sin(1.000*a2n + 0.000*a1next)*2*r], [cos(0.660*a2n + 0.330*a1next)*2*r,sin(0.660*a2n + 0.330*a1next)*2*r], [cos(0.330*a2n + 0.660*a1next)*2*r,sin(0.330*a2n + 0.660*a1next)*2*r], [cos(0.000*a2n + 1.000*a1next)*2*r,sin(0.000*a2n + 1.000*a1next)*2*r], ]); } } // BLOCK 4 module tool() { translate([0,0, 0]) cylinder(d=44.900,h=7); translate([0,0, 7]) cylinder(d=40.800,h=2); translate([0,0, 9]) cylinder(d=44.900,h=10); translate([0,0,19]) cylinder(d=44.900,d2=75,h=10); translate([0,0,29]) cylinder(d=75,h=17.700); translate([0,0,46.700]) cylinder(d=75,d2=67.400,h=7); translate([0,0,53.700]) cylinder(d=67.400,h=80); } // BLOCK 5 module square2(size,aligns="LL",radius=0) { real_size = len(size) ? size : [size,size]; tr = [ aligns[0]=="C" ? 0 : aligns[0]=="R" ? (-real_size[0]/2) : (+real_size[0]/2), aligns[1]=="C" ? 0 : aligns[1]=="R" ? (-real_size[1]/2) : (+real_size[1]/2), ]; translate(tr) { if (radius>0) { inner_size = [for (v=real_size) v-min(radius*2,v)]; offset(r=radius) square(inner_size, center=true); } else { square(size,center=true); } } } // BLOCK 6 module tool_holder_profile() { translate([-37/2,0]) difference() { polygon([ [0,0], [-7.727,2.071], [-7.727+-5.780,2.071+5.765], [37+7.727+5.578,2.071+5.765], [37+7.727,2.071], [37,0] ]); translate([37/2,-35.250+5.244]) circle(d=70.500, $fn=$fn*4); } } to = max(to_proposed,td/2+th); echo("effective tool offset =",to); offset_hole = td>45; mount_hole_z = offset_hole ? ht*1.500 : ht*0.500; real_ht = offset_hole ? ht*2 : ht; // BLOCK 7 difference(convexity=50) { linear_extrude(real_ht,convexity=50) { difference() { union() { bimirror([1,0]) translate([-37/2,0]) rotate(90+90-15) square2([8*2,th],aligns="CL"); translate([0,-35.250+5.244]) arc(r=35.250,a1=-63.304/2+90,a2=63.304/2+90,$fn=4*$fn); } translate([0,-th]) square2([80,40],aligns="CR"); } difference() { union() { hull() { translate([0,-to]) arc(r=th+td/2,a1=90-180*tool_coverage,a2=90+180*tool_coverage,ir=td/2); square2([37,th],aligns="CR"); } translate([0,-to]) offset(th) circle(d=td); bimirror([1,0,0]) translate([gap/2,-to-td/2]) square2([th,th+2*hd],aligns="LR"); } translate([0,-to]) circle(d=td,$fn=2*$fn); translate([0,-to-td/2+1]) square2([gap,th+5],aligns="CR"); } } bimirror([1,0]) translate([-37/2-4,0,mount_hole_z]) rotate([0,90,90-15]) cylinder(d=hd,h=th*2+1,center=true); translate([0,-to-td/2-th-hd,ht/2]) rotate([0,90]) cylinder(d=hd,h=gap+th*2+1,center=true); if (offset_hole) { bimirror([1,0]) { translate([37/2,-th,ht]) cube2([50,td+th*2+20,ht+1],aligns="LRL"); translate([-37/2,0]) rotate(90+90-15) translate([0,th,ht]) cube2([8+th+5,th*5,ht+1],aligns="LL"); } translate([0,-to,ht]) cube2([td+2*th+1,td,ht+1],aligns="CRL"); } }
ca3efa01-6a16-4b56-87ce-d7ee38f2633b
// BLOCK 1 $fn=30; baseWidth = 94; thickness = 4; extrusion = 20; nemaSpacing = 31; bearingDia = 22.100; motorWidth = 44; screwOffset = 48; idlerDia = 12; bracketHeight = 60; cornerDia = 10; fortyWide = 40; M3 = 3; M4 = 4.100; M5 = 5; W = baseWidth; T = thickness; X = extrusion; S = nemaSpacing; D = bearingDia; MW = motorWidth; SO = screwOffset; ID = idlerDia; H = bracketHeight; CD = cornerDia; L = X+T*2; F = fortyWide; SP = X+T+45; translate([0,0,0]) xtrusionMount(); // BLOCK 2 module xtrusionMount() { A = T+X/2; B = MW*2+T*2+X; C = MW+T*2; E = 18; G = MW*2+X+T*2; HI = CD/2; dia = 20; MC = 0; difference() { union() { translate([0,0,(H+T)/2]) cube([F+T,X+T*2,H+T], true); hull() { translate([C/2-HI,G/2+10+MC,0]) cylinder(d=CD,h=T*2); translate([C/2-HI,-G/2,0]) cylinder(d=CD,h=T*2); translate([-C/2+HI,G/2+10+MC,0]) cylinder(d=CD,h=T*2); translate([-C/2+HI,-G/2,0]) cylinder(d=CD,h=T*2); } translate([-F/2,0,(X+T)/2]) cube([F*2+T,X+T*2,X+T], true); translate([0,0,T]) cube([C, B, T*2], true); translate([-C/2+T/2,0,T]) rib(); translate([C/2-T/2,0,T]) rib(); translate([-F/2-T*2.750,-X/2-T*2.250,0]) idler(); translate([-F/2-T/2,0,X+T]) rotate([0,-45,0]) cube([15,X+T*2,15], true); } translate([-F/2-T/2-dia/2,0,X+T+dia/2]) rotate([90,0,0]) cylinder(d=dia, h=F, center=true); translate([-F/2,0,H+T]) rotate([0,-45,0]) cube([F,F,10], true); translate([-F*1.500,0,X+T]) rotate([0,-45,0]) cube([F,F,10], true); translate([-F-T/2+X,0,F+T]) cube([F*2+T,X,F*2], true); translate([0,MW+X/2+T,T*2+T]) cube([MW, MW*2, T*4], true); translate([0,0,0]) mountScrewHoles(); translate([0,0,0]) grill(); translate([0,-SO,0]) cylinder(d=D,h=7); translate([0,-SO,0]) cylinder(d=10,h=T*2); translate([0,MC,0]) motorMount(); } } // BLOCK 3 module grill() { E = 18; translate([0,-X*1.150,0]) rotate([0,0,180]) wedge(); translate([E,-X*1.750,0]) rotate([0,0,90]) wedge(); translate([-E,-X*1.750,0]) rotate([0,0,-90]) wedge(); } // BLOCK 4 module wedge() { A = 15; hull() { translate([A/2,0,0]) cylinder(d=5, h=T*2); translate([-A/2,0,0]) cylinder(d=5, h=T*2); translate([0,A/2,0]) cylinder(d=5, h=T*2); } } // BLOCK 5 module idler() { difference() { translate([0,0,T]) rotate([0,0,-45]) cube([60,M5*3,T*2], true); cylinder(d=M5, h=T*2); } } // BLOCK 6 module motorMount() { E = X/2+T+SP/2; union() { hull() { translate([0,E-8,0]) cylinder(d=D,h=T); translate([0,E+8,0]) cylinder(d=D,h=T); } translate([S/2,E-S/2,0]) M3Slot(); translate([S/2,E+S/2,0]) M3Slot(); translate([-S/2,E-S/2,0]) M3Slot(); translate([-S/2,E+S/2,0]) M3Slot(); } } // BLOCK 7 module M3Slot() { hull() { translate([0,4,0]) cylinder(d=M3, h=10); translate([0,-4,0]) cylinder(d=M3, h=10); } } // BLOCK 8 module rib() { A = T+X/2; B = MW*2+T*2+X+15; difference() { hull() { translate([0,A,X]) rotate([0,90,0]) cylinder(d=0.100, h=T, center=true); translate([0,-A,X]) rotate([0,90,0]) cylinder(d=0.100, h=T, center=true); translate([0,B/2,0]) rotate([0,90,0]) cylinder(d=0.100, h=T, center=true); translate([0,-B/2,0]) rotate([0,90,0]) cylinder(d=0.100, h=T, center=true); } translate([0,B/2,4]) cube([20,20,10], true); translate([0,-B/2,4]) cube([20,20,10], true); } } // BLOCK 9 module mountScrewHoles() { A = T+X/2; translate([X/2,0,A]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([X/2,0,A+X]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([X/2,0,A+X*2]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-X/2,0,A]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-X/2,0,A+X]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-X/2,0,A+X*2]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-F/2-X/2,0,A]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-F/2-X*1.500,0,A]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-F/2-X/2,0,0]) cylinder(d=M4, h=F, center=true); translate([-F/2-X*1.500,0,0]) cylinder(d=M4, h=F, center=true); translate([X/2,0,0]) cylinder(d=M4, h=F, center=true); translate([-X/2,0,0]) cylinder(d=M4, h=F, center=true); translate([F/2,0,A+X]) rotate([0,90,0]) cylinder(d=M4, h=F, center=true); translate([F/2,0,A+X*2]) rotate([0,90,0]) cylinder(d=M4, h=F, center=true); }
// BLOCK 1 $fn=30; baseWidth = 94; thickness = 4; extrusion = 20; nemaSpacing = 31; bearingDia = 22.100; motorWidth = 44; screwOffset = 48; idlerDia = 12; bracketHeight = 60; cornerDia = 10; fortyWide = 40; M3 = 3; M4 = 4.100; M5 = 5; W = baseWidth; T = thickness; X = extrusion; S = nemaSpacing; D = bearingDia; MW = motorWidth; SO = screwOffset; ID = idlerDia; H = bracketHeight; CD = cornerDia; L = X+T*2; F = fortyWide; SP = X+T+45; translate([0,0,0]) xtrusionMount(); // BLOCK 2 module xtrusionMount() { A = T+X/2; B = MW*2+T*2+X; C = MW+T*2; E = 18; G = MW*2+X+T*2; HI = CD/2; dia = 20; MC = 0; difference() { union() { translate([0,0,(H+T)/2]) cube([F+T,X+T*2,H+T], true); hull() { translate([C/2-HI,G/2+10+MC,0]) cylinder(d=CD,h=T*2); translate([C/2-HI,-G/2,0]) cylinder(d=CD,h=T*2); translate([-C/2+HI,G/2+10+MC,0]) cylinder(d=CD,h=T*2); translate([-C/2+HI,-G/2,0]) cylinder(d=CD,h=T*2); } translate([-F/2,0,(X+T)/2]) cube([F*2+T,X+T*2,X+T], true); translate([0,0,T]) cube([C, B, T*2], true); translate([-C/2+T/2,0,T]) rib(); translate([C/2-T/2,0,T]) rib(); translate([-F/2-T*2.750,-X/2-T*2.250,0]) idler(); translate([-F/2-T/2,0,X+T]) rotate([0,-45,0]) cube([15,X+T*2,15], true); } translate([-F/2-T/2-dia/2,0,X+T+dia/2]) rotate([90,0,0]) cylinder(d=dia, h=F, center=true); translate([-F/2,0,H+T]) rotate([0,-45,0]) cube([F,F,10], true); translate([-F*1.500,0,X+T]) rotate([0,-45,0]) cube([F,F,10], true); translate([-F-T/2+X,0,F+T]) cube([F*2+T,X,F*2], true); translate([0,MW+X/2+T,T*2+T]) cube([MW, MW*2, T*4], true); translate([0,0,0]) mountScrewHoles(); translate([0,0,0]) grill(); translate([0,-SO,0]) cylinder(d=D,h=7); translate([0,-SO,0]) cylinder(d=10,h=T*2); translate([0,MC,0]) motorMount(); } } // BLOCK 3 module grill() { E = 18; translate([0,-X*1.150,0]) rotate([0,0,180]) wedge(); translate([E,-X*1.750,0]) rotate([0,0,90]) wedge(); translate([-E,-X*1.750,0]) rotate([0,0,-90]) wedge(); } // BLOCK 4 module wedge() { A = 15; hull() { translate([A/2,0,0]) cylinder(d=5, h=T*2); translate([-A/2,0,0]) cylinder(d=5, h=T*2); translate([0,A/2,0]) cylinder(d=5, h=T*2); } } // BLOCK 5 module idler() { difference() { translate([0,0,T]) rotate([0,0,-45]) cube([60,M5*3,T*2], true); cylinder(d=M5, h=T*2); } } // BLOCK 6 module motorMount() { E = X/2+T+SP/2; union() { hull() { translate([0,E-8,0]) cylinder(d=D,h=T); translate([0,E+8,0]) cylinder(d=D,h=T); } translate([S/2,E-S/2,0]) M3Slot(); translate([S/2,E+S/2,0]) M3Slot(); translate([-S/2,E-S/2,0]) M3Slot(); translate([-S/2,E+S/2,0]) M3Slot(); } } // BLOCK 7 module M3Slot() { hull() { translate([0,4,0]) cylinder(d=M3, h=10); translate([0,-4,0]) cylinder(d=M3, h=10); } } // BLOCK 8 module rib() { A = T+X/2; B = MW*2+T*2+X+15; difference() { hull() { translate([0,A,X]) rotate([0,90,0]) cylinder(d=0.100, h=T, center=true); translate([0,-A,X]) rotate([0,90,0]) cylinder(d=0.100, h=T, center=true); translate([0,B/2,0]) rotate([0,90,0]) cylinder(d=0.100, h=T, center=true); translate([0,-B/2,0]) rotate([0,90,0]) cylinder(d=0.100, h=T, center=true); } translate([0,B/2,4]) cube([20,20,10], true); translate([0,-B/2,4]) cube([20,20,10], true); } } // BLOCK 9 module mountScrewHoles() { A = T+X/2; translate([X/2,0,A]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([X/2,0,A+X]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([X/2,0,A+X*2]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-X/2,0,A]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-X/2,0,A+X]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-X/2,0,A+X*2]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-F/2-X/2,0,A]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-F/2-X*1.500,0,A]) rotate([90,0,0]) cylinder(d=M4, h=F, center=true); translate([-F/2-X/2,0,0]) cylinder(d=M4, h=F, center=true); translate([-F/2-X*1.500,0,0]) cylinder(d=M4, h=F, center=true); translate([X/2,0,0]) cylinder(d=M4, h=F, center=true); translate([-X/2,0,0]) cylinder(d=M4, h=F, center=true); translate([F/2,0,A+X]) rotate([0,90,0]) cylinder(d=M4, h=F, center=true); translate([F/2,0,A+X*2]) rotate([0,90,0]) cylinder(d=M4, h=F, center=true); }
558b14ee-3ac5-49c3-884a-b9486303735f
// BLOCK 1 $fa=.05; $fs=.05; // BLOCK 2 difference() { nut_base(); translate([0,0,1]) slots(); } // BLOCK 3 module slots() { translate([10,0,3.900]) rotate ([90,0,0]) cylinder(20,.6,.6,true); translate([0,0,4]) rotate ([90,0,0]) cylinder(20,0.700,0.700,true); translate([-10,0,4.200]) rotate ([90,0,0]) cylinder(20,.9,.9,true); } // BLOCK 4 module nut_base() { union() { #translate([0,0,-1]) cube([38,6,6], true); translate([0,-1.400,2]) cube([38,3.200,6], true); translate([0,0,2]) rotate ([0,90,0]) cylinder (38,3,3, true); } }
// BLOCK 1 $fa=.05; $fs=.05; // BLOCK 2 difference() { nut_base(); translate([0,0,1]) slots(); } // BLOCK 3 module slots() { translate([10,0,3.900]) rotate ([90,0,0]) cylinder(20,.6,.6,true); translate([0,0,4]) rotate ([90,0,0]) cylinder(20,0.700,0.700,true); translate([-10,0,4.200]) rotate ([90,0,0]) cylinder(20,.9,.9,true); } // BLOCK 4 module nut_base() { union() { #translate([0,0,-1]) cube([38,6,6], true); translate([0,-1.400,2]) cube([38,3.200,6], true); translate([0,0,2]) rotate ([0,90,0]) cylinder (38,3,3, true); } }
86f89c9a-f89b-4b3e-9c87-9cce8fc1f8cb
// BLOCK 1 size = 7; r0=20; rzyl=14; hzyl=16; $fa = 5; $fs = 0.200; difference() // BLOCK 2 { sphere (r=r0); translate([0,0,0]) { rotate( 0,[0,0,1]) cutter(); rotate(180,[0,0,1]) cutter(); scale([1,1,-1]) rotate( 90,[0,0,1]) cutter(); scale([1,1,-1])rotate(270,[0,0,1]) cutter(); } } // BLOCK 3 module cutter() { rotate(45,[0,0,1]) rotate(-atan(1/sqrt(2)),[0,1,0]) translate([size,0,0]) rotate(90,[0,1,0]) cylinder(r=rzyl,h=hzyl); }
// BLOCK 1 size = 7; r0=20; rzyl=14; hzyl=16; $fa = 5; $fs = 0.200; difference() // BLOCK 2 { sphere (r=r0); translate([0,0,0]) { rotate( 0,[0,0,1]) cutter(); rotate(180,[0,0,1]) cutter(); scale([1,1,-1]) rotate( 90,[0,0,1]) cutter(); scale([1,1,-1])rotate(270,[0,0,1]) cutter(); } } // BLOCK 3 module cutter() { rotate(45,[0,0,1]) rotate(-atan(1/sqrt(2)),[0,1,0]) translate([size,0,0]) rotate(90,[0,1,0]) cylinder(r=rzyl,h=hzyl); }
bc8cc173-50c4-4d48-b2fa-c9ae6959f62a
// BLOCK 1 $fn=100; $d=4; $h=34; $hex_hole=true; $od=12; $oh=60; $edges=6; // BLOCK 2 module CenterHole() { translate([0,0,-1]) if ($hex_hole == true) { cylinder($h,$d/1.700+0.200,$d/1.700+0.200,$fn=6); } else { cylinder(d=$d, h=$h); } } // BLOCK 3 module Skirt() { color("red") rotate_extrude() translate([$od + $od/5, $od-$od/3]) circle($od*0.800); } // BLOCK 4 module RoundedTop() { color("blue") translate([0, 0, $oh-$od/1.700]) difference() { sphere(d = $od*2); sphere(d = $od*1.300); translate([-$od,-$od,-$od]) cube([$od*2, $od*2, $od]); } } // BLOCK 5 module Edges() { union() { for(a = [0:360/$edges:360]) rotate(a) translate([$od/2.300,0,$od/2]) { cylinder(r=$od/6,h=$oh-$od/2); } } } // BLOCK 6 module Screwdriver() { union() { cylinder(d=$od, h=$oh); cylinder(d=$od+$od/6, h=$od); } } // BLOCK 7 module main() { difference() { union() { Screwdriver(); Edges(); } union() { CenterHole(); Skirt(); RoundedTop(); } } } main();
// BLOCK 1 $fn=100; $d=4; $h=34; $hex_hole=true; $od=12; $oh=60; $edges=6; // BLOCK 2 module CenterHole() { translate([0,0,-1]) if ($hex_hole == true) { cylinder($h,$d/1.700+0.200,$d/1.700+0.200,$fn=6); } else { cylinder(d=$d, h=$h); } } // BLOCK 3 module Skirt() { color("red") rotate_extrude() translate([$od + $od/5, $od-$od/3]) circle($od*0.800); } // BLOCK 4 module RoundedTop() { color("blue") translate([0, 0, $oh-$od/1.700]) difference() { sphere(d = $od*2); sphere(d = $od*1.300); translate([-$od,-$od,-$od]) cube([$od*2, $od*2, $od]); } } // BLOCK 5 module Edges() { union() { for(a = [0:360/$edges:360]) rotate(a) translate([$od/2.300,0,$od/2]) { cylinder(r=$od/6,h=$oh-$od/2); } } } // BLOCK 6 module Screwdriver() { union() { cylinder(d=$od, h=$oh); cylinder(d=$od+$od/6, h=$od); } } // BLOCK 7 module main() { difference() { union() { Screwdriver(); Edges(); } union() { CenterHole(); Skirt(); RoundedTop(); } } } main();