-
Notifications
You must be signed in to change notification settings - Fork 0
/
MuklukPattern.scad
193 lines (143 loc) · 6.32 KB
/
MuklukPattern.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
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
WidestPart = 110; // Widest Part of foot
Length = 285; //Length of Foot
Rise = 30; // effectivly hight of foot around the toes to the mid point.
LengthOfVamp = 130; //85; // Length of top part of the toe of the shoe. Basically from toe to where your foot starts to rise up to your ankle
LegWidestAround = 460; // How far around a tape measure goes around the widest part of your calf.
UpperHeight = 460; // From Floor
SeamAllowance = 5;
StitchHoles = 1.5;
StichGap = 3;
Lower();
translate ([FinalWidth+ SeamAllowance, 0]) Vamp();
translate ([FinalWidth+ SeamAllowance + WidestPart, 0]) FoldedUpper();
FinalWidth = WidestPart + Rise*2 + SeamAllowance*2;
VampOffset = Rise;// It's the stepback from the center of the circle making the toe
module FoldedUpper()
{
hull()
{
square([1, ((Length - FinalWidth/2) ) / 2 + 40 + 20 + SeamAllowance]);
translate([Rise, -LengthOfVamp/2]) square([1, LengthOfVamp/2]);
translate([UpperHeight, -LengthOfVamp/2]) square([1, LegWidestAround/2]);
}
}
module Vamp()
{
difference()
{
hull()
{
circle(d= WidestPart,$fn=60);
translate([ -(WidestPart + Rise) / 2, LengthOfVamp - WidestPart/2 ]) square([WidestPart + Rise, 1]);
}
translate([ -(WidestPart + Rise) / 2 + SeamAllowance, LengthOfVamp - WidestPart/2 - SeamAllowance]) square([WidestPart + Rise - SeamAllowance - SeamAllowance, SeamAllowance + SeamAllowance]);
}
intersection()
{
translate([0, -Length + (LengthOfVamp - WidestPart/2) + SeamAllowance + SeamAllowance])
difference()
{
circle(r= Length,$fn=60);
//create Quarter circle pattern
// We need to do better math and calculate the right gap instead of making up numbers for the degrees
for (i=[0:1:180]) {
//theta is degrees set by for loop from 0 to 360 (degrees)
theta=i;
//this sets the x axis point based on the COS of the theta
x=0+((Length-SeamAllowance))*cos(theta);
//this sets the y axis point based on the sin of the theta
y=0+((Length-SeamAllowance))*sin(theta);
//this creates the circle or other obect at the x,y point
translate([x,y,0])circle(d=StitchHoles,$fn=60);
}//end for loop for circle creation
}
translate([0, (LengthOfVamp - WidestPart/2) + SeamAllowance + SeamAllowance]) circle(d= WidestPart + Rise);
}
}
module Lower()
{
union()
{
Toe();
translate([-FinalWidth/2, 0]) MainSection();
translate([-20, Length-(FinalWidth/2) + VampOffset]) HeelTab();
translate([20.1, Length-(FinalWidth/2) + VampOffset]) Heels();
translate([-FinalWidth/2 , Length-(FinalWidth/2) + VampOffset]) Heels();
}
}
module HeelTab()
{
difference()
{
square([40, FinalWidth/2 - 20]);
// Long lines
for(offset = [0 : StitchHoles + StichGap : (FinalWidth/2 -20) - SeamAllowance - SeamAllowance])
{
translate([SeamAllowance, offset + SeamAllowance] ) circle(d=StitchHoles,$fn=60);
translate([20 - SeamAllowance , offset + SeamAllowance] ) circle(d=StitchHoles,$fn=60);
translate([20 + SeamAllowance, offset + SeamAllowance] ) circle(d=StitchHoles,$fn=60);
translate([40 - SeamAllowance, offset + SeamAllowance] ) circle(d=StitchHoles,$fn=60);
}
// middle holes
translate([20/2, FinalWidth/2 -20 -SeamAllowance ]) circle(d=StitchHoles,$fn=60);
translate([20/2, SeamAllowance ]) circle(d=StitchHoles,$fn=60);
translate([40 - 20/2, FinalWidth/2 -20 -SeamAllowance ]) circle(d=StitchHoles,$fn=60);
translate([40 - 20/2, SeamAllowance ]) circle(d=StitchHoles,$fn=60);
}
}
module Heels()
{
difference()
{
square([FinalWidth/2 - 20.1, 20]);
// Outer line
for(offset = [0 : StitchHoles + StichGap : (FinalWidth/2) - 20 - SeamAllowance - SeamAllowance])
{
translate([offset + SeamAllowance , 20 - SeamAllowance]) circle(d=StitchHoles,$fn=60);
}
// Inner Line
for(offset = [0 : StitchHoles + StichGap : (FinalWidth/2) - 20 - SeamAllowance - SeamAllowance])
{
translate([offset + SeamAllowance , SeamAllowance]) circle(d=StitchHoles,$fn=60);
}
translate([SeamAllowance , 20/2]) circle(d=StitchHoles,$fn=60);
translate([FinalWidth/2 -20 -SeamAllowance , 20/2]) circle(d=StitchHoles,$fn=60);
}
}
module Toe()
{
difference()
{
circle(d= FinalWidth,$fn=60);
//create Quarter circle pattern
for (i=[180:8:360]) {
//theta is degrees set by for loop from 0 to 360 (degrees)
theta=i;
//this sets the x axis point based on the COS of the theta
x=0+((FinalWidth/2-SeamAllowance))*cos(theta);
//this sets the y axis point based on the sin of the theta
y=0+((FinalWidth/2-SeamAllowance))*sin(theta);
//this creates the circle or other obect at the x,y point
translate([x,y,0])circle(d=StitchHoles,$fn=60);
}//end for loop for circle creation
// Lets lop off half the circle
translate([ -FinalWidth/2, 0]) square([FinalWidth,FinalWidth]);
}
}
module MainSection()
{
difference()
{
square([ FinalWidth , Length - FinalWidth/2 + VampOffset]);
for(offset = [0 : StitchHoles + StichGap : (Length - FinalWidth/2) - SeamAllowance - VampOffset - Rise - StichGap])
{
translate([SeamAllowance , offset + VampOffset + VampOffset + Rise + SeamAllowance] ) circle(d=StitchHoles,$fn=60);
translate([FinalWidth - SeamAllowance , offset + VampOffset + VampOffset + Rise + SeamAllowance] ) circle(d=StitchHoles,$fn=60);
}
for(offset = [0 : (StitchHoles + StichGap)*3 : VampOffset + Rise + Rise])
{
translate([SeamAllowance , offset ] ) circle(d=StitchHoles,$fn=60);
translate([FinalWidth - SeamAllowance , offset ] ) circle(d=StitchHoles,$fn=60);
}
}
}