-
Notifications
You must be signed in to change notification settings - Fork 13
/
SmileyStencil.scad
85 lines (69 loc) · 9.79 KB
/
SmileyStencil.scad
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
stencilHeight = 0.7;
faceSize = 79.65;
module dummy() {}
center_svg_1 = [40.024005174,20.074725186];
center_svg_2 = [40.024005174,20.074725186];
center_svg_3 = [16.089666030,22.067256511];
center_svg_4 = [10.909088961,28.642594902];
center_svg_5 = [65.105854732,28.642594902];
center_svg_6 = [28.044831080,49.962646142];
center_svg_7 = [46.973848537,49.962646142];
// paths for svg_1
points_svg_1_1 = [ [39.826560043,19.925280190],[39.634668564,16.019242346],[39.395237704,14.077988729],[38.632288402,10.242384127],[38.110607972,8.357273448],[36.793116393,4.675131375],[36.000479198,2.886970583],[34.156965054,-0.562001713],[33.110529292,-2.214504343],[30.780899091,-5.355647037],[29.503316935,-6.836719816],[26.738000130,-9.602036664],[25.256927371,-10.879618844],[22.115784712,-13.209249093],[20.463282099,-14.255684881],[17.014309832,-16.099199079],[15.226149052,-16.891836302],[11.544007000,-18.209327938],[9.658896329,-18.731008397],[5.823291739,-19.493957759],[3.882038126,-19.733388650],[-0.023999798,-19.925280190],[-1.979374146,-19.877278445],[-5.871291517,-19.493958051],[-7.798458572,-19.159562854],[-11.592007035,-18.209328457],[-13.449249453,-17.595778454],[-17.062310144,-16.099199757],[-18.809424238,-15.219776452],[-22.163785307,-13.209249863],[-23.762951334,-12.082990114],[-26.786001000,-9.602037459],[-28.202601847,-8.253321386],[-30.828900215,-5.355647797],[-32.032270754,-3.813671029],[-34.204966399,-0.562002383],[-35.169057293,1.139855941],[-36.841117919,4.675130840],[-37.545059512,6.500030629],[-38.680290057,10.242383760],[-39.108844141,12.150821447],[-39.682670294,16.019242171],[-39.826559966,17.969905844],[-39.826560043,21.880654587],[-39.682670442,23.831318317],[-39.108844416,27.699739161],[-38.680290388,29.608176912],[-37.545059936,33.350530177],[-36.841118382,35.175430034],[-35.169057815,38.710705073],[-34.204966943,40.412563467],[-32.032271324,43.664232252],[-30.828900790,45.206209087],[-28.202602417,48.103882808],[-26.786001560,49.452598943],[-23.762951861,51.933551715],[-22.163785810,53.059811519],[-18.809424682,55.070338206],[-17.062310554,55.949761555],[-13.449249785,57.446340327],[-11.592007325,58.059890361],[-7.798458770,59.010124807],[-5.871291667,59.344520021],[-1.979374196,59.727840434],[-0.023999798,59.775842181],[3.882038184,59.583950635],[5.823291847,59.344519735],[9.658896533,58.581570338],[11.544007249,58.059889854],[15.226149386,56.742398156],[17.014310204,55.949760894],[20.463282539,54.106246609],[22.115785180,53.059810772],[25.256927884,50.730180414],[26.738000659,49.452598176],[29.503317482,46.687281204],[30.780899640,45.206208360],[33.110529829,42.065065531],[34.156965576,40.412562833],[36.000479675,36.963590398],[36.793116840,35.175429538],[38.110608340,31.493287330],[38.632288722,29.608176586],[39.395237912,25.772571859],[39.634668708,23.831318183],[39.826560043,19.925280190] ];
// paths for svg_2
points_svg_2_1 = [ [39.826560043,19.925280190],[39.634668564,16.019242346],[39.395237704,14.077988729],[38.632288402,10.242384127],[38.110607972,8.357273448],[36.793116393,4.675131375],[36.000479198,2.886970583],[34.156965054,-0.562001713],[33.110529292,-2.214504343],[30.780899091,-5.355647037],[29.503316935,-6.836719816],[26.738000130,-9.602036664],[25.256927371,-10.879618844],[22.115784712,-13.209249093],[20.463282099,-14.255684881],[17.014309832,-16.099199079],[15.226149052,-16.891836302],[11.544007000,-18.209327938],[9.658896329,-18.731008397],[5.823291739,-19.493957759],[3.882038126,-19.733388650],[-0.023999798,-19.925280190],[-1.979374146,-19.877278445],[-5.871291517,-19.493958051],[-7.798458572,-19.159562854],[-11.592007035,-18.209328457],[-13.449249453,-17.595778454],[-17.062310144,-16.099199757],[-18.809424238,-15.219776452],[-22.163785307,-13.209249863],[-23.762951334,-12.082990114],[-26.786001000,-9.602037459],[-28.202601847,-8.253321386],[-30.828900215,-5.355647797],[-32.032270754,-3.813671029],[-34.204966399,-0.562002383],[-35.169057293,1.139855941],[-36.841117919,4.675130840],[-37.545059512,6.500030629],[-38.680290057,10.242383760],[-39.108844141,12.150821447],[-39.682670294,16.019242171],[-39.826559966,17.969905844],[-39.826560043,21.880654587],[-39.682670442,23.831318317],[-39.108844416,27.699739161],[-38.680290388,29.608176912],[-37.545059936,33.350530177],[-36.841118382,35.175430034],[-35.169057815,38.710705073],[-34.204966943,40.412563467],[-32.032271324,43.664232252],[-30.828900790,45.206209087],[-28.202602417,48.103882808],[-26.786001560,49.452598943],[-23.762951861,51.933551715],[-22.163785810,53.059811519],[-18.809424682,55.070338206],[-17.062310554,55.949761555],[-13.449249785,57.446340327],[-11.592007325,58.059890361],[-7.798458770,59.010124807],[-5.871291667,59.344520021],[-1.979374196,59.727840434],[-0.023999798,59.775842181],[3.882038184,59.583950635],[5.823291847,59.344519735],[9.658896533,58.581570338],[11.544007249,58.059889854],[15.226149386,56.742398156],[17.014310204,55.949760894],[20.463282539,54.106246609],[22.115785180,53.059810772],[25.256927884,50.730180414],[26.738000659,49.452598176],[29.503317482,46.687281204],[30.780899640,45.206208360],[33.110529829,42.065065531],[34.156965576,40.412562833],[36.000479675,36.963590398],[36.793116840,35.175429538],[38.110608340,31.493287330],[38.632288722,29.608176586],[39.395237912,25.772571859],[39.634668708,23.831318183],[39.826560043,19.925280190] ];
// paths for svg_3
points_svg_3_1 = [ [0.000000000,7.970111054],[2.521744117,5.490731630],[3.854017159,4.375283453],[6.644796733,2.392776182],[8.096675874,1.525679493],[11.096844386,0.039706020],[14.203468567,-1.115432896],[17.390038853,-1.939887635],[20.630045680,-2.433808577],[23.896979483,-2.597346103],[27.164330698,-2.430650593],[30.405589760,-1.933872427],[33.594247104,-1.107161985],[36.703793167,0.049330352],[38.220615229,0.751197738],[41.161788937,2.402080956],[42.579513191,3.351059193],[45.292668023,5.495994936],[46.581471209,6.691914847],[47.820673315,7.970111054],[46.929483891,6.039849783],[45.921544798,4.234121498],[44.804639350,2.552926197],[43.586550856,0.996263882],[42.275062627,-0.435865448],[40.877957976,-1.743461793],[39.403020213,-2.926525153],[37.858032649,-3.985055527],[36.250778596,-4.919052916],[34.589041364,-5.728517320],[32.880604266,-6.413448739],[31.133250611,-6.973847173],[29.354763712,-7.409712621],[27.552926879,-7.721045084],[25.735523424,-7.907844562],[23.910336658,-7.970111054],[22.085149891,-7.907844562],[20.267746436,-7.721045084],[18.465909603,-7.409712621],[16.687422704,-6.973847173],[14.940069049,-6.413448739],[13.231631951,-5.728517320],[11.569894719,-4.919052916],[9.962640666,-3.985055527],[8.417653102,-2.926525153],[6.942715339,-1.743461793],[5.545610688,-0.435865448],[4.234122459,0.996263882],[3.016033965,2.552926197],[1.899128517,4.234121498],[0.891189424,6.039849783],[0.000000000,7.970111054] ];
// paths for svg_4
points_svg_4_1 = [ [7.970112613,5.977584460],[7.526398179,4.709342112],[6.875946235,3.533657877],[6.037242689,2.483944814],[5.034123576,1.590035871],[3.895097639,0.877336027],[2.652536106,0.366100280],[1.341752696,0.070857999],[0.000000000,0.000000000] ];
// paths for svg_5
points_svg_5_1 = [ [-3.985056307,5.977584460],[-3.541341872,4.709342112],[-2.890889929,3.533657877],[-2.052186382,2.483944814],[-1.049067269,1.590035871],[0.089958668,0.877336027],[1.332520201,0.366100280],[2.643303611,0.070857999],[3.985056307,0.000000000] ];
// paths for svg_6
points_svg_6_1 = [ [4.981320383,3.985056307],[4.885605709,2.430164470],[4.602139947,0.935026255],[4.141816528,-0.442901015],[3.522325422,-1.650664369],[2.767473326,-2.641850138],[1.906268782,-3.378367609],[0.971807398,-3.831912828],[0.000000000,-3.985056307],[-0.971807398,-3.831912828],[-1.906268782,-3.378367609],[-2.767473326,-2.641850138],[-3.522325422,-1.650664369],[-4.141816528,-0.442901015],[-4.602139947,0.935026255],[-4.885605709,2.430164470],[-4.981320383,3.985056307],[-4.885605709,5.539948143],[-4.602139947,7.035086358],[-4.141816528,8.413013629],[-3.522325422,9.620776982],[-2.767473326,10.611962751],[-1.906268782,11.348480222],[-0.971807398,11.802025441],[0.000000000,11.955168920],[0.971807398,11.802025441],[1.906268782,11.348480222],[2.767473326,10.611962751],[3.522325422,9.620776982],[4.141816528,8.413013629],[4.602139947,7.035086358],[4.885605709,5.539948143],[4.981320383,3.985056307] ];
// paths for svg_7
points_svg_7_1 = [ [0.000000000,3.985056307],[0.095714674,2.430164470],[0.379180436,0.935026255],[0.839503855,-0.442901015],[1.458994961,-1.650664369],[2.213847057,-2.641850138],[3.075051601,-3.378367609],[4.009512986,-3.831912828],[4.981320383,-3.985056307],[5.953127781,-3.831912828],[6.887589165,-3.378367609],[7.748793709,-2.641850138],[8.503645806,-1.650664369],[9.123136911,-0.442901015],[9.583460330,0.935026255],[9.866926092,2.430164470],[9.962640767,3.985056307],[9.866926092,5.539948143],[9.583460330,7.035086358],[9.123136911,8.413013629],[8.503645806,9.620776982],[7.748793709,10.611962751],[6.887589165,11.348480222],[5.953127781,11.802025441],[4.981320383,11.955168920],[4.009512986,11.802025441],[3.075051601,11.348480222],[2.213847057,10.611962751],[1.458994961,9.620776982],[0.839503855,8.413013629],[0.379180436,7.035086358],[0.095714674,5.539948143],[0.000000000,3.985056307] ];
module polygon_svg_1() {
{
polygon(points=points_svg_1_1);
}
}
module polygon_svg_2() {
{
polygon(points=points_svg_2_1);
}
}
module polygon_svg_3() {
{
polygon(points=points_svg_3_1);
}
}
module polygon_svg_4() {
{
polygon(points=points_svg_4_1);
}
}
module polygon_svg_5() {
{
polygon(points=points_svg_5_1);
}
}
module polygon_svg_6() {
{
polygon(points=points_svg_6_1);
}
}
module polygon_svg_7() {
{
polygon(points=points_svg_7_1);
}
}
linear_extrude(height=stencilHeight)
scale(faceSize/79.65)
difference() {
translate(center_svg_2) polygon_svg_2();
translate(center_svg_3) polygon_svg_3();
translate(center_svg_4) polygon_svg_4();
translate(center_svg_5) polygon_svg_5();
translate(center_svg_6) polygon_svg_6();
translate(center_svg_7) polygon_svg_7();
}