// Clarus, the DogCow // ----------------------------------------------------------------------- // DogCow is Apple developer mascot // see : http://clarus.chez-alice.fr/ENGLISH/index.html // ----------------------------------------------------------------------- // Build a 3D pixelated DogCow for 3D Print // propose several version of Clarus are provided, choose your belowed one // each model has a hole behind, so it can be snapped into a support // ----------------------------------------------------------------------- // functions : // - dogcow(model) : build a 3D model of dogcow model // - support : build a support for a dogcow // ----------------------------------------------------------------------- // 0 : original glyph for 'z' in Cairo Font, desing by Susan Kare for Apple (1984) moof0 = [ [0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,2,1,2,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,2,1,2,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,2,1,1,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,2,1,1,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0], [0,2,1,1,1,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2], [2,1,1,1,1,1,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,2,1,2], [0,2,2,2,2,1,1,1,1,2,2,0,0,0,0,0,0,0,0,0,0,2,1,1,2], [0,0,0,0,0,2,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,2], [0,0,0,0,0,2,1,1,1,1,1,2,2,2,2,2,2,2,1,1,1,1,1,2,0], [0,0,0,0,0,0,2,2,1,1,1,1,2,2,2,2,2,2,1,1,1,1,2,0,0], [0,0,0,0,0,0,2,2,2,1,1,1,1,1,2,2,2,1,1,1,1,1,2,0,0], [0,0,0,0,0,0,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,0,0,0], [0,0,0,0,0,0,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,0,0,0], [0,0,0,0,0,0,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,0,0,0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,0,0] ]; // 4 : DogCattle, design by Tom Maremaa for Apple to fit 16x16 icons (SICN) (1996) moof4 = [ [0,0,0,2,0,0,2,0,0,0,0,0,0,0,0,0], [0,0,2,1,2,2,1,2,0,0,0,0,0,0,0,0], [0,0,2,1,1,1,1,2,0,0,0,0,0,0,0,0], [0,2,1,1,2,1,2,0,0,0,0,0,0,0,2,0], [2,1,1,1,1,1,2,0,0,0,0,0,0,0,2,2], [2,1,1,1,1,1,1,2,0,0,0,0,0,2,1,2], [0,2,2,2,1,1,1,2,2,2,2,2,2,1,1,2], [0,0,0,0,2,2,1,1,2,2,2,2,1,1,1,2], [0,0,0,0,2,2,1,1,1,1,1,1,1,1,2,0], [0,0,0,0,2,2,1,1,1,1,1,1,1,1,2,0], [0,0,0,0,2,1,1,1,2,2,2,1,1,1,2,0], [0,0,0,0,2,1,1,2,0,0,0,2,1,1,2,0], [0,0,0,0,2,1,1,2,0,0,0,2,1,1,2,0], [0,0,0,2,1,1,1,2,0,0,2,1,1,1,2,0], [0,0,0,2,2,2,2,0,0,0,2,2,2,2,0,0] ]; // 5 : Re-Design from Susan Kare from its original glyph : more bovine head (1999) moof5 = [ [0,0,0,0,0,0,2,2,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,2,1,1,2,0,0,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,2,1,1,2,2,2,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,2,1,1,1,1,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0], [0,0,0,0,0,2,1,1,1,1,1,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2], [0,0,0,0,2,1,1,1,2,1,1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0,0,0,0,0,0,0,0,0,0,2,1,1,1,2,0,0,0], [0,0,0,0,0,0,0,0,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,0,0,0,0]]; d=2.0; dz=2.0; do=3.0; o=0.5; module dogcow0() { difference() { union() { for(i=[0:21],j=[0:24]) { assign(line=moof0[i]) { if (line[j]!=0) translate([-d*j,i*d,0]) cube([d+o,d+o,dz*line[j]+do]); } } } translate([-31.5,23.0,1.0]) cube([13.0,2.0,1.0]); translate([-30.0,22.0,-1.0]) cube([10.0,4.0,3.0]); } } module dogcow1() { difference() { union() { for(i=[0:28],j=[0:37]) { assign(line=moof1[i]) { if (line[j]!=0) translate([-d*j,i*d,0]) cube([d+o,d+o,dz*line[j]+do]); } } } translate([-48.5,26.0,1.0]) cube([13.0,2.0,1.0]); translate([-47.0,25.0,-1.0]) cube([10.0,4.0,3.0]); } } module dogcow2() { difference() { union() { for(i=[0:25],j=[0:33]) { assign(line=moof2[i]) { if (line[j]!=0) translate([-d*j,i*d,0]) cube([d+o,d+o,dz*line[j]+do]); } } } translate([-42.5,25.0,1.0]) cube([13.0,2.0,1.0]); translate([-41.0,24.0,-1.0]) cube([10.0,4.0,3.0]); } } module dogcow3() { difference() { union() { for(i=[0:24],j=[0:31]) { assign(line=moof3[i]) { if (line[j]!=0) translate([-d*j,i*d,0]) cube([d+o,d+o,dz*line[j]+do]); } } } translate([-40.5,25.0,1.0]) cube([13.0,2.0,1.0]); translate([-39.0,24.0,-1.0]) cube([10.0,4.0,3.0]); } } module dogcow4() { difference() { union() { for(i=[0:14],j=[0:15]) { assign(line=moof4[i]) { if (line[j]!=0) translate([-d*j,i*d,0]) cube([d+o,d+o,dz*line[j]+do]); } } } translate([-22.5,17.0,1.0]) cube([13.0,2.0,1.0]); translate([-21.0,16.0,-1.0]) cube([10.0,4.0,3.0]); } } module dogcow5() { difference() { union() { for(i=[0:31],j=[0:39]) { assign(line=moof5[i]) { if (line[j]!=0) translate([-d*j,i*d,0]) cube([d+o,d+o,dz*line[j]+do]); } } } translate([-50.5,30.0,1.0]) cube([13.0,2.0,1.0]); translate([-49.0,29.0,-1.0]) cube([10.0,4.0,3.0]); } } module dogcow(model) { if (model==0) dogcow0(); if (model==1) dogcow1(); if (model==2) dogcow2(); if (model==3) dogcow3(); if (model==4) dogcow4(); if (model==5) dogcow5(); } dogcow(5);