id
stringlengths
36
36
error_code
stringlengths
87
14.5k
correct_code
stringlengths
159
14.5k
image
imagewidth (px)
858
947
c22f724c-cebe-48ee-9fe3-bd709aecd96d
// BLOCK 1 column_count = 7; row_count = 3; slot_width = 20; slot_length = 20; slot_height = 3; // BLOCK 2 module __Customizer_Limit__ () {} production = 1; pnghq = 0; $fn = (production && !$preview) ? 150 : (pnghq ? 150 : 25); if (production && !$preview) { echo("Producing PRODUCTION quality"); echo("Resolution",$fn); } else { echo("Producing DRAFT quality"); echo("Resolution",$fn); } slot_border = 3; tray_height = 1; slot_mult = 3; slot_round = slot_height*slot_mult; text_depth = 0.600; text_size = 3; // BLOCK 3 module parts_tray() { for(j=[1:row_count]) { for(i=[1:column_count]) { translate([ ((i-1)*(slot_width + slot_border*2)) , -((j-1)*(slot_length + slot_border*2)) , 0 ]) { difference() { cube([ slot_width + slot_border*2 , slot_length + slot_border*(j>1?2:3) , slot_height + tray_height ]); hull() { translate([ slot_border , slot_border*2 + slot_round/2 , tray_height + slot_round/2 ]) { rotate([ 0 , 90 , 0 ]) { cylinder( h = slot_width , d = slot_round ); } } translate([ slot_border , slot_border*2 + slot_length - slot_round/2 , tray_height + slot_round/2 ]) { rotate([ 0 , 90 , 0 ]) { cylinder( h = slot_width , d = slot_round ); } } } tray_number(i,j); } } } } } // BLOCK 4 module tray_number(i,j) { translate([ (slot_width/2) + slot_border , slot_border , (slot_height + tray_height) - text_depth ]) { linear_extrude(text_depth + 1) { text( text = str(i+(column_count*(j-1))) , size = text_size , halign = "center" , valign = "center" ); } } } parts_tray();
// BLOCK 1 column_count = 7; row_count = 3; slot_width = 20; slot_length = 20; slot_height = 3; // BLOCK 2 module __Customizer_Limit__ () {} production = 1; pnghq = 0; $fn = (production && !$preview) ? 150 : (pnghq ? 150 : 25); if (production && !$preview) { echo("Producing PRODUCTION quality"); echo("Resolution",$fn); } else { echo("Producing DRAFT quality"); echo("Resolution",$fn); } slot_border = 3; tray_height = 1; slot_mult = 3; slot_round = slot_height*slot_mult; text_depth = 0.600; text_size = 3; // BLOCK 3 module parts_tray() { for(j=[1:row_count]) { for(i=[1:column_count]) { translate([ ((i-1)*(slot_width + slot_border*2)) , -((j-1)*(slot_length + slot_border*2)) , 0 ]) { difference() { cube([ slot_width + slot_border*2 , slot_length + slot_border*(j>1?2:3) , slot_height + tray_height ]); hull() { translate([ slot_border , slot_border*2 + slot_round/2 , tray_height + slot_round/2 ]) { rotate([ 0 , 90 , 0 ]) { cylinder( h = slot_width , d = slot_round ); } } translate([ slot_border , slot_border*2 + slot_length - slot_round/2 , tray_height + slot_round/2 ]) { rotate([ 0 , 90 , 0 ]) { cylinder( h = slot_width , d = slot_round ); } } } tray_number(i,j); } } } } } // BLOCK 4 module tray_number(i,j) { translate([ (slot_width/2) + slot_border , slot_border , (slot_height + tray_height) - text_depth ]) { linear_extrude(text_depth + 1) { text( text = str(i+(column_count*(j-1))) , size = text_size , halign = "center" , valign = "center" ); } } } parts_tray();
c777cd65-2af9-4e63-94f4-87d4c2a94607
// BLOCK 1 size = 100; thickness = 2; strands =2; wedges = 9; // BLOCK 2 module straight(){ rotate([-90,0,360/(2*wedges)]) cylinder(r=thickness, h=size/2, $fn=10); } // BLOCK 3 module arc(){ for(i = [1:strands]){ intersection(){ translate([0,0, -10]) rotate([0,0,90-360/(2*wedges)]) cube(size); translate([0,0, -10]) rotate([0,0,360/(2*wedges)]) cube(size); translate([-size/2, i*size/(2*strands)-size, -10]) cube(size); translate([0,cos(360/(2*wedges))*i*size/(1.050*strands), 0]) rotate_extrude(convexity = 10) translate([i*size/(2*strands), 0, 0]) circle(r = thickness, $fn = 10); } } } // BLOCK 4 intersection(){ translate([0, 0, size]) cube(2*size, center =true); for(i = [1:wedges]){ rotate([0,0,360/wedges*i]){ union(){ straight(); arc(); } } } }
// BLOCK 1 size = 100; thickness = 2; strands =2; wedges = 9; // BLOCK 2 module straight(){ rotate([-90,0,360/(2*wedges)]) cylinder(r=thickness, h=size/2, $fn=10); } // BLOCK 3 module arc(){ for(i = [1:strands]){ intersection(){ translate([0,0, -10]) rotate([0,0,90-360/(2*wedges)]) cube(size); translate([0,0, -10]) rotate([0,0,360/(2*wedges)]) cube(size); translate([-size/2, i*size/(2*strands)-size, -10]) cube(size); translate([0,cos(360/(2*wedges))*i*size/(1.050*strands), 0]) rotate_extrude(convexity = 10) translate([i*size/(2*strands), 0, 0]) circle(r = thickness, $fn = 10); } } } // BLOCK 4 intersection(){ translate([0, 0, size]) cube(2*size, center =true); for(i = [1:wedges]){ rotate([0,0,360/wedges*i]){ union(){ straight(); arc(); } } } }
cfdb0679-584e-4c7b-a34e-e34dd15322ae
// BLOCK 1 // BLOCK 2 module effector() { effectorHeight = 10; bodyDiameter = 60; bodyHeight = effectorHeight; bodyDiaphram = 30; armLength = 35; armWidth = 40; armHeight = effectorHeight; armNub = 4; bodyMounts = 8; bodyMountsOffset = 20; difference() { union() { body(bodyDiameter, bodyHeight, bodyDiaphram); for ( i = [0 : 2] ) { rotate( i * 120, [0, 0, 1]) arm(armLength, armWidth, armHeight, armNub); } } translate([0,0,-0.500]) { cylinder(d = bodyDiaphram, h = bodyHeight + 1, $fn = 100); } for ( i = [0 : bodyMounts] ) { rotate( (i * (360 / bodyMounts)), [0, 0, 1]) { translate([bodyMountsOffset, 0, -0.500]) { cylinder(d = 3.100, h = bodyHeight + 1, $fn = 30); } } } } echo(str("<b>DELTA_EFFECTOR_OFFSET: ", armLength, "mm</b>")); } // BLOCK 3 module body(bodyDiameter, bodyHeight, bodyDiaphram) { hull() { translate([0,0, (bodyHeight * 0.500)]) { cylinder(d = bodyDiameter, h = bodyHeight - 1, center = true, $fn = 120); cylinder(d = bodyDiameter - 1, h = bodyHeight, center = true, $fn = 120); } } } // BLOCK 4 module arm(armLength, armWidth, armHeight, armNub) { nubOffset = (armWidth * 0.500) + (armNub * 0.500); union() { difference() { translate([0, (armLength * 0.500), (armHeight * 0.500)]) { hull() { cube([armWidth, armLength, armHeight - 1], center=true); cube([armWidth - 1, armLength, armHeight], center=true); } } translate([0, armLength, (armHeight * 0.500)]) { rotate([90,0,90]) { cylinder(d = 3.100, h = (armWidth + 1), $fn = 30, center = true); } } } translate([0, armLength, (armHeight * 0.500)]) { difference() { union() { rotate([90,0,90]) { cylinder(h = armWidth, d = armHeight, $fn = 80, center=true); } translate([-nubOffset, 0, 0]) { rotate([90,0,-90]) { cylinder(h = armNub, d1 = armHeight, d2 = (armHeight - 2), $fn = 80, center = true); } } translate([nubOffset, 0, 0]) { rotate([90,0,90]) { cylinder(h = armNub, d1 = armHeight, d2 = (armHeight - 2), $fn = 80, center = true); } } } rotate([90,0,90]) { cylinder(d = 3.100, h = (armWidth + (armNub * 2) + 1), $fn = 60, center = true); } } } } } effector();
// BLOCK 1 // BLOCK 2 module effector() { effectorHeight = 10; bodyDiameter = 60; bodyHeight = effectorHeight; bodyDiaphram = 30; armLength = 35; armWidth = 40; armHeight = effectorHeight; armNub = 4; bodyMounts = 8; bodyMountsOffset = 20; difference() { union() { body(bodyDiameter, bodyHeight, bodyDiaphram); for ( i = [0 : 2] ) { rotate( i * 120, [0, 0, 1]) arm(armLength, armWidth, armHeight, armNub); } } translate([0,0,-0.500]) { cylinder(d = bodyDiaphram, h = bodyHeight + 1, $fn = 100); } for ( i = [0 : bodyMounts] ) { rotate( (i * (360 / bodyMounts)), [0, 0, 1]) { translate([bodyMountsOffset, 0, -0.500]) { cylinder(d = 3.100, h = bodyHeight + 1, $fn = 30); } } } } echo(str("<b>DELTA_EFFECTOR_OFFSET: ", armLength, "mm</b>")); } // BLOCK 3 module body(bodyDiameter, bodyHeight, bodyDiaphram) { hull() { translate([0,0, (bodyHeight * 0.500)]) { cylinder(d = bodyDiameter, h = bodyHeight - 1, center = true, $fn = 120); cylinder(d = bodyDiameter - 1, h = bodyHeight, center = true, $fn = 120); } } } // BLOCK 4 module arm(armLength, armWidth, armHeight, armNub) { nubOffset = (armWidth * 0.500) + (armNub * 0.500); union() { difference() { translate([0, (armLength * 0.500), (armHeight * 0.500)]) { hull() { cube([armWidth, armLength, armHeight - 1], center=true); cube([armWidth - 1, armLength, armHeight], center=true); } } translate([0, armLength, (armHeight * 0.500)]) { rotate([90,0,90]) { cylinder(d = 3.100, h = (armWidth + 1), $fn = 30, center = true); } } } translate([0, armLength, (armHeight * 0.500)]) { difference() { union() { rotate([90,0,90]) { cylinder(h = armWidth, d = armHeight, $fn = 80, center=true); } translate([-nubOffset, 0, 0]) { rotate([90,0,-90]) { cylinder(h = armNub, d1 = armHeight, d2 = (armHeight - 2), $fn = 80, center = true); } } translate([nubOffset, 0, 0]) { rotate([90,0,90]) { cylinder(h = armNub, d1 = armHeight, d2 = (armHeight - 2), $fn = 80, center = true); } } } rotate([90,0,90]) { cylinder(d = 3.100, h = (armWidth + (armNub * 2) + 1), $fn = 60, center = true); } } } } } effector();
e710dc8c-9f1f-473c-be60-c9d694066387
// BLOCK 1 // BLOCK 2 difference(){ union(){ cylinder(r = 10, h = 80, $fn = 8, center = true); translate([0,0,50]) cylinder(r1 = 10, r2 = 4, h = 20, $fn = 8, center = true); } translate([0,0,60]) cylinder(r = 3, h = 10, $fn = 20, center = true); translate([0,0,58]) rotate([25,0,90]) cylinder(r = 1, h = 50, center = true); translate([0,0,58]) rotate([-25,0,90]) cylinder(r = 1, h = 50, center = true); translate([0,0,-37]) rotate([90,0,90]) cylinder(r = 1, h = 30, center = true); translate([10,0,0]) cylinder(r = 1, h = 75, center = true); translate([-10,0,0]) cylinder(r = 1, h = 75, center = true); rotate([0,0,90]) { translate([0,0,58]) rotate([25,0,90]) cylinder(r = 1, h = 50, center = true); translate([0,0,58]) rotate([-25,0,90]) cylinder(r = 1, h = 50, center = true); translate([0,0,-37]) rotate([90,0,90]) cylinder(r = 1, h = 30, center = true); translate([10,0,0]) cylinder(r = 1, h = 75, center = true); translate([-10,0,0]) cylinder(r = 1, h = 75, center = true); } }
// BLOCK 1 // BLOCK 2 difference(){ union(){ cylinder(r = 10, h = 80, $fn = 8, center = true); translate([0,0,50]) cylinder(r1 = 10, r2 = 4, h = 20, $fn = 8, center = true); } translate([0,0,60]) cylinder(r = 3, h = 10, $fn = 20, center = true); translate([0,0,58]) rotate([25,0,90]) cylinder(r = 1, h = 50, center = true); translate([0,0,58]) rotate([-25,0,90]) cylinder(r = 1, h = 50, center = true); translate([0,0,-37]) rotate([90,0,90]) cylinder(r = 1, h = 30, center = true); translate([10,0,0]) cylinder(r = 1, h = 75, center = true); translate([-10,0,0]) cylinder(r = 1, h = 75, center = true); rotate([0,0,90]) { translate([0,0,58]) rotate([25,0,90]) cylinder(r = 1, h = 50, center = true); translate([0,0,58]) rotate([-25,0,90]) cylinder(r = 1, h = 50, center = true); translate([0,0,-37]) rotate([90,0,90]) cylinder(r = 1, h = 30, center = true); translate([10,0,0]) cylinder(r = 1, h = 75, center = true); translate([-10,0,0]) cylinder(r = 1, h = 75, center = true); } }
486fa1bc-9b0a-4b0b-863e-12a0dc476a5b
// BLOCK 1 color([1,0,0]) // BLOCK 2 difference(){ cylinder (h = 10, r=50, center = true); translate([0,18,0]) color([0,0,5]) cylinder (h = 15, r=35, center = true); } color([1,0,0]) // BLOCK 3 difference(){ translate([0,-5,0]) cube([70,30,10], center=true); #translate([-20,10,0]) rotate([0,0,-60]) color([0,0,1]) scale([0.800,0.600,1]) cylinder (h = 15, r=22, center = true); #rotate([0,180,0]) translate([-20,10,0]) rotate([0,0,-60]) color([0,0,1]) scale([0.800,0.600,1]) cylinder (h = 15, r=22, center = true); } color([1,0,0]) // BLOCK 4 difference(){ translate([0,18,0]) rotate([0,0,45]) cube([20,20,10], center=true); #rotate([0,0,-20]) scale([0.500,0.500,0.500]) difference(){ translate([15,40,0]) color([0,0,1]) cylinder (h = 25, r=22, center = true); translate([15,30,0]) color([0,0,1]) cylinder (h = 35, r=22, center = true); } # rotate([0,180,0]) rotate([0,0,-20]) scale([0.500,0.500,0.500]) difference(){ translate([15,40,0]) color([0,0,1]) cylinder (h = 25, r=22, center = true); translate([15,30,0]) color([0,0,1]) cylinder (h = 35, r=22, center = true); } }
// BLOCK 1 color([1,0,0]) // BLOCK 2 difference(){ cylinder (h = 10, r=50, center = true); translate([0,18,0]) color([0,0,5]) cylinder (h = 15, r=35, center = true); } color([1,0,0]) // BLOCK 3 difference(){ translate([0,-5,0]) cube([70,30,10], center=true); #translate([-20,10,0]) rotate([0,0,-60]) color([0,0,1]) scale([0.800,0.600,1]) cylinder (h = 15, r=22, center = true); #rotate([0,180,0]) translate([-20,10,0]) rotate([0,0,-60]) color([0,0,1]) scale([0.800,0.600,1]) cylinder (h = 15, r=22, center = true); } color([1,0,0]) // BLOCK 4 difference(){ translate([0,18,0]) rotate([0,0,45]) cube([20,20,10], center=true); #rotate([0,0,-20]) scale([0.500,0.500,0.500]) difference(){ translate([15,40,0]) color([0,0,1]) cylinder (h = 25, r=22, center = true); translate([15,30,0]) color([0,0,1]) cylinder (h = 35, r=22, center = true); } # rotate([0,180,0]) rotate([0,0,-20]) scale([0.500,0.500,0.500]) difference(){ translate([15,40,0]) color([0,0,1]) cylinder (h = 25, r=22, center = true); translate([15,30,0]) color([0,0,1]) cylinder (h = 35, r=22, center = true); } }
91e42299-795f-494d-ac6c-b2eba4682518
// BLOCK 1 // BLOCK 2 translate([-8,0,0]){ cube([85,14,3]);} translate([35,10,0]){ rotate([0,0,0]){ // BLOCK 3 difference(){ cylinder(d=90, h=3, $fn=70); cylinder(d=80, h=3, $fn=70);} }} // BLOCK 4 linear_extrude(height = 7) { text("Water ON", font = "Liberation Sans", size = 12, direction = "ltr", spacing = 1, $fn=70 );}
// BLOCK 1 // BLOCK 2 translate([-8,0,0]){ cube([85,14,3]);} translate([35,10,0]){ rotate([0,0,0]){ // BLOCK 3 difference(){ cylinder(d=90, h=3, $fn=70); cylinder(d=80, h=3, $fn=70);} }} // BLOCK 4 linear_extrude(height = 7) { text("Water ON", font = "Liberation Sans", size = 12, direction = "ltr", spacing = 1, $fn=70 );}
115a4875-e4b1-4dc1-9122-8e0e6cbddb30
// BLOCK 1 $fn=100; length=58.500; width=40; dia_x=5.000; dia_z=4.800; opening=3; straight=length-width; radius=width/2-dia_x/2; translate([0,straight,0]) rotate_extrude(angle=180, convexity=10) translate([radius, 0]) scale([dia_x,dia_z])circle(d=1); translate([0,0,0]) rotate_extrude(angle=-180, convexity=10) translate([radius, 0]) scale([dia_x,dia_z])circle(d=1); translate([radius, 0, 0]) straight_part(0); translate([-radius, 0, 0]) straight_part(opening); // BLOCK 2 module straight_part(gap){ function isgap() = gap==0? true : false; cut = isgap()?0:gap+max(dia_x, dia_z); rotate([-90,0,0]) difference(){ scale([dia_x, dia_z, straight]) cylinder(d=1, h=1); translate([-dia_x/2, -dia_z/2, straight/2-cut/2]) cube([dia_x, dia_z, cut]); } if(length > width){ translate([0, straight/2-gap/2-max(dia_x, dia_z)/2, 0]) scale([dia_x, max(dia_x, dia_z), dia_z]) color("red") sphere(d=1); translate([0, straight/2+gap/2+max(dia_x, dia_z)/2, 0]) scale([dia_x, max(dia_x, dia_z), dia_z]) color("red") sphere(d=1); } }
// BLOCK 1 $fn=100; length=58.500; width=40; dia_x=5.000; dia_z=4.800; opening=3; straight=length-width; radius=width/2-dia_x/2; translate([0,straight,0]) rotate_extrude(angle=180, convexity=10) translate([radius, 0]) scale([dia_x,dia_z])circle(d=1); translate([0,0,0]) rotate_extrude(angle=-180, convexity=10) translate([radius, 0]) scale([dia_x,dia_z])circle(d=1); translate([radius, 0, 0]) straight_part(0); translate([-radius, 0, 0]) straight_part(opening); // BLOCK 2 module straight_part(gap){ function isgap() = gap==0? true : false; cut = isgap()?0:gap+max(dia_x, dia_z); rotate([-90,0,0]) difference(){ scale([dia_x, dia_z, straight]) cylinder(d=1, h=1); translate([-dia_x/2, -dia_z/2, straight/2-cut/2]) cube([dia_x, dia_z, cut]); } if(length > width){ translate([0, straight/2-gap/2-max(dia_x, dia_z)/2, 0]) scale([dia_x, max(dia_x, dia_z), dia_z]) color("red") sphere(d=1); translate([0, straight/2+gap/2+max(dia_x, dia_z)/2, 0]) scale([dia_x, max(dia_x, dia_z), dia_z]) color("red") sphere(d=1); } }
4b3513ee-a99a-4c83-9d70-9b4dfd43e133
// BLOCK 1 minny=3; fullr = 36/2; // BLOCK 2 module roundknob(m) { intersection() { minkowski() { knob(m); sphere(m); } translate([0, 0, 8]) cylinder(r=fullr, h=30, center=true); } module knob(minny2) { r = fullr - minny2; h = 12 - minny2; union() { cylinder(r=r, h=h, center=true); translate([0, 0, 12]) cube([40-minny2,15-minny2,15-minny2], center=true); } } } function scale(x) = x * 2 * 0.055; // BLOCK 3 module inner_tee() { h=15; translate([0, 0, h/2]) { color("red") cube([scale(80), scale(19), h], center=true); color("cyan") translate([0, 3., 0]) cube([scale(40), scale(22), h], center=true); color("yellow") translate([0, 3., 0]) cube([scale(19), scale(40), h], center=true); } } // BLOCK 4 module ringThing() { h = 20; difference() { cylinder(r=22/2, h=h, center=true); cylinder(r=14/2, h=h, center=true); } } // BLOCK 5 difference() { union() { translate([0, 0, 7.500]) roundknob(minny); } union() { inner_tee(); cylinder(r=2, h=90, center=true); ringThing(); } } translate([20, 20, 0]) { } translate([-20, 20, 0]) { }
// BLOCK 1 minny=3; fullr = 36/2; // BLOCK 2 module roundknob(m) { intersection() { minkowski() { knob(m); sphere(m); } translate([0, 0, 8]) cylinder(r=fullr, h=30, center=true); } module knob(minny2) { r = fullr - minny2; h = 12 - minny2; union() { cylinder(r=r, h=h, center=true); translate([0, 0, 12]) cube([40-minny2,15-minny2,15-minny2], center=true); } } } function scale(x) = x * 2 * 0.055; // BLOCK 3 module inner_tee() { h=15; translate([0, 0, h/2]) { color("red") cube([scale(80), scale(19), h], center=true); color("cyan") translate([0, 3., 0]) cube([scale(40), scale(22), h], center=true); color("yellow") translate([0, 3., 0]) cube([scale(19), scale(40), h], center=true); } } // BLOCK 4 module ringThing() { h = 20; difference() { cylinder(r=22/2, h=h, center=true); cylinder(r=14/2, h=h, center=true); } } // BLOCK 5 difference() { union() { translate([0, 0, 7.500]) roundknob(minny); } union() { inner_tee(); cylinder(r=2, h=90, center=true); ringThing(); } } translate([20, 20, 0]) { } translate([-20, 20, 0]) { }
49102179-3e98-4164-af84-22db71249cd9
// BLOCK 1 rx = 3.400; ry = 13; ct = 3; ch = 8; fn1 = 30; hd1 = 3; hd2 = 6; hz = 0; hx = 2; f1 = 4; f2 = 5; f3 = 3; t = 0.100; // BLOCK 2 difference(){ union(){ translate([-(rx+2*ct)/2, -(ry+2*ct)/2, 0]){ cube([rx + 2*ct, ry + 2*ct, ch]); } translate([rx/2+ct-f1,-(ry+2*ct+2*f2)/2,-ct]) cube([f1,ry+2*ct+2*f2,ch+ct]); translate([rx/2+ct-f1,ry/2+ct+f2,(ct+ch)/2-ct]) rotate([0,90,0]) cylinder(r=(ct+ch)/2,h=f1,$fn=fn1); translate([rx/2+ct-f1,-ry/2-ct-f2,(ct+ch)/2-ct]) rotate([0,90,0]) cylinder(r=(ct+ch)/2,h=f1,$fn=fn1); difference(){ translate([rx/2+ct-f1-f3,ry/2+ct,-ct]) cube([f3,f3,ct+ch]); union(){ translate([rx/2+ct-f1-f3-f3/2,ry/2+ct+f3/2,-ct-t/2]) cube([1.500*f3+t,f3+t,ct+ch+t]); translate([rx/2+ct-f1-f3-f3/2,ry/2+ct-t/2,-ct-t/2]) cube([f3+t,1.500*f3+t,ct+ch+t]); translate([rx/2+ct-f1-f3/2,ry/2+ct+f3/2,-ct-t/2]) cylinder(r=f3/2,h=ct+ch+t,$fn=fn1);}} difference(){ translate([rx/2+ct-f1-f3,-ry/2-ct-f3,-ct]) cube([f3,f3,ct+ch]); union(){ translate([rx/2+ct-f1-f3-f3/2,-ry/2-ct-f3-f3/2,-ct-t/2]) cube([1.500*f3+t,f3+t,ct+ch+t]); translate([rx/2+ct-f1-f3-f3/2,-ry/2-ct-f3-f3/2,-ct-t/2]) cube([f3+t,1.500*f3+t,ct+ch+t]); translate([rx/2+ct-f1-f3/2,-ry/2-ct-f3/2,-ct-t/2]) cylinder(r=f3/2,h=ct+ch+t,$fn=fn1);}} translate([-(rx+2*ct)/2, -(ry+2*ct)/2, -ct]){ cube([rx + 2*ct, ry + 2*ct, ct]);} } union(){ translate([-rx/2, -ry/2, t/2]){ cube([rx, ry, ch+t]); } translate([rx/2+ct-f1-t/2,ry/2+ct+f2+hz,ch-(ch+ct)/2]) rotate([0,90,0]) cylinder(r=hd1/2,h=f1+t,$fn=fn1); translate([rx/2+ct-f1-t/2,-(ry/2+ct+f2+hz),ch-(ch+ct)/2]) rotate([0,90,0]) cylinder(r=hd1/2,h=f1+t,$fn=fn1); translate([rx/2+ct-f1-t,ry/2+ct+f2+hz,ch-(ch+ct)/2]) rotate([0,90,0]) cylinder(r=hd2/2,h=hx,$fn=fn1); translate([rx/2+ct-f1-t,-(ry/2+ct+f2+hz),ch-(ch+ct)/2]) rotate([0,90,0]) cylinder(r=hd2/2,h=hx,$fn=fn1); } }
// BLOCK 1 rx = 3.400; ry = 13; ct = 3; ch = 8; fn1 = 30; hd1 = 3; hd2 = 6; hz = 0; hx = 2; f1 = 4; f2 = 5; f3 = 3; t = 0.100; // BLOCK 2 difference(){ union(){ translate([-(rx+2*ct)/2, -(ry+2*ct)/2, 0]){ cube([rx + 2*ct, ry + 2*ct, ch]); } translate([rx/2+ct-f1,-(ry+2*ct+2*f2)/2,-ct]) cube([f1,ry+2*ct+2*f2,ch+ct]); translate([rx/2+ct-f1,ry/2+ct+f2,(ct+ch)/2-ct]) rotate([0,90,0]) cylinder(r=(ct+ch)/2,h=f1,$fn=fn1); translate([rx/2+ct-f1,-ry/2-ct-f2,(ct+ch)/2-ct]) rotate([0,90,0]) cylinder(r=(ct+ch)/2,h=f1,$fn=fn1); difference(){ translate([rx/2+ct-f1-f3,ry/2+ct,-ct]) cube([f3,f3,ct+ch]); union(){ translate([rx/2+ct-f1-f3-f3/2,ry/2+ct+f3/2,-ct-t/2]) cube([1.500*f3+t,f3+t,ct+ch+t]); translate([rx/2+ct-f1-f3-f3/2,ry/2+ct-t/2,-ct-t/2]) cube([f3+t,1.500*f3+t,ct+ch+t]); translate([rx/2+ct-f1-f3/2,ry/2+ct+f3/2,-ct-t/2]) cylinder(r=f3/2,h=ct+ch+t,$fn=fn1);}} difference(){ translate([rx/2+ct-f1-f3,-ry/2-ct-f3,-ct]) cube([f3,f3,ct+ch]); union(){ translate([rx/2+ct-f1-f3-f3/2,-ry/2-ct-f3-f3/2,-ct-t/2]) cube([1.500*f3+t,f3+t,ct+ch+t]); translate([rx/2+ct-f1-f3-f3/2,-ry/2-ct-f3-f3/2,-ct-t/2]) cube([f3+t,1.500*f3+t,ct+ch+t]); translate([rx/2+ct-f1-f3/2,-ry/2-ct-f3/2,-ct-t/2]) cylinder(r=f3/2,h=ct+ch+t,$fn=fn1);}} translate([-(rx+2*ct)/2, -(ry+2*ct)/2, -ct]){ cube([rx + 2*ct, ry + 2*ct, ct]);} } union(){ translate([-rx/2, -ry/2, t/2]){ cube([rx, ry, ch+t]); } translate([rx/2+ct-f1-t/2,ry/2+ct+f2+hz,ch-(ch+ct)/2]) rotate([0,90,0]) cylinder(r=hd1/2,h=f1+t,$fn=fn1); translate([rx/2+ct-f1-t/2,-(ry/2+ct+f2+hz),ch-(ch+ct)/2]) rotate([0,90,0]) cylinder(r=hd1/2,h=f1+t,$fn=fn1); translate([rx/2+ct-f1-t,ry/2+ct+f2+hz,ch-(ch+ct)/2]) rotate([0,90,0]) cylinder(r=hd2/2,h=hx,$fn=fn1); translate([rx/2+ct-f1-t,-(ry/2+ct+f2+hz),ch-(ch+ct)/2]) rotate([0,90,0]) cylinder(r=hd2/2,h=hx,$fn=fn1); } }
142aa528-21ef-4e0e-a365-0a15fff7efd6
// BLOCK 1 volume = 5.000; bowlHeight = 10.000; gripLength = 50.000; gripWidth = 0.000; gripHoleDiameter = 0.000; thickness = 1.500; grip = 1; gripHole = 1; gripPosition = "bottom"; CP = 75; rad = sqrt( (volume * 1000) / (PI * bowlHeight) ); rado = rad + thickness; gripW = (gripWidth == 0) ? rado : gripWidth; gripZ = (gripPosition == "top") ? bowlHeight : 0; gripHoleD = (gripHoleDiameter == 0) ? gripW / 2 : gripHoleDiameter; Spoon(); // BLOCK 2 module Spoon() { difference() { union() { BowlOutside(); if(grip) Grip(); } BowlInside(); } } // BLOCK 3 module BowlOutside() { cylinder(r = rado, h = bowlHeight + thickness, $fn = CP ); } // BLOCK 4 module BowlInside() { translate([0, 0, thickness]) cylinder(r = rad, h = bowlHeight + 1, $fn = CP ); } // BLOCK 5 module Grip() { difference() { union() { translate([0, -gripW/2, gripZ]) cube([gripLength + rado, gripW, thickness]); translate([ gripLength + rado, 0, gripZ]) { cylinder( r = gripW/2, h = thickness, $fn = CP ); } } if (gripHole) { translate([ gripLength + rado, 0, gripZ - 1]) { cylinder( r = gripHoleD/2, h = thickness + 2, $fn = CP ); } } } }
// BLOCK 1 volume = 5.000; bowlHeight = 10.000; gripLength = 50.000; gripWidth = 0.000; gripHoleDiameter = 0.000; thickness = 1.500; grip = 1; gripHole = 1; gripPosition = "bottom"; CP = 75; rad = sqrt( (volume * 1000) / (PI * bowlHeight) ); rado = rad + thickness; gripW = (gripWidth == 0) ? rado : gripWidth; gripZ = (gripPosition == "top") ? bowlHeight : 0; gripHoleD = (gripHoleDiameter == 0) ? gripW / 2 : gripHoleDiameter; Spoon(); // BLOCK 2 module Spoon() { difference() { union() { BowlOutside(); if(grip) Grip(); } BowlInside(); } } // BLOCK 3 module BowlOutside() { cylinder(r = rado, h = bowlHeight + thickness, $fn = CP ); } // BLOCK 4 module BowlInside() { translate([0, 0, thickness]) cylinder(r = rad, h = bowlHeight + 1, $fn = CP ); } // BLOCK 5 module Grip() { difference() { union() { translate([0, -gripW/2, gripZ]) cube([gripLength + rado, gripW, thickness]); translate([ gripLength + rado, 0, gripZ]) { cylinder( r = gripW/2, h = thickness, $fn = CP ); } } if (gripHole) { translate([ gripLength + rado, 0, gripZ - 1]) { cylinder( r = gripHoleD/2, h = thickness + 2, $fn = CP ); } } } }
26361425-863d-4055-99a0-02a8fdf869ed
// BLOCK 1 scale=5; // BLOCK 2 module animal_leg() { difference() { union() { cube([4*scale,4*scale,12*scale]); translate([-.1*scale,-.1*scale,11*scale])cube([4.200*scale,4.200*scale,1*scale]); } leg_connector(); translate([2*scale,4.050*scale,11.500*scale])cube([2*scale,.1*scale,1*scale], center=true); } } // BLOCK 3 module leg_connector() { translate([scale*2,scale*1,0])cylinder(r=1.500,h=scale*2, center=true,$fn=100); translate([scale*2,scale*2,0])cylinder(r=1.500,h=scale*2, center=true,$fn=100); } // BLOCK 4 module head_indent(head_width,head_depth,body_width) { translate([body_width/2*scale,scale+.4,0])cube([head_width*scale+0.500,head_depth*scale+0.450,.4],center=true); translate([body_width/2*scale,0,scale+.025])cube([head_width*scale+0.500,.4,head_depth*scale+.45],center=true); } // BLOCK 5 module head() { translate([0,0.200,0.200])difference() { union() { cube([6*scale,8*scale,6*scale]); translate([2*scale,-0.100*scale,4*scale])cube([2*scale,0.100*scale,2*scale]); translate([-0.100*scale,1*scale,1*scale])cube([0.100*scale,1*scale,3*scale]); translate([-0.100*scale,2*scale,1*scale])cube([0.100*scale,2*scale,2*scale]); translate([6.000*scale,1*scale,1*scale])cube([0.100*scale,1*scale,3*scale]); translate([6.000*scale,2*scale,1*scale])cube([0.100*scale,2*scale,2*scale]); } translate([3.900*scale,0*scale,2*scale])cube([1*scale,0.100*scale,1*scale]); translate([3.900*scale,0*scale,2*scale])cube([2*scale,0.050*scale,1*scale]); translate([1.100*scale,0*scale,2*scale])cube([1*scale,0.100*scale,1*scale]); translate([0.100*scale,0*scale,2*scale])cube([2*scale,0.050*scale,1*scale]); translate([0*scale,6*scale,4*scale])cube([6*scale,2*scale,2*scale]); } } // BLOCK 6 module body(){ difference() { translate([-1*scale,6*scale,4*scale])cube([8*scale,16*scale,6*scale]); translate([-1*scale,6*scale,4*scale])head_indent(6,2,8); translate([-2*scale,6*scale,10*scale])leg_connector(); translate([4*scale,6*scale,10*scale])leg_connector(); translate([-2*scale,19*scale,10*scale])leg_connector(); translate([4*scale,19*scale,10*scale])leg_connector(); } } // BLOCK 7 module legs(){ translate([-2*scale,6*scale,10*scale])animal_leg(); translate([4*scale,6*scale,10*scale])animal_leg(); translate([-2*scale,19*scale,10*scale])animal_leg(); translate([4*scale,19*scale,10*scale])animal_leg(); } head(); body(); legs();
// BLOCK 1 scale=5; // BLOCK 2 module animal_leg() { difference() { union() { cube([4*scale,4*scale,12*scale]); translate([-.1*scale,-.1*scale,11*scale])cube([4.200*scale,4.200*scale,1*scale]); } leg_connector(); translate([2*scale,4.050*scale,11.500*scale])cube([2*scale,.1*scale,1*scale], center=true); } } // BLOCK 3 module leg_connector() { translate([scale*2,scale*1,0])cylinder(r=1.500,h=scale*2, center=true,$fn=100); translate([scale*2,scale*2,0])cylinder(r=1.500,h=scale*2, center=true,$fn=100); } // BLOCK 4 module head_indent(head_width,head_depth,body_width) { translate([body_width/2*scale,scale+.4,0])cube([head_width*scale+0.500,head_depth*scale+0.450,.4],center=true); translate([body_width/2*scale,0,scale+.025])cube([head_width*scale+0.500,.4,head_depth*scale+.45],center=true); } // BLOCK 5 module head() { translate([0,0.200,0.200])difference() { union() { cube([6*scale,8*scale,6*scale]); translate([2*scale,-0.100*scale,4*scale])cube([2*scale,0.100*scale,2*scale]); translate([-0.100*scale,1*scale,1*scale])cube([0.100*scale,1*scale,3*scale]); translate([-0.100*scale,2*scale,1*scale])cube([0.100*scale,2*scale,2*scale]); translate([6.000*scale,1*scale,1*scale])cube([0.100*scale,1*scale,3*scale]); translate([6.000*scale,2*scale,1*scale])cube([0.100*scale,2*scale,2*scale]); } translate([3.900*scale,0*scale,2*scale])cube([1*scale,0.100*scale,1*scale]); translate([3.900*scale,0*scale,2*scale])cube([2*scale,0.050*scale,1*scale]); translate([1.100*scale,0*scale,2*scale])cube([1*scale,0.100*scale,1*scale]); translate([0.100*scale,0*scale,2*scale])cube([2*scale,0.050*scale,1*scale]); translate([0*scale,6*scale,4*scale])cube([6*scale,2*scale,2*scale]); } } // BLOCK 6 module body(){ difference() { translate([-1*scale,6*scale,4*scale])cube([8*scale,16*scale,6*scale]); translate([-1*scale,6*scale,4*scale])head_indent(6,2,8); translate([-2*scale,6*scale,10*scale])leg_connector(); translate([4*scale,6*scale,10*scale])leg_connector(); translate([-2*scale,19*scale,10*scale])leg_connector(); translate([4*scale,19*scale,10*scale])leg_connector(); } } // BLOCK 7 module legs(){ translate([-2*scale,6*scale,10*scale])animal_leg(); translate([4*scale,6*scale,10*scale])animal_leg(); translate([-2*scale,19*scale,10*scale])animal_leg(); translate([4*scale,19*scale,10*scale])animal_leg(); } head(); body(); legs();
bc748c13-741f-402a-90ef-26370d4e1eb3
// BLOCK 1 part = "one"; number_of_corners = 25; stone_scale = 1; medium_stones = 15; small_stones = 30; radius = 20; corner_size = 2; intersection(){ union(){ scale([1,1,stone_scale]) randomRock(radius,corner_size,number_of_corners); if(medium_stones>0){ for(i=[1:medium_stones]){ z = rands(0,360,1)[0]; rotate([0,0,z]) translate([rands(radius*0.600,radius*0.900,1)[0],0,0]) randomRock(rands(radius*0.300,radius*0.500,1)[0],corner_size*0.500,15); } } if(small_stones>0){ for(i=[0:small_stones]){ z = rands(0,360,1)[0]; rotate([0,0,z]) translate([rands(radius*0.700,radius*1.150,1)[0],0,0]) randomRock(rands(radius*0.100,radius*0.300,1)[0],corner_size*0.500,10); } } } // BLOCK 2 translate([-50,-50,0]) cube(100); } // BLOCK 3 module randomRock(radius,corner_size,number_of_corners){ hull(){ for(i=[0:number_of_corners]){ y = rands(0,360,1)[0]; z = rands(0,360,1)[0]; rotate([0,y,z]) translate([radius-corner_size*0.500,0,0]) rotate([rands(0,360,1)[0],rands(0,360,1)[0],rands(0,360,1)[0]]) cube(rands(corner_size*0.500,corner_size,1)[0],center = true); } } }
// BLOCK 1 part = "one"; number_of_corners = 25; stone_scale = 1; medium_stones = 15; small_stones = 30; radius = 20; corner_size = 2; intersection(){ union(){ scale([1,1,stone_scale]) randomRock(radius,corner_size,number_of_corners); if(medium_stones>0){ for(i=[1:medium_stones]){ z = rands(0,360,1)[0]; rotate([0,0,z]) translate([rands(radius*0.600,radius*0.900,1)[0],0,0]) randomRock(rands(radius*0.300,radius*0.500,1)[0],corner_size*0.500,15); } } if(small_stones>0){ for(i=[0:small_stones]){ z = rands(0,360,1)[0]; rotate([0,0,z]) translate([rands(radius*0.700,radius*1.150,1)[0],0,0]) randomRock(rands(radius*0.100,radius*0.300,1)[0],corner_size*0.500,10); } } } // BLOCK 2 translate([-50,-50,0]) cube(100); } // BLOCK 3 module randomRock(radius,corner_size,number_of_corners){ hull(){ for(i=[0:number_of_corners]){ y = rands(0,360,1)[0]; z = rands(0,360,1)[0]; rotate([0,y,z]) translate([radius-corner_size*0.500,0,0]) rotate([rands(0,360,1)[0],rands(0,360,1)[0],rands(0,360,1)[0]]) cube(rands(corner_size*0.500,corner_size,1)[0],center = true); } } }
65d94800-0ad5-44c6-b40b-711760e02e9c
// BLOCK 1 wallthickness=1.320; internalx=70; internaly=25; internalz=100; internal_lidz=15; lip_overlap = internal_lidz/2; lipspacing=0; internal_botz=internalz-internal_lidz; actual_y=internaly+(4*wallthickness); actual_x=internalx+(4*wallthickness); actual_lidz=internal_lidz+(2*wallthickness); actual_botz=internal_botz+(2*wallthickness); lip_x = internalx+(2*wallthickness); lip_y = internaly+(2*wallthickness); // BLOCK 2 module bottom() { difference() { union() { scale([actual_x,actual_y,actual_botz])cube(1); translate([wallthickness,wallthickness,actual_botz])scale([lip_x,lip_y,lip_overlap])cube(1); } translate([(2*wallthickness),(2*wallthickness),(2*wallthickness)])scale([internalx,internaly,internalz])cube(1); } } // BLOCK 3 module lid() { difference() { scale([actual_x,actual_y,actual_lidz+lip_overlap])cube(1); translate([(2*wallthickness),(2*wallthickness),-0.100])scale([internalx,internaly,internal_lidz+lip_overlap+0.100])cube(1); translate([(wallthickness)-lipspacing/2,(wallthickness)-lipspacing/2,-0.100])scale([lip_x+lipspacing,lip_y+lipspacing,lip_overlap+0.300])cube(1); } } translate([0,0,actual_botz + lip_overlap + 10])lid(); bottom();
// BLOCK 1 wallthickness=1.320; internalx=70; internaly=25; internalz=100; internal_lidz=15; lip_overlap = internal_lidz/2; lipspacing=0; internal_botz=internalz-internal_lidz; actual_y=internaly+(4*wallthickness); actual_x=internalx+(4*wallthickness); actual_lidz=internal_lidz+(2*wallthickness); actual_botz=internal_botz+(2*wallthickness); lip_x = internalx+(2*wallthickness); lip_y = internaly+(2*wallthickness); // BLOCK 2 module bottom() { difference() { union() { scale([actual_x,actual_y,actual_botz])cube(1); translate([wallthickness,wallthickness,actual_botz])scale([lip_x,lip_y,lip_overlap])cube(1); } translate([(2*wallthickness),(2*wallthickness),(2*wallthickness)])scale([internalx,internaly,internalz])cube(1); } } // BLOCK 3 module lid() { difference() { scale([actual_x,actual_y,actual_lidz+lip_overlap])cube(1); translate([(2*wallthickness),(2*wallthickness),-0.100])scale([internalx,internaly,internal_lidz+lip_overlap+0.100])cube(1); translate([(wallthickness)-lipspacing/2,(wallthickness)-lipspacing/2,-0.100])scale([lip_x+lipspacing,lip_y+lipspacing,lip_overlap+0.300])cube(1); } } translate([0,0,actual_botz + lip_overlap + 10])lid(); bottom();
4726d5f8-818d-40ac-9a73-dd7247697d08
// BLOCK 1 $fn=30; fudge = 0.100; thick=2; // BLOCK 2 difference(){ hull(){ { translate([35,0,0]) cylinder(thick,3,3); translate([0,35,0]) cylinder(thick,3,3); translate([0,-35,0]) cylinder(thick,3,3); translate([-35,0,0]) cylinder(thick,3,3); }} translate([0,30,0]) cylinder(3,3,3); } // BLOCK 3 linear_extrude(4){ text("ANN", font="Mainframe BB", size=12, halign="center", valign="center"); }
// BLOCK 1 $fn=30; fudge = 0.100; thick=2; // BLOCK 2 difference(){ hull(){ { translate([35,0,0]) cylinder(thick,3,3); translate([0,35,0]) cylinder(thick,3,3); translate([0,-35,0]) cylinder(thick,3,3); translate([-35,0,0]) cylinder(thick,3,3); }} translate([0,30,0]) cylinder(3,3,3); } // BLOCK 3 linear_extrude(4){ text("ANN", font="Mainframe BB", size=12, halign="center", valign="center"); }
fed012fa-d605-47e6-8493-63113bd99874
// BLOCK 1 x_spikes=10; y_spikes=5; square=6; base_height=2; pyramid_height=4; spacing=7; base_x=(2+x_spikes)*spacing; base_y=(2+y_spikes)*spacing; minimum=true; echo(str("Soap size: ",base_x,"mm x ",base_y,"mm.")); _x_spikes=minimum?ceil(x_spikes/2):x_spikes; _y_spikes=minimum?ceil(y_spikes/2):y_spikes; _x_spikes1=1+_x_spikes; _y_spikes1=1+_y_spikes; offset=spacing-square/2; // BLOCK 2 if (minimum) { for (x = [1,_x_spikes1], y = [1,_y_spikes1]) { translate([ x*spacing, y*spacing, 0]) { cylinder(base_height,r=square ); } } linear_extrude(base_height) { offset(r=square/2) { polygon([ [spacing,spacing], [spacing+0.000,spacing], [_x_spikes1*spacing, _y_spikes1*spacing] ]); polygon([ [spacing, _y_spikes1*spacing], [spacing+0.000, _y_spikes1*spacing], [_x_spikes1*spacing, spacing] ]); }; }; translate([ offset+_x_spikes*spacing/2, offset+_y_spikes*spacing/2, 0]) { for (x = [0,square/2], y = [0,square/2]) { translate([x,y,base_height]) { pyramid(square/2,square/2,pyramid_height/2); }; }; }; } // BLOCK 3 else { cube([base_x,base_y,base_height]); } for (x = [0:_x_spikes], y = [0:_y_spikes]) { if (!minimum || (x == 0 || x == _x_spikes) && (y == 0 || y == _y_spikes) ) { translate([ offset+(x*spacing), offset+(y*spacing), base_height]) { pyramid(square,square,pyramid_height); }; }; }; // BLOCK 4 module pyramid(w, l, h) { mw = w/2; ml = l/2; polyhedron(points = [ [0, 0, 0], [w, 0, 0], [0, l, 0], [w, l, 0], [mw, ml, h] ], faces = [ [4, 1, 0], [4, 3, 1], [4, 2, 3], [4, 0, 2], [0, 1, 2], [2, 1, 3] ]); }
// BLOCK 1 x_spikes=10; y_spikes=5; square=6; base_height=2; pyramid_height=4; spacing=7; base_x=(2+x_spikes)*spacing; base_y=(2+y_spikes)*spacing; minimum=true; echo(str("Soap size: ",base_x,"mm x ",base_y,"mm.")); _x_spikes=minimum?ceil(x_spikes/2):x_spikes; _y_spikes=minimum?ceil(y_spikes/2):y_spikes; _x_spikes1=1+_x_spikes; _y_spikes1=1+_y_spikes; offset=spacing-square/2; // BLOCK 2 if (minimum) { for (x = [1,_x_spikes1], y = [1,_y_spikes1]) { translate([ x*spacing, y*spacing, 0]) { cylinder(base_height,r=square ); } } linear_extrude(base_height) { offset(r=square/2) { polygon([ [spacing,spacing], [spacing+0.000,spacing], [_x_spikes1*spacing, _y_spikes1*spacing] ]); polygon([ [spacing, _y_spikes1*spacing], [spacing+0.000, _y_spikes1*spacing], [_x_spikes1*spacing, spacing] ]); }; }; translate([ offset+_x_spikes*spacing/2, offset+_y_spikes*spacing/2, 0]) { for (x = [0,square/2], y = [0,square/2]) { translate([x,y,base_height]) { pyramid(square/2,square/2,pyramid_height/2); }; }; }; } // BLOCK 3 else { cube([base_x,base_y,base_height]); } for (x = [0:_x_spikes], y = [0:_y_spikes]) { if (!minimum || (x == 0 || x == _x_spikes) && (y == 0 || y == _y_spikes) ) { translate([ offset+(x*spacing), offset+(y*spacing), base_height]) { pyramid(square,square,pyramid_height); }; }; }; // BLOCK 4 module pyramid(w, l, h) { mw = w/2; ml = l/2; polyhedron(points = [ [0, 0, 0], [w, 0, 0], [0, l, 0], [w, l, 0], [mw, ml, h] ], faces = [ [4, 1, 0], [4, 3, 1], [4, 2, 3], [4, 0, 2], [0, 1, 2], [2, 1, 3] ]); }
70d99814-82db-4b3e-9d52-f9b1fe932145
// BLOCK 1 width=36; thickness=17; height=58.200; shell=1; slot=thickness/1.500; // BLOCK 2 difference(){ translate([-(width+shell*2)/2,-(thickness+shell*2)/2,0]){ cube([width+shell*2, thickness+shell*2, height+shell]); } translate([-width/2,-thickness/2,shell]){ cube([width, thickness, height+shell*2]); } translate([width/2.200,0,height-slot]){ rotate(a = 90, v=[0, 1, 0]) cylinder(r=slot/2, h=shell*4); } translate([width/2.200,0,slot]){ rotate(a = 90, v=[0, 1, 0]) cylinder(r=slot/2, h=shell*4); } translate([width/2.200,-slot/2,slot]){ cube([shell*4, slot, (height-slot*2)]); } translate([-width*0.500+slot,0,-shell*2]){ cylinder(r=slot/2, h=shell*4); } translate([width*0.500-slot,0,-shell*2]){ cylinder(r=slot/2, h=shell*4); } translate([-width*0.500+slot,-slot/2,-shell*2]){ cube([width-slot*2, slot, shell*4]); } }
// BLOCK 1 width=36; thickness=17; height=58.200; shell=1; slot=thickness/1.500; // BLOCK 2 difference(){ translate([-(width+shell*2)/2,-(thickness+shell*2)/2,0]){ cube([width+shell*2, thickness+shell*2, height+shell]); } translate([-width/2,-thickness/2,shell]){ cube([width, thickness, height+shell*2]); } translate([width/2.200,0,height-slot]){ rotate(a = 90, v=[0, 1, 0]) cylinder(r=slot/2, h=shell*4); } translate([width/2.200,0,slot]){ rotate(a = 90, v=[0, 1, 0]) cylinder(r=slot/2, h=shell*4); } translate([width/2.200,-slot/2,slot]){ cube([shell*4, slot, (height-slot*2)]); } translate([-width*0.500+slot,0,-shell*2]){ cylinder(r=slot/2, h=shell*4); } translate([width*0.500-slot,0,-shell*2]){ cylinder(r=slot/2, h=shell*4); } translate([-width*0.500+slot,-slot/2,-shell*2]){ cube([width-slot*2, slot, shell*4]); } }
17837d16-2935-45e2-b720-082667351d67
// BLOCK 1 thk=3; tall=20; wide=71; long=95; tube=long*.75; tubein=13; tubeout=tubein+thk; // BLOCK 2 module box() { cube([long,wide,thk]); cube([long,thk,tall]); translate([0,wide-thk,0]) cube([long,thk,tall]); cube([thk,wide,tall]); translate([long-thk,0,0]) cube([thk,wide,tall]); } // BLOCK 3 difference(){ box(); translate([-1,wide*.5, tall]) rotate([0,90,0]) scale([1,2,1]) cylinder(long+thk,tall*.5,tall*.5); translate([long*.5,-.1, tall]) rotate([0,90,90]) scale([1,4,1]) cylinder(long+thk,tall*.5,tall*.5); } for(i=[15:15:wide-10]){ // BLOCK 4 hull(){ translate([10,i,thk]) sphere(thk); translate([long-10,i,thk]) sphere(thk); }} translate([-tubeout+thk,wide-tubeout+thk*3,0]){ // BLOCK 5 difference(){ cylinder(tube,tubeout,tubeout); translate([0,0,-.1]) cylinder(tube+thk,tubein,tubein); }} translate([long+tubeout-thk,wide-tubeout+thk*3,0]){ // BLOCK 6 difference(){ cylinder(tube,tubeout,tubeout); translate([0,0,-.1]) cylinder(tube+thk,tubein,tubein); }}
// BLOCK 1 thk=3; tall=20; wide=71; long=95; tube=long*.75; tubein=13; tubeout=tubein+thk; // BLOCK 2 module box() { cube([long,wide,thk]); cube([long,thk,tall]); translate([0,wide-thk,0]) cube([long,thk,tall]); cube([thk,wide,tall]); translate([long-thk,0,0]) cube([thk,wide,tall]); } // BLOCK 3 difference(){ box(); translate([-1,wide*.5, tall]) rotate([0,90,0]) scale([1,2,1]) cylinder(long+thk,tall*.5,tall*.5); translate([long*.5,-.1, tall]) rotate([0,90,90]) scale([1,4,1]) cylinder(long+thk,tall*.5,tall*.5); } for(i=[15:15:wide-10]){ // BLOCK 4 hull(){ translate([10,i,thk]) sphere(thk); translate([long-10,i,thk]) sphere(thk); }} translate([-tubeout+thk,wide-tubeout+thk*3,0]){ // BLOCK 5 difference(){ cylinder(tube,tubeout,tubeout); translate([0,0,-.1]) cylinder(tube+thk,tubein,tubein); }} translate([long+tubeout-thk,wide-tubeout+thk*3,0]){ // BLOCK 6 difference(){ cylinder(tube,tubeout,tubeout); translate([0,0,-.1]) cylinder(tube+thk,tubein,tubein); }}
87a70ea3-2894-424e-8af2-4136c041295a
// BLOCK 1 i=2; j=2; a=41; b=1; c=1; h=40; for (i =[1:i],j=[1:j]) kostka(a,b,c,h,i,j); // BLOCK 2 module kostka (a,b,c,h,i,j) { translate([(i-1)*(a+b),(j-1)*(a+b),0]) union(){ translate([b,b,0]) difference() { cube([a,a,c],false); translate([a/2,a*(1-sqrt(2))/2,0]) rotate([0,0,45]) cube([a,a,c],false); } difference() { cube([a+2*b,a+2*b,h],false); translate([b,b,0]) cube([a,a,2*h],false); } } }
// BLOCK 1 i=2; j=2; a=41; b=1; c=1; h=40; for (i =[1:i],j=[1:j]) kostka(a,b,c,h,i,j); // BLOCK 2 module kostka (a,b,c,h,i,j) { translate([(i-1)*(a+b),(j-1)*(a+b),0]) union(){ translate([b,b,0]) difference() { cube([a,a,c],false); translate([a/2,a*(1-sqrt(2))/2,0]) rotate([0,0,45]) cube([a,a,c],false); } difference() { cube([a+2*b,a+2*b,h],false); translate([b,b,0]) cube([a,a,2*h],false); } } }
c10724b3-b538-4394-a417-f68bc61b93af
// BLOCK 1 bolt_length = 40.000; bolt_diam = 10.400; no_of_bolts = 5; ring_radius = 25; resol = 36; bolt_radius = bolt_diam / 2; bolt_angle = 360 / no_of_bolts; bolt_offset = bolt_length / 2; total_diam = (2* ring_radius) + bolt_diam; echo ("Total Diameter of Bolt Arrangement: "); echo (total_diam); union () { for ( i = [0:bolt_angle:360-bolt_angle+0.100] ) { rotate ( [ 0, 0, i] ) { translate ( [ ring_radius, 0, 0 ] ) { echo (i); // BLOCK 2 union () { cylinder ( h=bolt_length, r=bolt_radius, $fn = resol, center = true); // BLOCK 3 translate ( [ 0, 0, bolt_offset] ) { sphere ( r=bolt_radius, $fn = resol); }; // BLOCK 4 translate ( [ 0, 0, -bolt_offset] ) { sphere ( r=bolt_radius, $fn = resol); }; }; }; }; }; };
// BLOCK 1 bolt_length = 40.000; bolt_diam = 10.400; no_of_bolts = 5; ring_radius = 25; resol = 36; bolt_radius = bolt_diam / 2; bolt_angle = 360 / no_of_bolts; bolt_offset = bolt_length / 2; total_diam = (2* ring_radius) + bolt_diam; echo ("Total Diameter of Bolt Arrangement: "); echo (total_diam); union () { for ( i = [0:bolt_angle:360-bolt_angle+0.100] ) { rotate ( [ 0, 0, i] ) { translate ( [ ring_radius, 0, 0 ] ) { echo (i); // BLOCK 2 union () { cylinder ( h=bolt_length, r=bolt_radius, $fn = resol, center = true); // BLOCK 3 translate ( [ 0, 0, bolt_offset] ) { sphere ( r=bolt_radius, $fn = resol); }; // BLOCK 4 translate ( [ 0, 0, -bolt_offset] ) { sphere ( r=bolt_radius, $fn = resol); }; }; }; }; }; };
141ee9a7-b40c-4509-b75c-65b139d73a59
// BLOCK 1 $fn = 100*1; root = 7; hole = 3; deep = 15; thick = sqrt(pow(hole/2,2)+pow(hole/2,2)); // BLOCK 2 difference(){ translate([-root/2,root/2,0]){ cylinder(r=root/2+1.200,h=thick); } translate([-root/2,root/2,-0.010]){ cylinder(r=root/2,h=thick+02); } translate([-25,-50+root/10,-0.010]){ cube([50,50,thick+0.020]); } } // BLOCK 3 difference(){ translate([0,-deep+root/2,0]){ cube([thick,deep,thick]); } for(i=[0:10]){ translate([8/1.400 +thick/2,0-i*thick,thick/2]){ rotate([0,0,45]){ cube([8,8,thick+0.020],center=true); } } translate([-8/1.400+thick/2,-thick/2-i*thick,thick/2]){ rotate([0,0,45]){ cube([8,8,thick+0.020],center=true); } } } translate([thick/2,0,-0.010]){ cube([8,8,thick+0.020]); } }
// BLOCK 1 $fn = 100*1; root = 7; hole = 3; deep = 15; thick = sqrt(pow(hole/2,2)+pow(hole/2,2)); // BLOCK 2 difference(){ translate([-root/2,root/2,0]){ cylinder(r=root/2+1.200,h=thick); } translate([-root/2,root/2,-0.010]){ cylinder(r=root/2,h=thick+02); } translate([-25,-50+root/10,-0.010]){ cube([50,50,thick+0.020]); } } // BLOCK 3 difference(){ translate([0,-deep+root/2,0]){ cube([thick,deep,thick]); } for(i=[0:10]){ translate([8/1.400 +thick/2,0-i*thick,thick/2]){ rotate([0,0,45]){ cube([8,8,thick+0.020],center=true); } } translate([-8/1.400+thick/2,-thick/2-i*thick,thick/2]){ rotate([0,0,45]){ cube([8,8,thick+0.020],center=true); } } } translate([thick/2,0,-0.010]){ cube([8,8,thick+0.020]); } }
cac5933f-8a80-4e86-8a00-6c5047e667f6
// BLOCK 1 unit = 25.500; $fn=36; height_in_units = 1.750; tube_outer_diameter = 3; tube_thickness_units = 0.125; cap_thickness_in_units = 0.100; cap_overhang_units = 0.250; sphere_offset = 0; height = height_in_units*unit; tube_outer_radius = unit * tube_outer_diameter/2; tube_id = tube_outer_radius - tube_thickness_units * unit; cap_overhang = unit * cap_overhang_units; cap_thickness = cap_thickness_in_units * unit; // BLOCK 2 difference() { union() { translate([0,0,-height/2]) linear_extrude(height) difference() { circle(tube_outer_radius); circle(tube_id); }; translate([0,0,-height/2]) linear_extrude(cap_thickness) difference() { circle(tube_outer_radius+cap_overhang); circle(tube_id); }; } translate([0,-tube_outer_radius*1.500,-height/2]) cube([tube_outer_radius*2, tube_outer_radius*3, height*2]); translate([0,0, sphere_offset-height/2-tube_outer_radius-2*cap_thickness]) sphere(tube_outer_radius*1.500); pegs(); } rotate([0,0,180]) pegs(); // BLOCK 3 module pegs() { translate([0, tube_outer_radius, -height/2+cap_thickness]) rotate([-90,45,0]) cube([cap_thickness/sqrt(2), cap_thickness/sqrt(2), cap_overhang]); translate([0, tube_id, -height/2+cap_thickness]) rotate([0,0,45]) cube([(tube_outer_radius-tube_id)/sqrt(2), (tube_outer_radius-tube_id)/sqrt(2), height-cap_thickness]); }
// BLOCK 1 unit = 25.500; $fn=36; height_in_units = 1.750; tube_outer_diameter = 3; tube_thickness_units = 0.125; cap_thickness_in_units = 0.100; cap_overhang_units = 0.250; sphere_offset = 0; height = height_in_units*unit; tube_outer_radius = unit * tube_outer_diameter/2; tube_id = tube_outer_radius - tube_thickness_units * unit; cap_overhang = unit * cap_overhang_units; cap_thickness = cap_thickness_in_units * unit; // BLOCK 2 difference() { union() { translate([0,0,-height/2]) linear_extrude(height) difference() { circle(tube_outer_radius); circle(tube_id); }; translate([0,0,-height/2]) linear_extrude(cap_thickness) difference() { circle(tube_outer_radius+cap_overhang); circle(tube_id); }; } translate([0,-tube_outer_radius*1.500,-height/2]) cube([tube_outer_radius*2, tube_outer_radius*3, height*2]); translate([0,0, sphere_offset-height/2-tube_outer_radius-2*cap_thickness]) sphere(tube_outer_radius*1.500); pegs(); } rotate([0,0,180]) pegs(); // BLOCK 3 module pegs() { translate([0, tube_outer_radius, -height/2+cap_thickness]) rotate([-90,45,0]) cube([cap_thickness/sqrt(2), cap_thickness/sqrt(2), cap_overhang]); translate([0, tube_id, -height/2+cap_thickness]) rotate([0,0,45]) cube([(tube_outer_radius-tube_id)/sqrt(2), (tube_outer_radius-tube_id)/sqrt(2), height-cap_thickness]); }
423fcd0e-69f5-4c08-819f-d9fcc7d253e7
// BLOCK 1 $fn=100; corner_radius=3; thickness=4.100; width=16; length=16; boring_dia=5.500; border=3.600; height=12.100; total_length=62; gap_length=total_length-2*length; a=gap_length/2; h=height-thickness; radius=(a*a+h*h)/(2*h); // BLOCK 2 module ende(){ difference(){ union(){ translate([width/2-corner_radius,corner_radius,thickness/2]){ cylinder(thickness,corner_radius,corner_radius,true); } translate([-(width/2-corner_radius),corner_radius,thickness/2]){ cylinder(thickness,corner_radius,corner_radius,true); } translate([0,corner_radius,thickness/2]) cube([width-2*corner_radius,2*corner_radius,thickness],true); translate([0,(length+corner_radius)/2,thickness/2]){ cube([width,length-corner_radius,thickness],true); } }; translate([0,border+boring_dia/2,0]) cylinder(thickness+5,boring_dia/2,boring_dia/2,true); } } // BLOCK 3 module mitte(){ intersection(){ translate([-gap_length,-gap_length,0]) cube([total_length,total_length,total_length]); translate([0,0,-radius+h]) rotate([90,0,0]) difference(){ cylinder(width,radius+thickness,radius+thickness,true); cylinder(width+5,radius,radius,true); } } } translate([0,length+gap_length/2,0]) rotate([0,0,90]) mitte(); ende(); translate([0,total_length,0]){ rotate([0,0,180]){ ende(); } }
// BLOCK 1 $fn=100; corner_radius=3; thickness=4.100; width=16; length=16; boring_dia=5.500; border=3.600; height=12.100; total_length=62; gap_length=total_length-2*length; a=gap_length/2; h=height-thickness; radius=(a*a+h*h)/(2*h); // BLOCK 2 module ende(){ difference(){ union(){ translate([width/2-corner_radius,corner_radius,thickness/2]){ cylinder(thickness,corner_radius,corner_radius,true); } translate([-(width/2-corner_radius),corner_radius,thickness/2]){ cylinder(thickness,corner_radius,corner_radius,true); } translate([0,corner_radius,thickness/2]) cube([width-2*corner_radius,2*corner_radius,thickness],true); translate([0,(length+corner_radius)/2,thickness/2]){ cube([width,length-corner_radius,thickness],true); } }; translate([0,border+boring_dia/2,0]) cylinder(thickness+5,boring_dia/2,boring_dia/2,true); } } // BLOCK 3 module mitte(){ intersection(){ translate([-gap_length,-gap_length,0]) cube([total_length,total_length,total_length]); translate([0,0,-radius+h]) rotate([90,0,0]) difference(){ cylinder(width,radius+thickness,radius+thickness,true); cylinder(width+5,radius,radius,true); } } } translate([0,length+gap_length/2,0]) rotate([0,0,90]) mitte(); ende(); translate([0,total_length,0]){ rotate([0,0,180]){ ende(); } }
ac1722fd-2895-48fd-b066-22fe3e726363
// BLOCK 1 $fn = $preview ? 15 : 90; sizeA = 15; sizeB = 15; thickness = 0.860; height = 0.800; length = 50; holeDiameter = 2; holeSpace = 11; cutCorner = true; supportingCorner = false; cornerHoleDiameter = 3; if (cutCorner) { // BLOCK 2 difference() { _profileWithHoles(); _cornerCube(); translate([0, 0, height]) { cube([sizeA + thickness, sizeA + thickness, sizeB], center = false); } } } else { _profileWithHoles(); } if (supportingCorner) { // BLOCK 3 difference() { translate( [(sizeA * 2) + (2 * thickness), (sizeA * 2) + (2 * thickness), 0] ) { rotate(a = [0, 0, 180]) { difference() { cube( [sizeA + thickness, sizeA + thickness, height], center = false ); _cornerCube(); } } } holePosition = sizeA + (2 * thickness) + (sizeA / 3.500); translate([holePosition, holePosition, -1]) { cylinder( h = height + 2, d1 = cornerHoleDiameter, d2 = cornerHoleDiameter, center=false ); } } } // BLOCK 4 module _profileWithHoles() { difference() { _profile(); _holes(); translate([sizeA + (2 * thickness), 0, 0]) { rotate(a = [0, 0, 90]) { _holes(); } } } } // BLOCK 5 module _holes() { holesStartAt = (sizeA + (2 * thickness) + (sizeA / 1.500)); holeWithSpace = holeSpace + holeDiameter; holes = floor(((length + holeSpace) - holesStartAt) / holeWithSpace) - 1; for (i = [0 : holes]) { translate([ holesStartAt + (holeWithSpace * i), (sizeA + (2 * thickness)) / 2, -1 ]) { cylinder( h=height + 2, d1=holeDiameter, d2=holeDiameter, center=false ); } } } // BLOCK 6 module _profile() { difference() { union() { cube( [length, sizeA + (2 * thickness), height + (sizeB / 2)], center = false ); cube( [sizeA + (2 * thickness), length, height + (sizeB / 2)], center = false ); } union() { translate([thickness, thickness, height]) { cube( [length + 1, sizeA, sizeB], center = false ); } translate([thickness, thickness, height]) { cube( [sizeA, length + 1, sizeB], center = false ); } } } } // BLOCK 7 module _cornerCube() { rotate(a = [0, 0, 45]) { cube(sqrt(pow(sizeA + thickness, 2) * 2), center = true); } }
// BLOCK 1 $fn = $preview ? 15 : 90; sizeA = 15; sizeB = 15; thickness = 0.860; height = 0.800; length = 50; holeDiameter = 2; holeSpace = 11; cutCorner = true; supportingCorner = false; cornerHoleDiameter = 3; if (cutCorner) { // BLOCK 2 difference() { _profileWithHoles(); _cornerCube(); translate([0, 0, height]) { cube([sizeA + thickness, sizeA + thickness, sizeB], center = false); } } } else { _profileWithHoles(); } if (supportingCorner) { // BLOCK 3 difference() { translate( [(sizeA * 2) + (2 * thickness), (sizeA * 2) + (2 * thickness), 0] ) { rotate(a = [0, 0, 180]) { difference() { cube( [sizeA + thickness, sizeA + thickness, height], center = false ); _cornerCube(); } } } holePosition = sizeA + (2 * thickness) + (sizeA / 3.500); translate([holePosition, holePosition, -1]) { cylinder( h = height + 2, d1 = cornerHoleDiameter, d2 = cornerHoleDiameter, center=false ); } } } // BLOCK 4 module _profileWithHoles() { difference() { _profile(); _holes(); translate([sizeA + (2 * thickness), 0, 0]) { rotate(a = [0, 0, 90]) { _holes(); } } } } // BLOCK 5 module _holes() { holesStartAt = (sizeA + (2 * thickness) + (sizeA / 1.500)); holeWithSpace = holeSpace + holeDiameter; holes = floor(((length + holeSpace) - holesStartAt) / holeWithSpace) - 1; for (i = [0 : holes]) { translate([ holesStartAt + (holeWithSpace * i), (sizeA + (2 * thickness)) / 2, -1 ]) { cylinder( h=height + 2, d1=holeDiameter, d2=holeDiameter, center=false ); } } } // BLOCK 6 module _profile() { difference() { union() { cube( [length, sizeA + (2 * thickness), height + (sizeB / 2)], center = false ); cube( [sizeA + (2 * thickness), length, height + (sizeB / 2)], center = false ); } union() { translate([thickness, thickness, height]) { cube( [length + 1, sizeA, sizeB], center = false ); } translate([thickness, thickness, height]) { cube( [sizeA, length + 1, sizeB], center = false ); } } } } // BLOCK 7 module _cornerCube() { rotate(a = [0, 0, 45]) { cube(sqrt(pow(sizeA + thickness, 2) * 2), center = true); } }
38778dd7-4a9c-4c89-842b-edad7657cfb7
// BLOCK 1 height = 50; top_diameter = 25; base_diameter = 35; topring_offset = 2; botring_offset = 2.500; end_thickness = 8; cuts = 4; cut_width = 7; fillet = "true"; top_radius = top_diameter/2; base_radius = base_diameter/2; // BLOCK 2 module bowlStand2() { difference() { difference() { cylinder(h = height, r1 = base_radius+botring_offset, r2 = top_radius+topring_offset, center = true); scale([1,1,1.010]) cylinder(h = height, r1 = base_radius, r2 = top_radius, center = true); } union() { for (i = [0:cuts]) { rotate([0,0,i*360/cuts]) RoundedSquareCut(); } } } } // BLOCK 3 module RoundedSquareCut() { cut_height = (height - (end_thickness + cut_width/4)); rotate([90,0,0]) linear_extrude((base_radius+top_radius)*2) if (fillet == "true") { offset(cut_width/4) square([cut_width,cut_height], center = true); } else { square([cut_width,cut_height], center = true); } } bowlStand2();
// BLOCK 1 height = 50; top_diameter = 25; base_diameter = 35; topring_offset = 2; botring_offset = 2.500; end_thickness = 8; cuts = 4; cut_width = 7; fillet = "true"; top_radius = top_diameter/2; base_radius = base_diameter/2; // BLOCK 2 module bowlStand2() { difference() { difference() { cylinder(h = height, r1 = base_radius+botring_offset, r2 = top_radius+topring_offset, center = true); scale([1,1,1.010]) cylinder(h = height, r1 = base_radius, r2 = top_radius, center = true); } union() { for (i = [0:cuts]) { rotate([0,0,i*360/cuts]) RoundedSquareCut(); } } } } // BLOCK 3 module RoundedSquareCut() { cut_height = (height - (end_thickness + cut_width/4)); rotate([90,0,0]) linear_extrude((base_radius+top_radius)*2) if (fillet == "true") { offset(cut_width/4) square([cut_width,cut_height], center = true); } else { square([cut_width,cut_height], center = true); } } bowlStand2();
857d7b40-f4a1-49c8-9a8a-995a07be3642
// BLOCK 1 L=30; W=20; D=5; cl=0.400; ep=3; $fn=100; difference() // BLOCK 2 { union() { cube([L,W,ep]); translate([L,0,(D+4)/2]) rotate([-90,0,0]) cylinder(d=D+4,h=W); } translate([L-D,W/3,-1]) cube([L,W/3,20]); translate([L,0,(D+4)/2]) rotate([-90,0,0]) cylinder(d=D,h=W+4); translate([10,W/2,-1]) cylinder(d=4,h=W+4); } clw=0.600; translate([D+L,0,0]) difference() // BLOCK 3 { cube([L,W,ep]); translate([L-10,W/2,-1]) cylinder(d=4,h=W+4); } // BLOCK 4 translate([L,0,(D+4)/2]) rotate([-90,0,0]) cylinder(d=D-2*cl,h=W); // BLOCK 5 translate([L,W/3+clw,(D+4)/2]) rotate([-90,0,0]) cylinder(d=D+4,h=W/3-2*clw); // BLOCK 6 translate([L-cl,W/3+clw,0]) cube([D+3,W/3-2*clw,ep]);
// BLOCK 1 L=30; W=20; D=5; cl=0.400; ep=3; $fn=100; difference() // BLOCK 2 { union() { cube([L,W,ep]); translate([L,0,(D+4)/2]) rotate([-90,0,0]) cylinder(d=D+4,h=W); } translate([L-D,W/3,-1]) cube([L,W/3,20]); translate([L,0,(D+4)/2]) rotate([-90,0,0]) cylinder(d=D,h=W+4); translate([10,W/2,-1]) cylinder(d=4,h=W+4); } clw=0.600; translate([D+L,0,0]) difference() // BLOCK 3 { cube([L,W,ep]); translate([L-10,W/2,-1]) cylinder(d=4,h=W+4); } // BLOCK 4 translate([L,0,(D+4)/2]) rotate([-90,0,0]) cylinder(d=D-2*cl,h=W); // BLOCK 5 translate([L,W/3+clw,(D+4)/2]) rotate([-90,0,0]) cylinder(d=D+4,h=W/3-2*clw); // BLOCK 6 translate([L-cl,W/3+clw,0]) cube([D+3,W/3-2*clw,ep]);
86b09b78-3e67-4617-905b-1df601efc88b
// BLOCK 1 w_oc = 18; wrenches = 10; largest_wrench_neck_thickness = 8; largest_wrench_box_end_od = 40; thinnest_wrench_neck_thickness = 4.500; smallest_wrench_box_end_od = 12; wrench_size_step = 1; mount_diameter = 6.500; mount_oc = 26.500; mount_slew = 1; mount_advance = 1; $fn = 90; first_mount_candidate = ((mount_diameter - thinnest_wrench_neck_thickness) / wrench_size_step) + 1 + mount_advance; first_mount_location = (first_mount_candidate * w_oc) - (w_oc / 2); y_slope = (largest_wrench_box_end_od - smallest_wrench_box_end_od) / (wrenches * w_oc); rotate([-90, 0, 0]) // BLOCK 2 difference() { hull() { intersection() { union() { hull() { rotate([0, 90, 0]) translate([-smallest_wrench_box_end_od/ 2, -smallest_wrench_box_end_od / 2, 0]) cylinder(d = smallest_wrench_box_end_od, h = 0.010); rotate([0, 90, 0]) translate([-largest_wrench_box_end_od / 2, -largest_wrench_box_end_od / 2, (wrenches * w_oc) - 0.010]) cylinder(smallest_wrench_box_end_od, d = largest_wrench_box_end_od, h = 0.010); } translate([0, 0, -mount_oc / 2]) hull() { rotate([0, 90, 0]) translate([-smallest_wrench_box_end_od/ 2, -smallest_wrench_box_end_od / 2, 0]) cylinder(d = smallest_wrench_box_end_od, h = 0.010); rotate([0, 90, 0]) translate([-largest_wrench_box_end_od / 2, -largest_wrench_box_end_od / 2, (wrenches * w_oc) - 0.010]) cylinder(smallest_wrench_box_end_od, d = largest_wrench_box_end_od, h = 0.010); } translate([0, 0, -(mount_oc) - 5]) cube([wrenches * w_oc, 2, mount_oc + 10]); } translate([0, -largest_wrench_box_end_od, -mount_oc- 5]) cube([wrenches * w_oc, 2 + largest_wrench_box_end_od, mount_oc + 10]); } } for ( i = [1 : wrenches]) { echo ("Calculating Wrench Position", i); this_step = min(thinnest_wrench_neck_thickness + ((i - 1) * wrench_size_step), largest_wrench_neck_thickness); echo (" width: ", this_step); if (i == first_mount_candidate) { echo(" first Mount Location", first_mount_location); translate([(i * w_oc) - (w_oc / 2), -largest_wrench_box_end_od / 2, 0]) rotate([-90, 0, 0]) cylinder(d = mount_diameter, h = largest_wrench_box_end_od + 5); translate([(i * w_oc) - (w_oc / 2), -largest_wrench_box_end_od / 2, -mount_oc]) rotate([-90, 0, 0]) cylinder(d = mount_diameter, h = largest_wrench_box_end_od + 5); } if (i > first_mount_candidate) { slot_center = (i * w_oc) - (w_oc / 2); left_candidate = slot_center - (this_step / 2) + ((mount_diameter - mount_slew) / 2); right_candidate = slot_center + (this_step / 2) - ((mount_diameter + mount_slew) / 2); for (mc = [first_mount_location + mount_oc : mount_oc : right_candidate]) { if (mc >= left_candidate && mc <= right_candidate) { echo(" Mount Location Confirmed: ", mc); translate([(i * w_oc) - (w_oc / 2), -largest_wrench_box_end_od / 2, 0]) rotate([-90, 0, 0]) cylinder(d = mount_diameter, h = largest_wrench_box_end_od + 5); translate([(i * w_oc) - (w_oc / 2), -largest_wrench_box_end_od / 2, -mount_oc]) rotate([-90, 0, 0]) cylinder(d = mount_diameter, h = largest_wrench_box_end_od + 5); } } } current_percentage = ((i * w_oc) - (w_oc / 2) - (this_step / 2)) / ((wrenches * w_oc) + (2 * largest_wrench_neck_thickness)); step_y_offset = ((largest_wrench_box_end_od - smallest_wrench_box_end_od) * current_percentage); x_center = (i * w_oc - (w_oc / 2)); x_left = x_center - (this_step / 2); x_right = x_center + (this_step / 2); mirror([0, 1, 0]) { difference() { translate([x_left - 2, (y_slope * (x_left - 2)) + smallest_wrench_box_end_od - 2, -mount_oc - 5]) cube([2, 3, largest_wrench_box_end_od]); translate([x_left - 2, (y_slope * (x_left - 2)) + smallest_wrench_box_end_od - 2, -mount_oc - 5]) cylinder(d = 4, h = largest_wrench_box_end_od); } difference() { translate([x_right, (y_slope * (x_right+ 2)) + smallest_wrench_box_end_od - 2, -mount_oc - 5]) cube([2, 3, largest_wrench_box_end_od]); translate([x_right + 2, (y_slope * (x_right+ 2)) + smallest_wrench_box_end_od - 2, -mount_oc - 5]) cylinder(d = 4, h = largest_wrench_box_end_od); } translate([x_left, 0, -mount_oc - 5]) cube([this_step, (y_slope * x_right) + smallest_wrench_box_end_od, largest_wrench_box_end_od]); } } hull() { rotate([0, 90, 0]) translate([-smallest_wrench_box_end_od/ 1.250, -smallest_wrench_box_end_od / 2, 0]) cylinder(d = smallest_wrench_box_end_od, h = 0.010); rotate([0, 90, 0]) translate([-largest_wrench_box_end_od / 2, -largest_wrench_box_end_od / 2, (wrenches * w_oc) - 0.010]) cylinder(d = largest_wrench_box_end_od, h = 0.010); } }
// BLOCK 1 w_oc = 18; wrenches = 10; largest_wrench_neck_thickness = 8; largest_wrench_box_end_od = 40; thinnest_wrench_neck_thickness = 4.500; smallest_wrench_box_end_od = 12; wrench_size_step = 1; mount_diameter = 6.500; mount_oc = 26.500; mount_slew = 1; mount_advance = 1; $fn = 90; first_mount_candidate = ((mount_diameter - thinnest_wrench_neck_thickness) / wrench_size_step) + 1 + mount_advance; first_mount_location = (first_mount_candidate * w_oc) - (w_oc / 2); y_slope = (largest_wrench_box_end_od - smallest_wrench_box_end_od) / (wrenches * w_oc); rotate([-90, 0, 0]) // BLOCK 2 difference() { hull() { intersection() { union() { hull() { rotate([0, 90, 0]) translate([-smallest_wrench_box_end_od/ 2, -smallest_wrench_box_end_od / 2, 0]) cylinder(d = smallest_wrench_box_end_od, h = 0.010); rotate([0, 90, 0]) translate([-largest_wrench_box_end_od / 2, -largest_wrench_box_end_od / 2, (wrenches * w_oc) - 0.010]) cylinder(smallest_wrench_box_end_od, d = largest_wrench_box_end_od, h = 0.010); } translate([0, 0, -mount_oc / 2]) hull() { rotate([0, 90, 0]) translate([-smallest_wrench_box_end_od/ 2, -smallest_wrench_box_end_od / 2, 0]) cylinder(d = smallest_wrench_box_end_od, h = 0.010); rotate([0, 90, 0]) translate([-largest_wrench_box_end_od / 2, -largest_wrench_box_end_od / 2, (wrenches * w_oc) - 0.010]) cylinder(smallest_wrench_box_end_od, d = largest_wrench_box_end_od, h = 0.010); } translate([0, 0, -(mount_oc) - 5]) cube([wrenches * w_oc, 2, mount_oc + 10]); } translate([0, -largest_wrench_box_end_od, -mount_oc- 5]) cube([wrenches * w_oc, 2 + largest_wrench_box_end_od, mount_oc + 10]); } } for ( i = [1 : wrenches]) { echo ("Calculating Wrench Position", i); this_step = min(thinnest_wrench_neck_thickness + ((i - 1) * wrench_size_step), largest_wrench_neck_thickness); echo (" width: ", this_step); if (i == first_mount_candidate) { echo(" first Mount Location", first_mount_location); translate([(i * w_oc) - (w_oc / 2), -largest_wrench_box_end_od / 2, 0]) rotate([-90, 0, 0]) cylinder(d = mount_diameter, h = largest_wrench_box_end_od + 5); translate([(i * w_oc) - (w_oc / 2), -largest_wrench_box_end_od / 2, -mount_oc]) rotate([-90, 0, 0]) cylinder(d = mount_diameter, h = largest_wrench_box_end_od + 5); } if (i > first_mount_candidate) { slot_center = (i * w_oc) - (w_oc / 2); left_candidate = slot_center - (this_step / 2) + ((mount_diameter - mount_slew) / 2); right_candidate = slot_center + (this_step / 2) - ((mount_diameter + mount_slew) / 2); for (mc = [first_mount_location + mount_oc : mount_oc : right_candidate]) { if (mc >= left_candidate && mc <= right_candidate) { echo(" Mount Location Confirmed: ", mc); translate([(i * w_oc) - (w_oc / 2), -largest_wrench_box_end_od / 2, 0]) rotate([-90, 0, 0]) cylinder(d = mount_diameter, h = largest_wrench_box_end_od + 5); translate([(i * w_oc) - (w_oc / 2), -largest_wrench_box_end_od / 2, -mount_oc]) rotate([-90, 0, 0]) cylinder(d = mount_diameter, h = largest_wrench_box_end_od + 5); } } } current_percentage = ((i * w_oc) - (w_oc / 2) - (this_step / 2)) / ((wrenches * w_oc) + (2 * largest_wrench_neck_thickness)); step_y_offset = ((largest_wrench_box_end_od - smallest_wrench_box_end_od) * current_percentage); x_center = (i * w_oc - (w_oc / 2)); x_left = x_center - (this_step / 2); x_right = x_center + (this_step / 2); mirror([0, 1, 0]) { difference() { translate([x_left - 2, (y_slope * (x_left - 2)) + smallest_wrench_box_end_od - 2, -mount_oc - 5]) cube([2, 3, largest_wrench_box_end_od]); translate([x_left - 2, (y_slope * (x_left - 2)) + smallest_wrench_box_end_od - 2, -mount_oc - 5]) cylinder(d = 4, h = largest_wrench_box_end_od); } difference() { translate([x_right, (y_slope * (x_right+ 2)) + smallest_wrench_box_end_od - 2, -mount_oc - 5]) cube([2, 3, largest_wrench_box_end_od]); translate([x_right + 2, (y_slope * (x_right+ 2)) + smallest_wrench_box_end_od - 2, -mount_oc - 5]) cylinder(d = 4, h = largest_wrench_box_end_od); } translate([x_left, 0, -mount_oc - 5]) cube([this_step, (y_slope * x_right) + smallest_wrench_box_end_od, largest_wrench_box_end_od]); } } hull() { rotate([0, 90, 0]) translate([-smallest_wrench_box_end_od/ 1.250, -smallest_wrench_box_end_od / 2, 0]) cylinder(d = smallest_wrench_box_end_od, h = 0.010); rotate([0, 90, 0]) translate([-largest_wrench_box_end_od / 2, -largest_wrench_box_end_od / 2, (wrenches * w_oc) - 0.010]) cylinder(d = largest_wrench_box_end_od, h = 0.010); } }
80dd2be5-778c-472b-a40d-59cf27e35ddc
// BLOCK 1 $fn=123; // BLOCK 2 difference() { union() { cylinder(r=20/2+5, h=15); translate([-20/2-10+1, -20/2-5+2, 0]) cube([10+2, 5+2*20/2+5-4, 15]); hull() { translate([-20/2-10+1, -3/2, 0]) cube([1, 3, 15]); translate([-20/2-10-15/2, -3/2, 15/2]) rotate([-90,0,0]) cylinder(r=15/2, h=3); } translate([0,-3/2-3.500/2-3.250,0]) hull() { translate([-20/2-10+1, -3.500/2, 0]) cube([1, 3.500, 15]); translate([-20/2-10-15/2, -3.500/2, 15/2]) rotate([-90,0,0]) cylinder(r=15/2, h=3.500); } translate([0,+3/2+3.500/2+3.250,0]) hull() { translate([-20/2-10+1, -3.500/2, 0]) cube([1, 3.500, 15]); translate([-20/2-10-15/2, -3.500/2, 15/2]) rotate([-90,0,0]) cylinder(r=15/2, h=3.500); } } translate([-20/2-10+1, -20/2-5+2, 15/2-0.010]) rotate([0,0,45]) cube([1,1,15.030], center=true); translate([-20/2-10+1, +20/2+5-2, 15/2-0.010]) rotate([0,0,45]) cube([1,1,15.030], center=true); translate([-20/2-10-15/2, -20/2, 15/2]) rotate([-90,0,0]) cylinder(r=5.200/2, h=20); translate([0,0,-0.010]) cylinder(r=20/2, h=15.020); translate([-3,0,0]) rotate([0,0,-45]) translate([0,0,-0.010]) cube([20/2+5+5, 20/2+5+5, 15.020]); translate([0,0,15/2-5/2]) difference() { cylinder(r=20/2+5+2.150, h=5); translate([0,0,-0.010]) cylinder(r=20/2+5, h=5+0.020); } translate([20/2-sqrt(2),5+20/2,15/2]) rotate([90,0,0]) cylinder(r=3, h=5+2*20/2+5, $fn=5); }
// BLOCK 1 $fn=123; // BLOCK 2 difference() { union() { cylinder(r=20/2+5, h=15); translate([-20/2-10+1, -20/2-5+2, 0]) cube([10+2, 5+2*20/2+5-4, 15]); hull() { translate([-20/2-10+1, -3/2, 0]) cube([1, 3, 15]); translate([-20/2-10-15/2, -3/2, 15/2]) rotate([-90,0,0]) cylinder(r=15/2, h=3); } translate([0,-3/2-3.500/2-3.250,0]) hull() { translate([-20/2-10+1, -3.500/2, 0]) cube([1, 3.500, 15]); translate([-20/2-10-15/2, -3.500/2, 15/2]) rotate([-90,0,0]) cylinder(r=15/2, h=3.500); } translate([0,+3/2+3.500/2+3.250,0]) hull() { translate([-20/2-10+1, -3.500/2, 0]) cube([1, 3.500, 15]); translate([-20/2-10-15/2, -3.500/2, 15/2]) rotate([-90,0,0]) cylinder(r=15/2, h=3.500); } } translate([-20/2-10+1, -20/2-5+2, 15/2-0.010]) rotate([0,0,45]) cube([1,1,15.030], center=true); translate([-20/2-10+1, +20/2+5-2, 15/2-0.010]) rotate([0,0,45]) cube([1,1,15.030], center=true); translate([-20/2-10-15/2, -20/2, 15/2]) rotate([-90,0,0]) cylinder(r=5.200/2, h=20); translate([0,0,-0.010]) cylinder(r=20/2, h=15.020); translate([-3,0,0]) rotate([0,0,-45]) translate([0,0,-0.010]) cube([20/2+5+5, 20/2+5+5, 15.020]); translate([0,0,15/2-5/2]) difference() { cylinder(r=20/2+5+2.150, h=5); translate([0,0,-0.010]) cylinder(r=20/2+5, h=5+0.020); } translate([20/2-sqrt(2),5+20/2,15/2]) rotate([90,0,0]) cylinder(r=3, h=5+2*20/2+5, $fn=5); }
71e4f31e-f927-4d54-85ee-53495df4f17a
// BLOCK 1 goldenratio = 1.618; joinfactor = 0.125; gBarIR = 5/16/2*25.400; gBarOR = gBarIR*goldenratio; gBarLength = 22; gBallRadius = 20/2; gMountLength = gBallRadius*2*goldenratio; gDoubleMountLength = gBallRadius*2*goldenratio*goldenratio; rodmountedsocket_double(gBarIR*1.080, gBarOR, gDoubleMountLength, gBallRadius); // BLOCK 2 module tube(rodIR, rodOR, coverlength) { difference() { cylinder(r=rodOR, h=coverlength, center=true); cylinder(r=rodIR, h=coverlength+2*joinfactor, center=true); } } // BLOCK 3 module rodballcap(rodIR, rodOR,coverlength, ballRadius) { difference() { union() { sphere(r=ballRadius); cylinder(r=rodOR, h=coverlength); } cylinder(r=rodIR, h=coverlength+joinfactor); } } // BLOCK 4 module singlesocket(ballRadius, spacer) { cylinderRadius = ballRadius * goldenratio; coverage = 1/goldenratio; thickness = ballRadius *2* coverage; balloffset = ballRadius*2; translate([0, spacer/2, 0]) cube(size=[cylinderRadius*2, spacer, spacer*2], center=true); difference() { union() { translate([0, spacer, 0]) cylinder(r=cylinderRadius, h=thickness, center=true); } translate([0, spacer+ballRadius, 0]) sphere(r=ballRadius); translate([0, -cylinderRadius/2, 0]) cube(size=[cylinderRadius*2, cylinderRadius+joinfactor, thickness+joinfactor*2], center=true); } } // BLOCK 5 module doublesocket(ballRadius, spacer) { discRadius = ballRadius*goldenratio*goldenratio; socketangle = 90; thickness = ballRadius *2/goldenratio; balloffset = ballRadius*2; difference() { union() { translate([0, spacer, 0]) cylinder(r=discRadius, h=thickness, center=true); translate([0,spacer/2, 0]) cube(size=[discRadius*2, spacer, thickness], center=true); } translate([0, spacer, 0]) { rotate([0, 0, 45]) translate([discRadius-(ballRadius/goldenratio), 0, 0]) sphere(r=ballRadius); rotate([0, 0, 90+45]) translate([discRadius-(ballRadius/goldenratio), 0, 0]) sphere(r=ballRadius); } translate([0, -discRadius/2, 0]) cube(size=[(discRadius*2)+(joinfactor*2), discRadius+joinfactor, thickness+joinfactor*2], center=true); } } // BLOCK 6 module multisocket(sockets, ballRadius, spacer) { discRadius = ballRadius * goldenratio*goldenratio; initialangle = 90/ceil(((sockets/2)+1)); internalangle = (180 - initialangle*2)/sockets-1; coverage = 1/goldenratio; thickness = ballRadius *2* coverage; balloffset = ballRadius*2; difference() { union() { translate([0, spacer, 0]) cylinder(r=discRadius, h=thickness, center=true); translate([0,spacer/2, 0]) cube(size=[discRadius*2, spacer, thickness], center=true); } translate([0,spacer,0]) { for(sphere=[0:sockets-1]) { if ((sphere != 0) && (sphere != sockets-1)) { rotate([0, 0, initialangle +(sphere*internalangle)]) translate([discRadius-(ballRadius/goldenratio), 0, 0]) sphere(r=ballRadius); } if (sphere == 0) { rotate([0, 0, initialangle]) translate([discRadius-(ballRadius/goldenratio), 0, 0]) sphere(r=ballRadius); } if ((sphere == sockets-1) && (sphere != 0)) { rotate([0, 0, 180-initialangle]) translate([discRadius-(ballRadius/goldenratio), 0, 0]) sphere(r=ballRadius); } } } translate([0, -discRadius/2, 0]) cube(size=[discRadius*2, discRadius+joinfactor, thickness+joinfactor*2], center=true); } } // BLOCK 7 module rodmountedsocket(rodIR, rodOR, coverlength, ballRadius) { difference() { union() { rotate([0, 90, 0]) cylinder(r= rodOR, h=coverlength, center=true); singlesocket(ballRadius, rodOR); } rotate([0, 90, 0]) cylinder(r= rodIR, h=coverlength+2*joinfactor, center=true); } } // BLOCK 8 module rodmountedsocket_double(rodIR, rodOR, coverlength, ballRadius) { difference() { union() { rotate([0, 90, 0]) cylinder(r= rodOR, h=coverlength, center=true); doublesocket(ballRadius, rodIR/goldenratio); } rotate([0, 90, 0]) cylinder(r= rodIR, h=coverlength+2*joinfactor, center=true); } } // BLOCK 9 module rodmountedsocket_elbow(rodIR, rodOR, coverlength, ballRadius) { difference() { union() { rotate([0, 90, 0]) cylinder(r= rodOR, h=coverlength, center=true); singlesocket(ballRadius, rodOR); rotate([90, 0, 0]) singlesocket(ballRadius, rodOR); } rotate([0, 90, 0]) cylinder(r= rodIR, h=coverlength+2*joinfactor, center=true); } }
// BLOCK 1 goldenratio = 1.618; joinfactor = 0.125; gBarIR = 5/16/2*25.400; gBarOR = gBarIR*goldenratio; gBarLength = 22; gBallRadius = 20/2; gMountLength = gBallRadius*2*goldenratio; gDoubleMountLength = gBallRadius*2*goldenratio*goldenratio; rodmountedsocket_double(gBarIR*1.080, gBarOR, gDoubleMountLength, gBallRadius); // BLOCK 2 module tube(rodIR, rodOR, coverlength) { difference() { cylinder(r=rodOR, h=coverlength, center=true); cylinder(r=rodIR, h=coverlength+2*joinfactor, center=true); } } // BLOCK 3 module rodballcap(rodIR, rodOR,coverlength, ballRadius) { difference() { union() { sphere(r=ballRadius); cylinder(r=rodOR, h=coverlength); } cylinder(r=rodIR, h=coverlength+joinfactor); } } // BLOCK 4 module singlesocket(ballRadius, spacer) { cylinderRadius = ballRadius * goldenratio; coverage = 1/goldenratio; thickness = ballRadius *2* coverage; balloffset = ballRadius*2; translate([0, spacer/2, 0]) cube(size=[cylinderRadius*2, spacer, spacer*2], center=true); difference() { union() { translate([0, spacer, 0]) cylinder(r=cylinderRadius, h=thickness, center=true); } translate([0, spacer+ballRadius, 0]) sphere(r=ballRadius); translate([0, -cylinderRadius/2, 0]) cube(size=[cylinderRadius*2, cylinderRadius+joinfactor, thickness+joinfactor*2], center=true); } } // BLOCK 5 module doublesocket(ballRadius, spacer) { discRadius = ballRadius*goldenratio*goldenratio; socketangle = 90; thickness = ballRadius *2/goldenratio; balloffset = ballRadius*2; difference() { union() { translate([0, spacer, 0]) cylinder(r=discRadius, h=thickness, center=true); translate([0,spacer/2, 0]) cube(size=[discRadius*2, spacer, thickness], center=true); } translate([0, spacer, 0]) { rotate([0, 0, 45]) translate([discRadius-(ballRadius/goldenratio), 0, 0]) sphere(r=ballRadius); rotate([0, 0, 90+45]) translate([discRadius-(ballRadius/goldenratio), 0, 0]) sphere(r=ballRadius); } translate([0, -discRadius/2, 0]) cube(size=[(discRadius*2)+(joinfactor*2), discRadius+joinfactor, thickness+joinfactor*2], center=true); } } // BLOCK 6 module multisocket(sockets, ballRadius, spacer) { discRadius = ballRadius * goldenratio*goldenratio; initialangle = 90/ceil(((sockets/2)+1)); internalangle = (180 - initialangle*2)/sockets-1; coverage = 1/goldenratio; thickness = ballRadius *2* coverage; balloffset = ballRadius*2; difference() { union() { translate([0, spacer, 0]) cylinder(r=discRadius, h=thickness, center=true); translate([0,spacer/2, 0]) cube(size=[discRadius*2, spacer, thickness], center=true); } translate([0,spacer,0]) { for(sphere=[0:sockets-1]) { if ((sphere != 0) && (sphere != sockets-1)) { rotate([0, 0, initialangle +(sphere*internalangle)]) translate([discRadius-(ballRadius/goldenratio), 0, 0]) sphere(r=ballRadius); } if (sphere == 0) { rotate([0, 0, initialangle]) translate([discRadius-(ballRadius/goldenratio), 0, 0]) sphere(r=ballRadius); } if ((sphere == sockets-1) && (sphere != 0)) { rotate([0, 0, 180-initialangle]) translate([discRadius-(ballRadius/goldenratio), 0, 0]) sphere(r=ballRadius); } } } translate([0, -discRadius/2, 0]) cube(size=[discRadius*2, discRadius+joinfactor, thickness+joinfactor*2], center=true); } } // BLOCK 7 module rodmountedsocket(rodIR, rodOR, coverlength, ballRadius) { difference() { union() { rotate([0, 90, 0]) cylinder(r= rodOR, h=coverlength, center=true); singlesocket(ballRadius, rodOR); } rotate([0, 90, 0]) cylinder(r= rodIR, h=coverlength+2*joinfactor, center=true); } } // BLOCK 8 module rodmountedsocket_double(rodIR, rodOR, coverlength, ballRadius) { difference() { union() { rotate([0, 90, 0]) cylinder(r= rodOR, h=coverlength, center=true); doublesocket(ballRadius, rodIR/goldenratio); } rotate([0, 90, 0]) cylinder(r= rodIR, h=coverlength+2*joinfactor, center=true); } } // BLOCK 9 module rodmountedsocket_elbow(rodIR, rodOR, coverlength, ballRadius) { difference() { union() { rotate([0, 90, 0]) cylinder(r= rodOR, h=coverlength, center=true); singlesocket(ballRadius, rodOR); rotate([90, 0, 0]) singlesocket(ballRadius, rodOR); } rotate([0, 90, 0]) cylinder(r= rodIR, h=coverlength+2*joinfactor, center=true); } }
55880d84-a472-4743-95d6-fd062c17c404
// BLOCK 1 segments=2; segment_length = 80; bolt = true; groove = true; chain = false; slot_width = 19.250; slot_height = 10.400; groove_width = 23; groove_height = 3.500; nut_width = 12.750; nut_height = 6; bolt_diameter = 6.900; screw_width = 9; screw_height = 3.300; screw_diameter = 4.500; // BLOCK 2 module tslot_segment(t, slot_length, bolt, groove, chain){ translate([(-slot_length/2)+(slot_length*(t/1.400)), 0, 0]) difference(){ intersection(){ difference(){ union(){ if (groove) { translate([-slot_length/2, -groove_width/2, 0]) cube([slot_length, groove_width,groove_height], 0); translate([-slot_length/2, -slot_width/2, groove_height]) cube([slot_length,slot_width,slot_height-groove_height], 0); } else { translate([-slot_length/2, -slot_width/2, 0]) cube([slot_length,slot_width,slot_height], 0); } } cylinder(h=slot_height + groove_height, d=screw_width, $fn=20); if (bolt) { cylinder(h=nut_height, d=nut_width, $fn=6); } else { cylinder(h=nut_height, d1=nut_width, d2=screw_width, $fn=20); } } scale([1,0.550,1]) cylinder(h=slot_height, d=slot_length, $fn=60); } if (chain) { scale([1,0.550,1]) translate([slot_length*0.960,0,0]) cylinder(h=slot_height, d=slot_length, $fn=60); } } } // BLOCK 3 module tslot(segments=1, slot_length=80, bolt=true, groove=true, chain=false) { for (i =[1:segments]){ tslot_segment(i, slot_length, bolt, groove, chain); } } tslot(segments, segment_length, bolt, groove, chain);
// BLOCK 1 segments=2; segment_length = 80; bolt = true; groove = true; chain = false; slot_width = 19.250; slot_height = 10.400; groove_width = 23; groove_height = 3.500; nut_width = 12.750; nut_height = 6; bolt_diameter = 6.900; screw_width = 9; screw_height = 3.300; screw_diameter = 4.500; // BLOCK 2 module tslot_segment(t, slot_length, bolt, groove, chain){ translate([(-slot_length/2)+(slot_length*(t/1.400)), 0, 0]) difference(){ intersection(){ difference(){ union(){ if (groove) { translate([-slot_length/2, -groove_width/2, 0]) cube([slot_length, groove_width,groove_height], 0); translate([-slot_length/2, -slot_width/2, groove_height]) cube([slot_length,slot_width,slot_height-groove_height], 0); } else { translate([-slot_length/2, -slot_width/2, 0]) cube([slot_length,slot_width,slot_height], 0); } } cylinder(h=slot_height + groove_height, d=screw_width, $fn=20); if (bolt) { cylinder(h=nut_height, d=nut_width, $fn=6); } else { cylinder(h=nut_height, d1=nut_width, d2=screw_width, $fn=20); } } scale([1,0.550,1]) cylinder(h=slot_height, d=slot_length, $fn=60); } if (chain) { scale([1,0.550,1]) translate([slot_length*0.960,0,0]) cylinder(h=slot_height, d=slot_length, $fn=60); } } } // BLOCK 3 module tslot(segments=1, slot_length=80, bolt=true, groove=true, chain=false) { for (i =[1:segments]){ tslot_segment(i, slot_length, bolt, groove, chain); } } tslot(segments, segment_length, bolt, groove, chain);
c54acfd3-734f-44e6-9861-67c8a185a047
// BLOCK 1 pts = [ [-10,-10,0], [10,-10,0], [10,10,0], [-10,10,0], [0,0,sqrt(2)*10], [0,0,-sqrt(2)*10] ]; f = [ [1,0,4], [2,1,4], [3,2,4], [0,3,4], [5,0,1], [5,1,2], [5,2,3], [5,3,0] ]; FN=32; RAD=4; rotate([180-54.731,0,0]) // BLOCK 2 difference() { polyhedron(points=pts, faces=f, convexity=1); rotate([54,0,0]) { cylinder(h=17,r=RAD,center=true, $fn=FN); }; rotate([0,54,0]) { cylinder(h=17,r=RAD,center=true, $fn=FN); }; rotate([-54,0,0]) { cylinder(h=17,r=RAD,center=true, $fn=FN); }; rotate([0,-54,0]) { cylinder(h=17,r=RAD,center=true, $fn=FN); }; };
// BLOCK 1 pts = [ [-10,-10,0], [10,-10,0], [10,10,0], [-10,10,0], [0,0,sqrt(2)*10], [0,0,-sqrt(2)*10] ]; f = [ [1,0,4], [2,1,4], [3,2,4], [0,3,4], [5,0,1], [5,1,2], [5,2,3], [5,3,0] ]; FN=32; RAD=4; rotate([180-54.731,0,0]) // BLOCK 2 difference() { polyhedron(points=pts, faces=f, convexity=1); rotate([54,0,0]) { cylinder(h=17,r=RAD,center=true, $fn=FN); }; rotate([0,54,0]) { cylinder(h=17,r=RAD,center=true, $fn=FN); }; rotate([-54,0,0]) { cylinder(h=17,r=RAD,center=true, $fn=FN); }; rotate([0,-54,0]) { cylinder(h=17,r=RAD,center=true, $fn=FN); }; };
fdf0c817-e5d9-40e8-a10e-f8c969fe77cf
// BLOCK 1 tube_dia = 12; tube_len = 10; clip_len = tube_len; clip_wid = tube_dia; gap_len = 2.400; thickness = 0.800; num_pens = 2; $fn = 256; for (i = [1:num_pens]) { translate([((tube_dia+thickness)*i),0,0]) holder(tube_dia, tube_len, clip_len, clip_wid, gap_len, thickness); } // BLOCK 2 module tube(diameter, thickness, height) { difference() { cylinder(r=thickness + (diameter/2), h=height); translate([0,0,-1]) cylinder(r=(diameter/2), h=height+2); } } // BLOCK 3 module clip(length, width, thickness, gap_length) { union() { cube([width+thickness, thickness, length]); cube([width+thickness, gap_length, thickness]); translate([0,gap_length,0]) cube([width+thickness, thickness, length]); } } // BLOCK 4 module holder(tube_dia, tube_len, clip_len, clip_wid, gap_len, thickness) { tube(tube_dia, thickness, tube_len); translate([(-tube_dia/2)-(thickness/2),clip_wid/2,0]) clip(clip_len, clip_wid, thickness, gap_len); }
// BLOCK 1 tube_dia = 12; tube_len = 10; clip_len = tube_len; clip_wid = tube_dia; gap_len = 2.400; thickness = 0.800; num_pens = 2; $fn = 256; for (i = [1:num_pens]) { translate([((tube_dia+thickness)*i),0,0]) holder(tube_dia, tube_len, clip_len, clip_wid, gap_len, thickness); } // BLOCK 2 module tube(diameter, thickness, height) { difference() { cylinder(r=thickness + (diameter/2), h=height); translate([0,0,-1]) cylinder(r=(diameter/2), h=height+2); } } // BLOCK 3 module clip(length, width, thickness, gap_length) { union() { cube([width+thickness, thickness, length]); cube([width+thickness, gap_length, thickness]); translate([0,gap_length,0]) cube([width+thickness, thickness, length]); } } // BLOCK 4 module holder(tube_dia, tube_len, clip_len, clip_wid, gap_len, thickness) { tube(tube_dia, thickness, tube_len); translate([(-tube_dia/2)-(thickness/2),clip_wid/2,0]) clip(clip_len, clip_wid, thickness, gap_len); }
59a85de0-7a9a-4a71-ad0c-5eff71d92735
// BLOCK 1 rotate([180, 0, 0]) // BLOCK 2 difference(){ hull(){ linear_extrude(height=4){ circle(r=15.500, $fn=50); }; translate([28, 0, 0]){ linear_extrude(height=8){ circle(r=7.000, $fn=50); } } } linear_extrude(height=10){ translate([28, 0, -1]){ circle(r=5.100, $fn=50); } } linear_extrude(height=2){ circle(r=13, $fn=50); }; };
// BLOCK 1 rotate([180, 0, 0]) // BLOCK 2 difference(){ hull(){ linear_extrude(height=4){ circle(r=15.500, $fn=50); }; translate([28, 0, 0]){ linear_extrude(height=8){ circle(r=7.000, $fn=50); } } } linear_extrude(height=10){ translate([28, 0, -1]){ circle(r=5.100, $fn=50); } } linear_extrude(height=2){ circle(r=13, $fn=50); }; };
f9051338-fcc6-48ce-a520-74990a900561
// BLOCK 1 height=70; sizex=120; sizey=90; radius=20; thickness=0.600; bottom_thickness_factor=1.600; text_contents="Your Text"; text_size=10; text_engravement_factor=1; // BLOCK 2 module rounded_square(dim, corners=[10,10,10,10], center=false){ w=dim[0]; h=dim[1]; if (center){ translate([-w/2, -h/2]) rounded_square_(dim, corners=corners); }else{ rounded_square_(dim, corners=corners); } } // BLOCK 3 module rounded_square_(dim, corners, center=false){ w=dim[0]; h=dim[1]; render(){ difference(){ square([w,h]); if (corners[0]) square([corners[0], corners[0]]); if (corners[1]) translate([w-corners[1],0]) square([corners[1], corners[1]]); if (corners[2]) translate([0,h-corners[2]]) square([corners[2], corners[2]]); if (corners[3]) translate([w-corners[3], h-corners[3]]) square([corners[3], corners[3]]); } if (corners[0]) translate([corners[0], corners[0]]) intersection(){ circle(r=corners[0]); translate([-corners[0], -corners[0]]) square([corners[0], corners[0]]); } if (corners[1]) translate([w-corners[1], corners[1]]) intersection(){ circle(r=corners[1]); translate([0, -corners[1]]) square([corners[1], corners[1]]); } if (corners[2]) translate([corners[2], h-corners[2]]) intersection(){ circle(r=corners[2]); translate([-corners[2], 0]) square([corners[2], corners[2]]); } if (corners[3]) translate([w-corners[3], h-corners[3]]) intersection(){ circle(r=corners[3]); square([corners[3], corners[3]]); } } } // BLOCK 4 difference() { linear_extrude(height) rounded_square([sizex,sizey],corners=[radius,radius,radius,radius],center=true) ; translate([0,0,thickness*bottom_thickness_factor]) linear_extrude(height-thickness*bottom_thickness_factor) rounded_square([sizex-2*thickness,sizey-2*thickness],corners=[radius,radius,radius,radius],center=true); translate([0,-sizey/2+thickness*text_engravement_factor,height/2]) rotate([90,0,0]) linear_extrude(thickness) text(text_contents,size=text_size,halign="center",valign="center"); }
// BLOCK 1 height=70; sizex=120; sizey=90; radius=20; thickness=0.600; bottom_thickness_factor=1.600; text_contents="Your Text"; text_size=10; text_engravement_factor=1; // BLOCK 2 module rounded_square(dim, corners=[10,10,10,10], center=false){ w=dim[0]; h=dim[1]; if (center){ translate([-w/2, -h/2]) rounded_square_(dim, corners=corners); }else{ rounded_square_(dim, corners=corners); } } // BLOCK 3 module rounded_square_(dim, corners, center=false){ w=dim[0]; h=dim[1]; render(){ difference(){ square([w,h]); if (corners[0]) square([corners[0], corners[0]]); if (corners[1]) translate([w-corners[1],0]) square([corners[1], corners[1]]); if (corners[2]) translate([0,h-corners[2]]) square([corners[2], corners[2]]); if (corners[3]) translate([w-corners[3], h-corners[3]]) square([corners[3], corners[3]]); } if (corners[0]) translate([corners[0], corners[0]]) intersection(){ circle(r=corners[0]); translate([-corners[0], -corners[0]]) square([corners[0], corners[0]]); } if (corners[1]) translate([w-corners[1], corners[1]]) intersection(){ circle(r=corners[1]); translate([0, -corners[1]]) square([corners[1], corners[1]]); } if (corners[2]) translate([corners[2], h-corners[2]]) intersection(){ circle(r=corners[2]); translate([-corners[2], 0]) square([corners[2], corners[2]]); } if (corners[3]) translate([w-corners[3], h-corners[3]]) intersection(){ circle(r=corners[3]); square([corners[3], corners[3]]); } } } // BLOCK 4 difference() { linear_extrude(height) rounded_square([sizex,sizey],corners=[radius,radius,radius,radius],center=true) ; translate([0,0,thickness*bottom_thickness_factor]) linear_extrude(height-thickness*bottom_thickness_factor) rounded_square([sizex-2*thickness,sizey-2*thickness],corners=[radius,radius,radius,radius],center=true); translate([0,-sizey/2+thickness*text_engravement_factor,height/2]) rotate([90,0,0]) linear_extrude(thickness) text(text_contents,size=text_size,halign="center",valign="center"); }
b3f0064a-29ad-42ac-a3bb-6797407d823b
// BLOCK 1 shape = "square"; $fn_for_OD=60; fnod = $fn_for_OD; web_shape = "S"; ws=web_shape; hole_diameter = 0; id = hole_diameter; $fn_for_hole=60; fnid = $fn_for_hole; spring_height = 40; h = spring_height; spring_width = 20; w = spring_width; print_height = 20; z = print_height; web_thickness = 1; t = web_thickness; post_width = 2; pw = post_width; compression_ratio = 50; r = compression_ratio/100; if (shape == "circular"){ round_spring(h,w,z,t,pw,r,id,fnid,ws,fnod); } else if (shape == "square"){ square_spring(h,w,z,t,pw,r,id,fnid,ws); } // BLOCK 2 module round_spring(h,w,z,t,pw,r,id,fnid,ws,fnod){ difference(){ z=w; square_spring(h,w,z,t,pw,r,id,fnid,ws); translate([w/2,0,w/2]) rotate([-90,0,0]) difference(){ translate([0,0,h/2]) cube([2*w,2*w,2*h],center=true); cylinder(h=h,d=w,$fn=fnod); } } } // BLOCK 3 module square_spring(h,w,z,t,pw,r,id,fnid,ws){ n = floor((h-t-r*h)/(2*t)); g = h*r/(2*n); s = h-n*2*g; tr = t+g+t+g; b = ((h-(n*(2*t+2*g)+t))/2)+t; echo("**********SPRING-PARAMETERS**********"); echo("**************************************"); echo(________overall_height_________=h); echo(________compression_ratio______=r); echo(________number_of_replicates___=n); echo(________web_shape______________=ws); echo(________gap_width______________=g); echo(________solid_height___________=s); echo(________compression_distance___=h-s); echo(________base_thickness_________=b); echo("**************************************"); echo("**************************************"); difference(){ if (ws=="S"){ union(){ cube([w,b,z]); for(i=[1:1:n]){ translate([0,(i-1)*tr+b-t,0]) cube([w,t,z]); translate([0,(i-1)*tr+g+b-t+t,0]) cube([pw,g+2*t,z]); translate([w-pw,(i-1)*tr+b-t,0]) cube([pw,g+2*t,z]); translate([0,(i-1)*tr+b-t+g+t,0]) cube([w,t,z]); } translate([0,h-b,0]) cube([w,b,z]); } } else if (ws=="T"){ union(){ cube([w,b,z]); for(i=[1:1:n]){ translate([0,(i-1)*tr+b-t,0]) cube([w,t,z]); translate([0,(i-1)*tr+b-t,0]) cube([pw,g+2*t,z]); translate([w-pw,(i-1)*tr+b-t,0]) cube([pw,g+2*t,z]); translate([0,(i-1)*tr+b-t+g+t,0]) cube([w,t,z]); translate([w/2-pw/2,(i-1)*tr+g+b-t+t,0]) cube([pw,g+2*t,z]); } translate([0,h-b,0]) cube([w,b,z]); } } translate([w/2,0,z/2]) rotate([-90,0,0]) translate([0,0,-1]) cylinder(d=id,h=h+2,$fn=fnid); } }
// BLOCK 1 shape = "square"; $fn_for_OD=60; fnod = $fn_for_OD; web_shape = "S"; ws=web_shape; hole_diameter = 0; id = hole_diameter; $fn_for_hole=60; fnid = $fn_for_hole; spring_height = 40; h = spring_height; spring_width = 20; w = spring_width; print_height = 20; z = print_height; web_thickness = 1; t = web_thickness; post_width = 2; pw = post_width; compression_ratio = 50; r = compression_ratio/100; if (shape == "circular"){ round_spring(h,w,z,t,pw,r,id,fnid,ws,fnod); } else if (shape == "square"){ square_spring(h,w,z,t,pw,r,id,fnid,ws); } // BLOCK 2 module round_spring(h,w,z,t,pw,r,id,fnid,ws,fnod){ difference(){ z=w; square_spring(h,w,z,t,pw,r,id,fnid,ws); translate([w/2,0,w/2]) rotate([-90,0,0]) difference(){ translate([0,0,h/2]) cube([2*w,2*w,2*h],center=true); cylinder(h=h,d=w,$fn=fnod); } } } // BLOCK 3 module square_spring(h,w,z,t,pw,r,id,fnid,ws){ n = floor((h-t-r*h)/(2*t)); g = h*r/(2*n); s = h-n*2*g; tr = t+g+t+g; b = ((h-(n*(2*t+2*g)+t))/2)+t; echo("**********SPRING-PARAMETERS**********"); echo("**************************************"); echo(________overall_height_________=h); echo(________compression_ratio______=r); echo(________number_of_replicates___=n); echo(________web_shape______________=ws); echo(________gap_width______________=g); echo(________solid_height___________=s); echo(________compression_distance___=h-s); echo(________base_thickness_________=b); echo("**************************************"); echo("**************************************"); difference(){ if (ws=="S"){ union(){ cube([w,b,z]); for(i=[1:1:n]){ translate([0,(i-1)*tr+b-t,0]) cube([w,t,z]); translate([0,(i-1)*tr+g+b-t+t,0]) cube([pw,g+2*t,z]); translate([w-pw,(i-1)*tr+b-t,0]) cube([pw,g+2*t,z]); translate([0,(i-1)*tr+b-t+g+t,0]) cube([w,t,z]); } translate([0,h-b,0]) cube([w,b,z]); } } else if (ws=="T"){ union(){ cube([w,b,z]); for(i=[1:1:n]){ translate([0,(i-1)*tr+b-t,0]) cube([w,t,z]); translate([0,(i-1)*tr+b-t,0]) cube([pw,g+2*t,z]); translate([w-pw,(i-1)*tr+b-t,0]) cube([pw,g+2*t,z]); translate([0,(i-1)*tr+b-t+g+t,0]) cube([w,t,z]); translate([w/2-pw/2,(i-1)*tr+g+b-t+t,0]) cube([pw,g+2*t,z]); } translate([0,h-b,0]) cube([w,b,z]); } } translate([w/2,0,z/2]) rotate([-90,0,0]) translate([0,0,-1]) cylinder(d=id,h=h+2,$fn=fnid); } }