1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-16 21:58:26 +01:00
dotSCAD/examples/taiwan/SD_Card_Taiwan.scad
2022-06-06 13:11:46 +08:00

25 lines
16 KiB
OpenSCAD

use <shape_taiwan.scad>
use <ellipse_extrude.scad>
use <midpt_smooth.scad>
smooth_times = 40;
slices = 2;
semi_minor_axis = 7;
translate([18, 18, 2])
rotate([90, 0, -109])
SD_Mountain(1);
translate([0, -2, -2])
ellipse_extrude(semi_minor_axis, height = 4, slices = slices)
translate([3, 0, -2])
polygon(midpt_smooth(shape_taiwan(170), smooth_times, true));
// From: https://www.thingiverse.com/thing:1362048
module SD_Mountain(scale) {polyhedron(
points=[[31.65506935119629,-2.048466920852661,20],[-38.19669723510742,-2.048466920852661,20],[31.65506935119629,-2.048466920852661,19],[-38.19669723510742,-2.048466920852661,20],[-3.270815372467041,32.877418518066406,20],[-11.696699142456055,24.4515323638916,14],[-3.270815372467041,32.877418518066406,20],[7.208223819732666,22.398378372192383,18],[7.208223819732666,22.398378372192383,16.5],[-38.19669723510742,-2.048466920852661,20],[-38.19669723510742,-2.048466920852661,-2.75],[31.65506935119629,-2.048466920852661,19],[31.65506935119629,-2.048466920852661,20],[-3.270815372467041,32.877418518066406,20],[-38.19669723510742,-2.048466920852661,20],[31.65506935119629,-2.048466920852661,20],[31.65506935119629,-2.048466920852661,19],[24.10660171508789,5.5,19],[31.65506935119629,-2.048466920852661,20],[24.10660171508789,5.5,19],[-3.270815372467041,32.877418518066406,20],[-3.270815372467041,32.877418518066406,20],[7.208223819732666,22.398378372192383,16.5],[-3.270815372467041,32.877418518066406,14],[-3.270815372467041,32.877418518066406,20],[24.10660171508789,5.5,19],[7.208223819732666,22.398378372192383,18],[-38.19669723510742,-2.048466920852661,20],[-11.696699142456055,24.4515323638916,14],[-38.19669723510742,-2.048466920852661,-2.75],[-3.270815372467041,32.877418518066406,20],[-3.270815372467041,32.877418518066406,14],[-11.696699142456055,24.4515323638916,14],[31.65506935119629,-2.048466920852661,19],[-38.19669723510742,-2.048466920852661,-2.75],[32.155067443847656,-2.048466920852661,-1.75],[24.10660171508789,5.5,19],[37.69408416748047,19.08748435974121,18],[24.10660171508789,5.5,18],[24.10660171508789,5.5,19],[24.10660171508789,5.5,18],[7.208223819732666,22.398378372192383,18],[73.30329895019531,-2.048466920852661,19],[53.93071746826172,17.324115753173828,9.5],[53.93071746826172,17.324115753173828,14],[31.65506935119629,-2.048466920852661,19],[44.93071746826172,26.324115753173828,19],[24.10660171508789,5.5,19],[73.30329895019531,-2.048466920852661,19],[31.65506935119629,-2.048466920852661,19],[32.155067443847656,-2.048466920852661,-1.75],[44.93071746826172,26.324115753173828,19],[53.93071746826172,17.324115753173828,14],[44.93071746826172,26.324115753173828,14],[44.93071746826172,26.324115753173828,19],[37.69408416748047,19.08748435974121,16.5],[37.69408416748047,19.08748435974121,18],[31.65506935119629,-2.048466920852661,19],[73.30329895019531,-2.048466920852661,19],[44.93071746826172,26.324115753173828,19],[73.30329895019531,-2.048466920852661,19],[32.155067443847656,-2.048466920852661,-1.75],[73.30329895019531,-2.048466920852661,-1.75],[44.93071746826172,26.324115753173828,19],[44.93071746826172,26.324115753173828,14],[37.69408416748047,19.08748435974121,16.5],[73.30329895019531,-2.048466920852661,19],[73.30329895019531,-2.048466920852661,-1.75],[53.93071746826172,17.324115753173828,9.5],[44.93071746826172,26.324115753173828,19],[37.69408416748047,19.08748435974121,18],[24.10660171508789,5.5,19],[44.93071746826172,26.324115753173828,19],[73.30329895019531,-2.048466920852661,19],[53.93071746826172,17.324115753173828,14],[37.69408416748047,19.08748435974121,18],[37.69408416748047,19.08748435974121,16.5],[7.208223819732666,22.398378372192383,16.5],[24.10660171508789,5.5,18],[37.69408416748047,19.08748435974121,18],[7.208223819732666,22.398378372192383,18],[37.69408416748047,19.08748435974121,18],[7.208223819732666,22.398378372192383,16.5],[7.208223819732666,22.398378372192383,18],[7.208223819732666,22.398378372192383,16.5],[24.10660171508789,5.5,16.5],[7.208223819732666,22.398378372192383,14],[7.208223819732666,22.398378372192383,16.5],[7.208223819732666,22.398378372192383,14],[-3.270815372467041,32.877418518066406,14],[37.69408416748047,19.08748435974121,16.5],[37.69408416748047,19.08748435974121,14],[24.10660171508789,5.5,14],[37.69408416748047,19.08748435974121,16.5],[24.10660171508789,5.5,14],[24.10660171508789,5.5,16.5],[37.69408416748047,19.08748435974121,16.5],[44.93071746826172,26.324115753173828,14],[37.69408416748047,19.08748435974121,14],[37.69408416748047,19.08748435974121,16.5],[24.10660171508789,5.5,16.5],[7.208223819732666,22.398378372192383,16.5],[24.10660171508789,5.5,16.5],[24.10660171508789,5.5,14],[7.208223819732666,22.398378372192383,14],[37.69408416748047,19.08748435974121,14],[27.567567825317383,20.187267303466797,10.5],[27.567567825317383,20.187267303466797,13],[37.69408416748047,19.08748435974121,14],[44.93071746826172,26.324115753173828,14],[53.93071746826172,17.324115753173828,14],[-11.696699142456055,24.4515323638916,14],[-3.270815372467041,32.877418518066406,14],[7.208223819732666,22.398378372192383,14],[-11.696699142456055,24.4515323638916,14],[-11.30207347869873,24.408674240112305,13],[-11.30207347869873,24.408674240112305,10.5],[7.208223819732666,22.398378372192383,14],[27.567567825317383,20.187267303466797,13],[-11.30207347869873,24.408674240112305,13],[7.208223819732666,22.398378372192383,14],[24.10660171508789,5.5,14],[37.69408416748047,19.08748435974121,14],[7.208223819732666,22.398378372192383,14],[37.69408416748047,19.08748435974121,14],[27.567567825317383,20.187267303466797,13],[-11.696699142456055,24.4515323638916,14],[-11.696699142456055,24.4515323638916,2.5],[-38.19669723510742,-2.048466920852661,-2.75],[7.208223819732666,22.398378372192383,14],[-11.30207347869873,24.408674240112305,13],[-11.696699142456055,24.4515323638916,14],[37.69408416748047,19.08748435974121,14],[53.93071746826172,17.324115753173828,14],[53.93071746826172,17.324115753173828,9.5],[37.69408416748047,19.08748435974121,14],[53.93071746826172,17.324115753173828,9.5],[27.567567825317383,20.187267303466797,10.5],[-11.696699142456055,24.4515323638916,14],[-11.30207347869873,24.408674240112305,10.5],[-11.696699142456055,24.4515323638916,2.5],[27.567567825317383,20.187267303466797,13],[28.43071746826172,19.324115753173828,13],[11.10660171508789,2,13],[11.10660171508789,2,13],[-11.30207347869873,24.408674240112305,10.5],[-11.30207347869873,24.408674240112305,13],[27.567567825317383,20.187267303466797,13],[11.10660171508789,2,13],[-11.30207347869873,24.408674240112305,13],[28.43071746826172,19.324115753173828,13],[28.43071746826172,19.324115753173828,10.5],[11.10660171508789,2,10.5],[28.43071746826172,19.324115753173828,13],[11.10660171508789,2,10.5],[11.10660171508789,2,13],[11.10660171508789,2,13],[11.10660171508789,2,10.5],[-11.30207347869873,24.408674240112305,10.5],[28.43071746826172,19.324115753173828,13],[27.567567825317383,20.187267303466797,13],[28.43071746826172,19.324115753173828,10.5],[27.567567825317383,20.187267303466797,13],[27.567567825317383,20.187267303466797,10.5],[28.43071746826172,19.324115753173828,10.5],[-11.30207347869873,24.408674240112305,10.5],[-4.931435585021973,23.716796875,6],[-11.696699142456055,24.4515323638916,2.5],[11.10660171508789,2,10.5],[28.43071746826172,19.324115753173828,10.5],[27.567567825317383,20.187267303466797,10.5],[11.10660171508789,2,10.5],[27.567567825317383,20.187267303466797,10.5],[-11.30207347869873,24.408674240112305,10.5],[27.567567825317383,20.187267303466797,10.5],[53.93071746826172,17.324115753173828,9.5],[15.061077117919922,21.54552459716797,9.5],[-11.30207347869873,24.408674240112305,10.5],[15.061077117919922,21.54552459716797,9.5],[-4.931435585021973,23.716796875,6],[-11.30207347869873,24.408674240112305,10.5],[27.567567825317383,20.187267303466797,10.5],[15.061077117919922,21.54552459716797,9.5],[53.93071746826172,17.324115753173828,9.5],[53.93071746826172,17.324115753173828,7],[36.60660171508789,0,7],[53.93071746826172,17.324115753173828,9.5],[36.60660171508789,0,7],[36.60660171508789,0,9.5],[36.60660171508789,0,9.5],[15.061077117919922,21.54552459716797,7],[15.061077117919922,21.54552459716797,9.5],[36.60660171508789,0,9.5],[36.60660171508789,0,7],[15.061077117919922,21.54552459716797,7],[53.93071746826172,17.324115753173828,9.5],[73.30329895019531,-2.048466920852661,-1.75],[53.93071746826172,17.324115753173828,7],[53.93071746826172,17.324115753173828,9.5],[36.60660171508789,0,9.5],[15.061077117919922,21.54552459716797,9.5],[15.061077117919922,21.54552459716797,9.5],[15.061077117919922,21.54552459716797,7],[-4.931435585021973,23.716796875,6],[53.93071746826172,17.324115753173828,7],[53.93071746826172,17.324115753173828,-1.75],[46.6387825012207,18.116050720214844,2.5],[53.93071746826172,17.324115753173828,7],[46.6387825012207,18.116050720214844,2.5],[31.493993759155273,19.760839462280273,6],[15.061077117919922,21.54552459716797,7],[36.60660171508789,0,7],[53.93071746826172,17.324115753173828,7],[53.93071746826172,17.324115753173828,7],[73.30329895019531,-2.048466920852661,-1.75],[53.93071746826172,17.324115753173828,-1.75],[15.061077117919922,21.54552459716797,7],[53.93071746826172,17.324115753173828,7],[31.493993759155273,19.760839462280273,6],[15.061077117919922,21.54552459716797,7],[31.493993759155273,19.760839462280273,6],[-4.931435585021973,23.716796875,6],[16.60660171508789,0,6],[31.493993759155273,19.760839462280273,6],[33.93071746826172,17.324115753173828,6],[-4.931435585021973,23.716796875,6],[31.493993759155273,19.760839462280273,6],[16.60660171508789,0,6],[-4.931435585021973,23.716796875,6],[16.60660171508789,0,6],[-6.020815372467041,22.627416610717773,6],[33.93071746826172,17.324115753173828,6],[33.93071746826172,17.324115753173828,3.5],[16.60660171508789,0,3.5],[33.93071746826172,17.324115753173828,6],[16.60660171508789,0,3.5],[16.60660171508789,0,6],[16.60660171508789,0,6],[-6.020815372467041,22.627416610717773,3.5],[-6.020815372467041,22.627416610717773,6],[-6.020815372467041,22.627416610717773,6],[-4.931435585021973,23.716796875,3.5],[-4.931435585021973,23.716796875,6],[31.493993759155273,19.760839462280273,6],[46.6387825012207,18.116050720214844,2.5],[31.493993759155273,19.760839462280273,3.5],[31.493993759155273,19.760839462280273,6],[31.493993759155273,19.760839462280273,3.5],[33.93071746826172,17.324115753173828,3.5],[-4.931435585021973,23.716796875,6],[-4.931435585021973,23.716796875,3.5],[-11.696699142456055,24.4515323638916,2.5],[16.60660171508789,0,6],[16.60660171508789,0,3.5],[-6.020815372467041,22.627416610717773,3.5],[33.93071746826172,17.324115753173828,6],[31.493993759155273,19.760839462280273,6],[33.93071746826172,17.324115753173828,3.5],[-6.020815372467041,22.627416610717773,6],[-6.020815372467041,22.627416610717773,3.5],[-4.931435585021973,23.716796875,3.5],[31.493993759155273,19.760839462280273,3.5],[-4.931435585021973,23.716796875,3.5],[16.60660171508789,0,3.5],[-4.931435585021973,23.716796875,3.5],[31.493993759155273,19.760839462280273,3.5],[7.769141674041748,22.337459564208984,2.5],[-4.931435585021973,23.716796875,3.5],[7.769141674041748,22.337459564208984,2.5],[-11.696699142456055,24.4515323638916,2.5],[31.493993759155273,19.760839462280273,3.5],[46.6387825012207,18.116050720214844,2.5],[7.769141674041748,22.337459564208984,2.5],[31.493993759155273,19.760839462280273,3.5],[16.60660171508789,0,3.5],[33.93071746826172,17.324115753173828,3.5],[16.60660171508789,0,3.5],[-4.931435585021973,23.716796875,3.5],[-6.020815372467041,22.627416610717773,3.5],[46.6387825012207,18.116050720214844,2.5],[53.93071746826172,17.324115753173828,-1.75],[46.6387825012207,18.116050720214844,0],[7.769141674041748,22.337459564208984,2.5],[-3.020815372467041,33.127418518066406,2.5],[-11.696699142456055,24.4515323638916,2.5],[-3.020815372467041,33.127418518066406,2.5],[7.769141674041748,22.337459564208984,0],[-3.020815372467041,33.127418518066406,-2.75],[-11.696699142456055,24.4515323638916,2.5],[-3.020815372467041,33.127418518066406,-2.75],[-38.19669723510742,-2.048466920852661,-2.75],[-11.696699142456055,24.4515323638916,2.5],[-3.020815372467041,33.127418518066406,2.5],[-3.020815372467041,33.127418518066406,-2.75],[7.769141674041748,22.337459564208984,2.5],[30.10660171508789,0,2.5],[7.769141674041748,22.337459564208984,0],[30.10660171508789,0,2.5],[30.10660171508789,0,0],[7.769141674041748,22.337459564208984,0],[46.6387825012207,18.116050720214844,2.5],[47.43071746826172,17.324115753173828,2.5],[30.10660171508789,0,2.5],[46.6387825012207,18.116050720214844,2.5],[30.10660171508789,0,2.5],[7.769141674041748,22.337459564208984,2.5],[47.43071746826172,17.324115753173828,2.5],[47.43071746826172,17.324115753173828,0],[30.10660171508789,0,0],[47.43071746826172,17.324115753173828,2.5],[30.10660171508789,0,0],[30.10660171508789,0,2.5],[47.43071746826172,17.324115753173828,2.5],[46.6387825012207,18.116050720214844,2.5],[47.43071746826172,17.324115753173828,0],[46.6387825012207,18.116050720214844,2.5],[46.6387825012207,18.116050720214844,0],[47.43071746826172,17.324115753173828,0],[7.769141674041748,22.337459564208984,2.5],[7.769141674041748,22.337459564208984,0],[-3.020815372467041,33.127418518066406,2.5],[30.10660171508789,0,0],[47.43071746826172,17.324115753173828,0],[46.6387825012207,18.116050720214844,0],[30.10660171508789,0,0],[46.6387825012207,18.116050720214844,0],[7.769141674041748,22.337459564208984,0],[7.769141674041748,22.337459564208984,0],[7.769141674041748,22.337459564208984,-1.75],[-3.020815372467041,33.127418518066406,-2.75],[46.6387825012207,18.116050720214844,0],[7.769141674041748,22.337459564208984,-1.75],[7.769141674041748,22.337459564208984,0],[46.6387825012207,18.116050720214844,0],[53.93071746826172,17.324115753173828,-1.75],[7.769141674041748,22.337459564208984,-1.75],[53.93071746826172,17.324115753173828,-1.75],[73.30329895019531,-2.048466920852661,-1.75],[32.155067443847656,-2.048466920852661,-1.75],[32.155067443847656,-2.048466920852661,-1.75],[-38.19669723510742,-2.048466920852661,-2.75],[32.155067443847656,-2.048466920852661,-2.75],[53.93071746826172,17.324115753173828,-1.75],[32.155067443847656,-2.048466920852661,-1.75],[7.769141674041748,22.337459564208984,-1.75],[7.769141674041748,22.337459564208984,-1.75],[32.155067443847656,-2.048466920852661,-2.75],[-3.020815372467041,33.127418518066406,-2.75],[7.769141674041748,22.337459564208984,-1.75],[32.155067443847656,-2.048466920852661,-1.75],[32.155067443847656,-2.048466920852661,-2.75],[-3.020815372467041,33.127418518066406,-2.75],[32.155067443847656,-2.048466920852661,-2.75],[-38.19669723510742,-2.048466920852661,-2.75] ],
faces=[[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]]);}