/* Open SCAD Name.: Snow_Flake_Split_v1.scad * Copyright (c)..: 2017 www.DIY3DTech.com * * Creation Date..: 11/22/2017 * Description....: Split Snow Flake Model * * Rev 1: Develop Model * Rev 2: Moded hole code * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ /*------------------Customizer View-------------------*/ // preview[view:north, tilt:top] /*---------------------Parameters---------------------*/ //thickness of snow flake in mm flake_thick = 3; //[1:1:10] //size of snow flake in mm flake_size = 50; //[10:1:300] //create hole from string (1=Yes/2=No) hole = 1; //[1:1:2] //hole size in mm hole_dia = 2; //[1:1:3] //fudge factor in mm for slice (depends on plastic) fudge = 0.1; //[0:0.1:0.5] /*-----------------------Execute----------------------*/ main_module(); /*-----------------------Modules----------------------*/ module main_module(){ //create module difference() { union() {//start union //create snow flake //note: resize command used to set scale //note: auto used in resize command resize([flake_size,0,flake_thick], auto=true) rotate ([0,0,90]) linear_extrude(height = flake_thick, center = true, convexity = 10, twist = 0) snow_flake(); } //end union //start subtraction of difference //create notch in polygon translate ([-(flake_size/2),0,0]) rotate ([0,0,0]) cube([flake_size,flake_thick+fudge,flake_thick*2],true); //create hole # if (hole == 1) translate ([(flake_size/2.25),(flake_size/3.8),0]) rotate ([0,0,0]) cylinder(flake_thick*2,hole_dia/2,hole_dia/2,$fn=60,true); } //end difference }//end module module snow_flake(){ //you can enter any polygon data here polygon(points=[[-24.469,45.08469],[-21.7773,45.08469],[-21.0432,44.88893],[-20.50486,44.35059],[-18.40044,40.68009],[-17.27482,38.72249],[-17.07906,38.52673],[-16.8833,38.42885],[-16.68754,38.42885],[-16.49178,38.52673],[-16.1492,38.96719],[-14.28948,42.14829],[-13.7022,42.68663],[-12.9681,42.88239],[-10.5211,42.88239],[-9.787003,42.73557],[-9.248661,42.34405],[-8.367741,40.92479],[-7.437881,39.21189],[-7.437881,38.72249],[-8.416679,37.00959],[-9.738064,34.80729],[-10.71686,33.09439],[-12.03824,30.89209],[-12.18506,30.40269],[-12.13612,29.91329],[-11.89142,29.42389],[-11.4999,29.03237],[-11.30414,28.98343],[-11.10838,29.03237],[-10.91262,29.17919],[-9.15078,32.06665],[-8.759262,32.40923],[-8.318802,32.55605],[-7.34,32.60499],[-5.382401,32.60499],[-4.6483,32.40923],[-4.109962,31.87089],[-2.739643,29.42389],[-2.494942,28.68979],[-2.494942,28.44509],[-2.837524,27.71099],[-3.865261,25.99809],[-3.914204,25.55763],[-3.669502,25.31293],[-2.690701,25.26399],[4.160896,25.26399],[4.405598,25.31293],[4.650299,25.55763],[4.650299,25.75339],[3.328918,28.20039],[3.182098,28.68979],[3.4268,29.42389],[4.992878,32.06665],[5.384399,32.40923],[6.1185,32.60499],[8.565498,32.60499],[9.299599,32.45817],[9.837936,32.06665],[11.59978,29.17919],[11.79554,29.03237],[11.99129,28.98343],[12.18706,29.03237],[12.57858,29.42389],[12.92116,30.15799],[12.92116,30.40269],[12.57858,31.13679],[11.55084,32.84969],[10.57204,34.56259],[8.369736,38.23309],[8.173977,38.72249],[8.173977,39.21189],[8.51656,39.94599],[9.935818,42.34405],[10.32734,42.68663],[10.7678,42.83345],[11.7466,42.88239],[13.7042,42.88239],[14.4383,42.68663],[14.97664,42.14829],[17.03212,38.72249],[17.22787,38.52673],[17.42364,38.42885],[17.57046,38.42885],[17.76622,38.52673],[18.1088,38.96719],[20.26215,42.63769],[21.24095,44.35059],[21.7793,44.88893],[22.5134,45.08469],[25.2051,45.08469],[25.9392,44.88893],[26.52647,44.35059],[28.09255,41.65889],[28.19044,40.92479],[28.14149,40.68009],[26.77118,38.23309],[24.66676,34.56259],[24.61782,34.31789],[24.66676,34.12213],[24.9604,33.92637],[26.1839,33.87743],[27.1627,33.82849],[28.8756,33.87743],[29.6097,33.77955],[30.0991,33.53485],[30.63744,32.84969],[31.86094,30.64739],[32.00775,30.15799],[31.95882,29.66859],[30.44167,26.97689],[29.8544,26.38961],[29.365,26.24279],[20.5558,26.24279],[20.0664,26.09597],[19.62594,25.75339],[19.28336,25.26399],[19.23442,25.01929],[19.38124,24.67671],[19.8217,24.52989],[22.5134,24.52989],[23.2475,24.38307],[23.83478,23.99155],[24.42206,23.06169],[25.49874,21.10409],[25.59662,20.85939],[25.59662,20.36999],[25.25404,19.63589],[23.78584,17.23783],[23.2475,16.84631],[22.2687,16.89525],[21.2899,16.94419],[20.3111,16.89525],[20.11534,16.79737],[19.96852,16.45479],[20.01746,16.21009],[23.83478,9.603188],[24.03054,9.407429],[24.2263,9.309547],[24.42206,9.309547],[24.61782,9.407429],[25.15616,10.33729],[25.84132,11.56079],[26.4286,12.09913],[27.1627,12.29489],[29.8544,12.29489],[30.3438,12.19701],[30.73532,11.95231],[31.61624,10.58199],[32.69292,8.62439],[32.69292,8.134987],[31.61624,6.177387],[30.8332,4.709187],[30.8332,4.513428],[31.0779,4.268726],[32.0567,4.219788],[32.49715,4.366608],[32.88868,4.709187],[34.69946,7.890289],[37.34222,12.53959],[37.73374,12.88217],[38.17419,13.02899],[41.6,13.02899],[42.04046,12.88217],[42.38304,12.53959],[43.75336,10.09259],[43.99805,9.358486],[44.047,9.113789],[43.8023,8.379688],[41.8447,4.953888],[41.79575,4.513428],[41.89364,4.366608],[42.3341,4.219788],[49.1857,4.219788],[49.62615,4.072968],[49.96874,3.730389],[51.68164,0.7939873],[51.77952,0.5492897],[51.77952,0.05988693],[50.80072,-1.653011],[49.87086,-3.121212],[49.4304,-3.463791],[48.94099,-3.610611],[42.3341,-3.610611],[42.0894,-3.65955],[41.8447,-3.904251],[41.89364,-4.344711],[43.94912,-8.015213],[44.047,-8.504612],[43.85124,-9.238712],[42.48092,-11.68571],[42.0894,-12.12617],[41.6,-12.37087],[40.6212,-12.41981],[38.4189,-12.41981],[37.9295,-12.32193],[37.53798,-12.07723],[36.65706,-10.70691],[33.32914,-4.83411],[32.93762,-4.100014],[32.5461,-3.757435],[32.0567,-3.610611],[31.0779,-3.65955],[30.8332,-3.904251],[30.8332,-4.100014],[32.20352,-6.547012],[32.59504,-7.281113],[32.69292,-7.52581],[32.64397,-8.015213],[31.5673,-9.972813],[30.98002,-10.95161],[30.5885,-11.34313],[30.0991,-11.48996],[28.6309,-11.44101],[27.40739,-11.68571],[26.4286,-11.44101],[26.03708,-11.14737],[25.00934,-9.483414],[24.61782,-8.749313],[24.27524,-8.553551],[24.07948,-8.602489],[23.78584,-8.994011],[22.80704,-10.70691],[20.11534,-15.35621],[20.0664,-15.79667],[20.3111,-16.04137],[21.2899,-16.09031],[22.75809,-16.09031],[23.2475,-16.18819],[23.63902,-16.43289],[24.12842,-17.06911],[25.49874,-19.51611],[25.59662,-19.76081],[25.59662,-20.25021],[23.93266,-23.18661],[23.44325,-23.67601],[23.2475,-23.77389],[22.02399,-23.72496],[21.0452,-23.92071],[19.8217,-23.92071],[19.38124,-24.06753],[19.28336,-24.21435],[19.3323,-24.65481],[19.87064,-25.33997],[20.3111,-25.58467],[21.2899,-25.63361],[29.365,-25.63361],[29.8544,-25.78043],[30.29485,-26.12301],[30.78426,-26.85711],[31.86094,-28.81471],[32.00775,-29.30411],[31.95882,-29.79351],[31.61624,-30.52761],[30.44167,-32.48521],[29.8544,-33.07249],[29.365,-33.21931],[25.2051,-33.21931],[24.76464,-33.36613],[24.61782,-33.70871],[24.66676,-33.95341],[26.13496,-36.40041],[28.09255,-39.82621],[28.19044,-40.56031],[27.94574,-41.29441],[26.33072,-43.93717],[25.9392,-44.23081],[25.6945,-44.32869],[24.7157,-44.27976],[23.7369,-44.23081],[22.02399,-44.23081],[21.58354,-44.08399],[21.24095,-43.74141],[19.13654,-40.07091],[18.01092,-38.11332],[17.81516,-37.91755],[17.6194,-37.81967],[17.37469,-37.81967],[17.17894,-37.91755],[16.83636,-38.35801],[14.82982,-41.73487],[14.4383,-41.97957],[13.4595,-42.02851],[10.7678,-42.12639],[10.32734,-41.97957],[9.98476,-41.73487],[9.103836,-40.31561],[8.173977,-38.60271],[8.173977,-38.11332],[8.51656,-37.37922],[12.43176,-30.77231],[12.87222,-29.79351],[12.87222,-29.30411],[12.33388,-28.32531],[11.99129,-28.12956],[11.84447,-28.17849],[11.55084,-28.57001],[10.57204,-30.28291],[9.935818,-31.26171],[9.544296,-31.60429],[8.8102,-31.84899],[7.831398,-31.99582],[6.852596,-31.99582],[5.384399,-31.70217],[4.992878,-31.45747],[3.475739,-28.81471],[3.231037,-28.08061],[3.279976,-27.59121],[4.258778,-25.87831],[4.650299,-25.14421],[4.650299,-24.94845],[4.405598,-24.70375],[3.4268,-24.65481],[-3.424801,-24.65481],[-3.669502,-24.70375],[-3.914204,-24.94845],[-3.914204,-25.14421],[-2.592823,-27.59121],[-2.494942,-27.83591],[-2.54388,-28.32531],[-2.886463,-29.05941],[-4.305725,-31.45747],[-4.893002,-31.80005],[-5.871803,-31.99582],[-6.850601,-31.99582],[-8.318802,-31.80005],[-8.563503,-31.80005],[-9.15078,-31.45747],[-9.738064,-30.52761],[-10.71686,-28.81471],[-11.05944,-28.37426],[-11.2552,-28.27637],[-11.45096,-28.27637],[-11.64672,-28.37426],[-12.03824,-29.05941],[-12.18506,-29.54881],[-12.18506,-29.79351],[-11.84248,-30.52761],[-10.81474,-32.24051],[-9.835941,-33.95341],[-7.63364,-37.62391],[-7.437881,-38.11332],[-7.437881,-38.60271],[-8.416679,-40.31561],[-9.15078,-41.53911],[-9.787003,-42.02851],[-10.0317,-42.12639],[-11.0105,-42.07746],[-11.9893,-42.02851],[-13.4575,-42.02851],[-13.89796,-41.88169],[-14.24054,-41.53911],[-16.29602,-38.11332],[-16.68754,-37.72179],[-16.83436,-37.67286],[-17.03012,-37.72179],[-17.32376,-38.11332],[-19.28136,-41.53911],[-20.70062,-43.93717],[-21.2879,-44.27976],[-22.2667,-44.42657],[-23.2455,-44.23081],[-24.9584,-44.23081],[-25.39886,-44.08399],[-25.79038,-43.74141],[-27.45434,-40.80501],[-27.50328,-40.31561],[-27.35646,-39.82621],[-25.25204,-36.15571],[-23.9796,-33.95341],[-23.93066,-33.51296],[-24.02854,-33.36613],[-24.469,-33.21931],[-28.6289,-33.21931],[-29.1183,-33.07249],[-29.55876,-32.72992],[-30.78226,-30.77231],[-31.22272,-29.79351],[-31.27166,-29.30411],[-31.02696,-28.57001],[-29.75452,-26.36771],[-29.363,-25.92726],[-28.8736,-25.68255],[-27.8948,-25.63361],[-19.8197,-25.63361],[-19.3303,-25.48679],[-18.93878,-25.14421],[-18.64514,-24.65481],[-18.5962,-24.21435],[-18.8409,-23.96965],[-19.8197,-23.92071],[-20.5538,-23.87177],[-21.5326,-23.82283],[-22.2667,-23.77389],[-23.0008,-23.38237],[-23.53914,-22.69721],[-24.76264,-20.49492],[-24.86052,-20.25021],[-24.86052,-19.76081],[-24.27324,-18.53731],[-23.14762,-16.57972],[-22.7561,-16.23713],[-22.2667,-16.09031],[-19.8197,-16.09031],[-19.575,-16.04137],[-19.3303,-15.79667],[-19.3303,-15.60091],[-20.70062,-13.15391],[-22.70716,-9.728111],[-23.09868,-8.994011],[-23.29444,-8.798252],[-23.4902,-8.700375],[-23.68596,-8.700375],[-23.88172,-8.798252],[-24.90946,-10.46221],[-25.30098,-11.14737],[-25.6925,-11.39207],[-26.6713,-11.44101],[-28.1395,-11.44101],[-29.1183,-11.48996],[-29.363,-11.48996],[-29.8524,-11.29419],[-30.43968,-10.70691],[-31.95682,-8.015213],[-31.95682,-7.52581],[-31.36954,-6.302311],[-30.24392,-4.344711],[-30.14604,-4.100014],[-30.19498,-3.757435],[-30.3418,-3.65955],[-31.3206,-3.610611],[-31.81,-3.757435],[-32.20152,-4.100014],[-33.22926,-5.812912],[-33.86548,-7.036411],[-36.65506,-11.88147],[-36.99764,-12.22406],[-37.4381,-12.37087],[-38.4169,-12.41981],[-40.6192,-12.41981],[-41.1086,-12.32193],[-41.50012,-12.07723],[-41.79376,-11.68571],[-43.01726,-9.483414],[-43.26196,-8.994011],[-43.35984,-8.504612],[-43.26196,-8.015213],[-41.15754,-4.344711],[-41.1086,-3.904251],[-41.3533,-3.65955],[-42.3321,-3.610611],[-48.2049,-3.610611],[-48.6943,-3.512733],[-49.08582,-3.268032],[-49.96674,-1.897713],[-51.04342,0.05988693],[-51.04342,0.5492897],[-50.70084,1.283386],[-49.28158,3.730389],[-48.89006,4.072968],[-48.4496,4.219788],[-41.598,4.219788],[-41.3533,4.268726],[-41.1086,4.513428],[-41.15754,4.953888],[-43.21302,8.62439],[-43.3109,9.358486],[-43.0662,10.09259],[-41.50012,12.73535],[-41.1086,12.98005],[-40.1298,13.02899],[-37.4381,13.02899],[-36.99764,12.88217],[-36.65506,12.53959],[-33.57184,7.156189],[-32.20152,4.709187],[-31.81,4.366608],[-31.3206,4.219788],[-30.3418,4.268726],[-30.19498,4.366608],[-30.14604,4.709187],[-31.17378,6.666786],[-31.85894,7.890289],[-31.95682,8.134987],[-31.95682,8.62439],[-31.61424,9.358486],[-30.19498,11.75655],[-29.6077,12.14807],[-28.6289,12.29489],[-26.4266,12.29489],[-25.6925,12.09913],[-25.15416,11.56079],[-24.02854,9.603188],[-23.88172,9.407429],[-23.68596,9.309547],[-23.4902,9.309547],[-23.29444,9.407429],[-22.95186,9.847889],[-19.86864,15.23129],[-19.3303,16.21009],[-19.3303,16.45479],[-19.575,16.69949],[-20.0644,16.84631],[-21.2879,16.89525],[-22.2667,16.79737],[-22.5114,16.79737],[-22.90292,17.04206],[-23.39232,17.67829],[-24.42006,19.39119],[-24.86052,20.36999],[-24.86052,20.85939],[-24.27324,22.08289],[-23.14762,23.99155],[-22.7561,24.33413],[-22.022,24.52989],[-19.0856,24.52989],[-18.64514,24.67671],[-18.54726,24.82353],[-18.5962,25.26399],[-19.13454,25.94915],[-19.575,26.19385],[-20.5538,26.24279],[-28.6289,26.24279],[-29.1183,26.38961],[-29.55876,26.73219],[-30.04816,27.46629],[-31.12484,29.42389],[-31.3206,30.15799],[-31.0759,30.89209],[-29.90134,32.84969],[-29.50982,33.53485],[-29.1183,33.77955],[-28.1395,33.82849],[-26.4266,33.87743],[-25.4478,33.82849],[-24.2243,33.97531],[-23.93066,34.17107],[-23.9796,34.56259],[-27.45434,40.68009],[-27.50328,41.16949],[-27.35646,41.65889],[-25.83932,44.35059],[-25.4478,44.74211],[-24.9584,44.98681],[-24.7137,45.03575]],paths=[[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544]]); } /*----------------------End Code----------------------*/ //translate ([0,0,0]) rotate ([0,0,0]) cylinder(5,3,3,true); //translate ([0,0,0]) rotate ([0,0,0]) cube([18,18,18],true); //translate ([0,0,0]) sphere($fn = 0, $fa = 12, $fs = 2, r = 1); //translate ([0,0,0]) rotate ([0,0,0]) rounded (15,15,1,1,true);