Guest User

Untitled

a guest
Jun 15th, 2020
108
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. part=1;module t(x,y,z){if(x==undef){children();}else{if(z==undef)translate([x,y])children();else translate([x,y,z])children();}}module c(r,x,y){t(x,y)circle(r=r,$fn=32);}module s(h,w,x,y){t(x,y)square([h,w]);}module r(x,y,z){if(y==undef)rotate(x)children();else rotate([x,y,z])children();}module o(i,o,x,y,z){t(x,y,z)rotate_extrude($fn=64)t(i+(o-i)/2,0,0)c((o-i+.001)/2);}module m(v){children();mirror(v)children();}module q(h,w,l,x,y,z){t(x,y,z)cube([h,w,l]);}module l(r,h,x,y,z){t(x,y,z)cylinder(r=r,h=h,$fn=32);}a=.01544;b=.51;c=1.27;d=1.52;e=1.59;f=1.65;g=2.03;h=2.54;i=3.13;j=3.18;k=3.3;l=3.56;m=3.81;n=4.95;o=5.08;q=6.5;r=6.73;s=7.62;t=-7.75;u=9.68;v=10.16;w=12.19;x=12.7;y=13.16;z=15.24;A=15.5;B=17.51;C=17.53;D=-17.78;E=19.05;F=-20.32;G=20.89;H=21.6;I=22.86;J=25.4;K=28.02;L=30.48;M=32.37;N=33.02;O=35.56;P=-36.58;Q=38.89;R=40.64;S=41.43;T=41.87;U=47.93;V=-88.39;X=[90,0,0];Y=[0,90,0];Z=[0,1,0];p=part;if(p==1){difference(){union(){minkowski(){union(){r(X)l(s,O,-7.24,v,D);q(76.61,O,s,-7.24,D,h);q(84.23,O,22.21,-14.86,D,v);intersection(){r(X)l(48.26,O,33.4,M,D);q(5.16,O,21.72,-14.9,D,M);}hull(){q(48.58,O,21.72,-9.7,D,M);intersection(){r(0,-90,0)l(-D,30,111.89,0,-Q);t(-9.7,-21,54.09)r(0,26.795,0)cube([30,42,99]);}}q(L,O,.65,Q,D,M);q(L,10.92,55.37,Q,-5.46,N);}sphere(r=h,$fn=32);}q(23.98,22.35,4.45,U,-11.18,-V);q(q,35.35,14.12,S,-17.68,78.717);q(o,O,o,S,D,O);m(Z)r(Y)l(i,23.98,V,8,U);hull(){q(I,9.65,7.76,S,-4.83,92.84);q(s,9.65,N,S,-4.83,92.84);}m(Z)polyhedron(points=[[S,-D,R],[46.51,-D,O],[Q,F,N],[S,-D,N]],faces=[[0,2,1],[3,0,1],[3,2,0],[3,1,2]]);}hull(){o(12.57,17.91,0,0,22.73);l(z,1,0,0,C);}l(z,C);hull(){m(Y)r(0,-90,0)l(2.67,18,22.73,z,0);q(18,L,1,-18,-z,C);}q(18,L,C,-18,-z,0);t(0,0,d)difference(){intersection(){m(Z)difference(){union(){linear_extrude(w)polygon(points=[[y,0],[y,7.68],[17.15,6.24],[21.15,7.7],[25.34,5.37],[27,0]]);l(i,w,22.24,4.72,0);}l(k,12.12,16.02,9.34,0);}l(25.91,w);}difference(){t(0,0,6.1)m([0,0,1])t(0,0,-6.1){o(F,20.57,0,0,d);intersection(){o(15.279,21.88,0,0,-b);l(19.3,4);}difference(){l(20.57,d);l(19.3,d);}difference(){l(19.3,2.79);l(18.54,2.79);}}hull(){l(i,w,22.24,-4.72,0);q(6.55,5.23,w,4.36,-5.23,0);}}}difference(){r(X)hull(){l(v,16,57.94,75.06,-8);l(v,16,57.94,45.72,-8);l(q,O,U,78.72,D);l(o,R,46.51,R,F);}}m(Z){intersection(){r(Y)o(j,16.13,V,8,U);q(q,9.75,u,S,8,78.72);}difference(){q(q,u,u,S,8,78.72);r(Y)l(9.63,11,V,8,37);}l(q,4.45,U,17.68,-V);}r(X)l(h,R,51.59,103,F);q(L,L,J,S,-z,o);q(38.96,O,65.73,-16.5,D,T);r(X)l(25.15,15.49,9.93,50.55,t);q(27.33,15.45,J,-17.4,-7.75,25.3);hull(){r(X)l(x,29.21,22.37,57.15,-14.61);q(x,29.21,1,22.38,-14.61,102);}q(h,m,z,Q,-1.91,55.63);q(Q,m,74.94,0,-1.91,42.96);q(o,8.89,13.34,30,-4.45,103);r(X){l(h,R,24.66,R,F);l(h,R,9.42,O,F);l(h,R,-10.03,O,F);}}m(Z)intersection(){q(38.96,O,65.73,-16.5,D,T);union(){hull(){r(X)l(j,15.88,17.26,106.17,D);q(1,15.88,5,21.46,1.91,103);}hull(){r(X)l(j,10.03,-13.39,T,D);q(1,10.033,j,22.38,7.747,41.33);}hull(){t(22.38,14.61,44.45)cube([1,j,64]);t(-11.96,-D,55.24)r(0,26.795,0)l(j,59,j,0,0);intersection(){r(X)o(44.55,50.8,33.4,M,D);q(18,21,13.37,-16.5,0,T);}}}}}else if(p==2){difference(){rotate_extrude($fn=64){intersection(){s(2.44,1.84,z,61.66);c(h,z,61);}s(10.29,1.84,n,61.66);c(d,16.22,61.24);hull(){s(12.63,1.1,n,60.56);s(10.45,1,n,56.2);}difference(){s(10.45,.63,n,55.52);c(d,16.76,55.52);}intersection(){c(1.02,5.21,47.57);s(.25,.44,4.7,47.57);}s(10.29,7.96,n,47.57);hull(){s(10.54,43.76,4.7,m);c(m,8.51,m);c(i,12.07,i);}}q(9.46,.051,43.18,-4.73,-.0255,0);q(.051,9.46,43.18,-.0255,-4.73,0);}t(0,0,40.01){difference(){linear_extrude(x)difference(){intersection(){s(5,9.59,14.49,-4.73);c(18.415);}c(i,B,5.72);c(i,B,-5.72);s(.75,1,B,h);s(.75,1,B,-3.54);}o(z,H);o(z,H,0,0,x);}difference(){t(0,0,2.16)linear_extrude(1.02)difference(){intersection(){s(I,o,0,-h);hull(){c(d,G,-g);c(d,G,g);s(1,o,21.86,-h);}}c(19.46);}o(18.45,20.48,0,0,2.16);m(Z)intersection(){o(b,h,G,g,2.16);rotate([0,0,5.6])q(5,1,5,19.46,0,0);q(d,.66,1.02,19.37,1.88,2.16);}}}t(0,0,43.18)linear_extrude(6.35)difference(){s(4.62,o,18.14,-h);}t(0,0,R)linear_extrude(8.89)difference(){hull(){c(b,G,g);c(b,G,-g);c(h,I,0);}c(20.48);}}else if(p==3){r(0,-28,0)minkowski(){difference(){minkowski(){hull(){m(Z){r(Y)l(m,74,-o-h,3.49,0);t(-1.63,0,34.56)r(0,85.4,0)l(m,88,o,3.49,0);}}sphere(h,$fn=8);}hull(){m(Z){r(Y)l(m,80,-o-h,3.49,0);t(-1.63,0,34.56)r(0,85.4,0)l(m,99,o,3.49,0);}}}sphere(c,$fn=8);}difference(){union(){hull(){q(1,21.6,36.2,-1,-10.8,-4.32);q(13,21.6,1,-31.75,-10.8,30.88);r(X)l(h,21.6,-29.21,-1.78,-10.8);}hull(){q(1,12,44,-1,-6,-4.32);q(13,12,1,-18,-6,30.88);}}hull(){q(s,9.9,28.7,-31.75,-n,-4.32);q(I,9.9,s,-31.75,-n,-4.32);}r(X)l(h,21.6,-H,5.84,-10.8);}}else if(p==4){l(2.41,22.23);}else if(p==5){l(2.41,R);}else if(p==6){q(25.15,30.23,h);}else if(p==7){difference(){l(5.59,c);l(4.06,c);difference(){t(0,0,.25)l(o,c);o(4.06,6.1,0,0,.25);}}}else if(p==8){difference(){union(){l(i,k,0,0,-k);hull(){l(o,s);r(X)l(m,v,K,m,-o);}intersection(){union(){q(20,o,20,-9.48,-h,0);r(X)l(s,o,-9.48,s,-h);r(X)l(5.72,o,-9.48,13.97,-h);t(-17.1,-h,3.048)r(0,-45,0)q(5,o,5);}q(x,o,19.685,-17.099,-h,0);}l(3.68,b,0,0,-b);hull(){o(3.16,i,0,0,-k);}}r(X)l(f,v,K,m,-o)o(i,4.19,0,0,-b);q(s,o,6.35,-17.1,-h,s);}}else if(p==9){difference(){union(){q(K,A,8.89,-K,t,E);q(7.1,A,6.43,-35.1,t,J);q(K,A,8.89,-K,t,E);q(i,A,21.51,-35.1,t,31.83);intersection(){difference(){union(){l(E,11.43);hull()o(m,E,0,0,11.43);l(10.92,i,0,0,E);l(7.75,5.72,0,0,22.23);}o(7.75,14.1,0,0,22.23);}q(30,A,30,-9.97,t,0);}m(Z)r(X){intersection(){q(30,J,30,-35.01,0,0);l(J,7.75,-u,J,0);}intersection(){q(30,30,30,-35.01,27.94,0);l(J,h,-31.9,27.94,5.21);}l(5.46,b,-19.41,O,7.75);difference(){l(m,5.84,-19.41,O,7.75);q(8,33.01,6,-23,0,7.75);}}}r(X){l(h,A,-24.92,z,t);l(h,A,-u,v,t);l(h,A,9.78,v,t);l(e,A,-K,32.83,t);l(3.89,A-o,-K,31.83,-5.21);}l(1.78,22.1);l(2.79,2,0,0,22.1);l(5.59,5,0,0,23.11);}o(1.78,m,0,0,22.1);}else if(p==10){l(e,15.49);}else if(p==11){linear_extrude(o){difference(){union(){rotate([0,0,305]){polygon(concat([for(i=[415:2:1135])[(i*a)*cos(i),(i*a)*sin(i)]],[for(i=[1135:-2:415])[(((i*a)+h)*cos(i)),(((i*a)+h)*sin(i))]]));}c(l,21.08,0);c(m+h);intersection(){c(7.6,1.3,0);s(16,8,-q,-8);}s(2.9,3.4,18.8,-5.5);}c(f,21.08,0);c(m);c(j,21.99,-6.67);}s(2,8,2.45,-4);}}else if(p==12){l(f,26.67);}else if(p==13){difference(){l(3.05,16);l(g,16);}}else if(p==14){difference(){m(Z){r(X){intersection(){q(7.53,r,i,-42.93,0,b);o(i,9.53,P,r,b);}intersection(){q(2.65,e,k,-39.96,15.94,0);o(e,7.94,-38.16,15.95,b);}linear_extrude(5.33)difference(){union(){s(5.04,5,-3,-11);s(s,2.28,0,-2.28);s(1.83,14,-4.28,-21.48);hull(){c(.76,-3.78,-20.9);c(.76,-3.09,-20.9);}intersection(){s(5,13.87,-9.28,-21.48);c(11.81,3.48,-12.57);}intersection(){union(){s(7.45,5,0,-5);c(7.71,0,-10.25);c(.76,6.89,-2.28);}union(){c(13.24,-2.9,5.49);s(3,1,-7.25,-7.61);}}hull(){c(i,-42.29,20.07);c(i,-35.31,20.07);}s(4,4,-36.13,16.07);c(e,-43.88,e);s(h,6.8,-45.47,e);s(54.44,l,-35.4,0);s(5.5,4.13,-45.47,15.94);s(1,1,-43.88,0);}s(7.84,e,-39.94,15.94);c(9.17,5.19,-15.41);}}l(i,9.21,-42.93,-b,r);hull(){l(f,8.13,-22.6,0,0);l(f,8.13,-20.57,0,0);}q(2,4,1,P,-2,l);q(8.49,b,r,-43.9,0,0);}m(Z)difference(){q(67,9,46,-46,-9-f,-22);q(7.17,g,4.57,-45.47,-g-f,m);}q(2,4,21,-47.47,-2,0);q(2,4,1,P,-2,l);q(2,4,1,-38.16,-2,16.53);r(X)l(i,4,P,r,-2);}}else if(p==15) {difference(){union(){m(Z)linear_extrude(m)for(v=[[6.35,11.05,1],[v,7.5,0],[13.97,11.05,1],[-D,n,0],[H,11.05,1]]){t(v[0],v[1])mirror([0,v[2],0])difference(){c(h);c(c);s(o,h,-h,0);}s(c,l,s,7.5);s(c,l,11.43,7.5);s(c,6.1,z,n);s(c,6.1,E,n);s(c,8.64,I,n);s(h,c,H,12.32);s(o,13.59);s(c,c,o,12.32);c(o,o,0);}q(4,3.03,1,0,-d,-.254);}hull(){t(4.7,0,-.254)m([1,0,0])l(f,5,1.02,0,0);}}}
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×