@@ -143,7 +143,7 @@ def __init__(self) -> None:
143
143
self .addSettingsArgs (edges .FingerJointSettings , surroundingspaces = 0.5 )
144
144
self .addSettingsArgs (edges .FlexSettings , distance = .75 , connection = 2. )
145
145
146
- self .buildArgParser (x = 150 , y = 100 , h = 100 )
146
+ self .buildArgParser (x = 100 , y = 150 , h = 100 )
147
147
self .argparser .add_argument (
148
148
"--radius" , action = "store" , type = float , default = 40.0 ,
149
149
help = "radius of the corners" )
@@ -165,34 +165,34 @@ def render(self):
165
165
166
166
t = self .thickness
167
167
self .ctx .save ()
168
- self .side (x , h , r , style , move = "right" )
169
- self .side (x , h , r , style , move = "right" )
168
+ self .side (y , h , r , style , move = "right" )
169
+ self .side (y , h , r , style , move = "right" )
170
170
if style == "single" :
171
- self .rectangularWall (y , h , "fFEF" , move = "right" )
171
+ self .rectangularWall (x , h , "fFEF" , move = "right" )
172
172
else :
173
- self .rectangularWall (y , h - r , "fFeF" , move = "right" )
174
- self .rectangularWall (y , h - r , "fFeF" , move = "right" )
173
+ self .rectangularWall (x , h - r , "fFeF" , move = "right" )
174
+ self .rectangularWall (x , h - r , "fFeF" , move = "right" )
175
175
176
176
if style == "double" :
177
177
self .cornerRadius (r , two = True , move = "right" )
178
178
179
179
self .cornerRadius (r , two = True , move = "right" )
180
180
if style == "single" :
181
- self .rails (x , r , move = "right" )
181
+ self .rails (y , r , move = "right" )
182
182
else :
183
- self .rails2 (x , r , move = "right" )
183
+ self .rails2 (y , r , move = "right" )
184
184
185
185
self .ctx .restore ()
186
- self .side (x , h , r , style , move = "up only" )
186
+ self .side (y , h , r , style , move = "up only" )
187
187
188
- self .rectangularWall (x , y , "FFFF" , move = "right" )
188
+ self .rectangularWall (y , x , "FFFF" , move = "right" )
189
189
190
190
if style == "single" :
191
- self .door (x - r + 0.5 * math .pi * r + 3 * t , y - 0.2 * t , move = "right" )
191
+ self .door (y - r + 0.5 * math .pi * r + 3 * t , x - 0.2 * t , move = "right" )
192
192
else :
193
- self .door (x - 2 * r + math .pi * r + 3 * t , y - 0.2 * t , move = "right" )
193
+ self .door (y - 2 * r + math .pi * r + 3 * t , x - 0.2 * t , move = "right" )
194
194
195
- self .rectangularWall (2 * t , y - 2.2 * t , edges = "eeef" , move = "right" )
195
+ self .rectangularWall (2 * t , x - 2.2 * t , edges = "eeef" , move = "right" )
196
196
197
197
198
198
a = 90. / n
@@ -204,28 +204,28 @@ def render(self):
204
204
205
205
if style == "double" :
206
206
if h - 2 * r > 2 * t :
207
- self .rectangularWall (h - 2 * r , y , "fBfe" , move = "right" )
208
- self .rectangularWall (ls , y , "fAfb" , move = "right" )
207
+ self .rectangularWall (h - 2 * r , x , "fBfe" , move = "right" )
208
+ self .rectangularWall (ls , x , "fAfb" , move = "right" )
209
209
else :
210
- self .rectangularWall (ls , y , "fAfe" , move = "right" )
210
+ self .rectangularWall (ls , x , "fAfe" , move = "right" )
211
211
212
212
for i in range (n - 2 ):
213
- self .rectangularWall (ls , y , "fAfa" , move = "right" )
213
+ self .rectangularWall (ls , x , "fAfa" , move = "right" )
214
214
215
- self .rectangularWall (ls , y , "fBfa" , move = "right" )
215
+ self .rectangularWall (ls , x , "fBfa" , move = "right" )
216
216
217
- self .rectangularWall (x - 2 * r , y , "fbfb" , move = "right" )
217
+ self .rectangularWall (y - 2 * r , x , "fbfb" , move = "right" )
218
218
else :
219
- self .rectangularWall (x - r , y , "fbfe" , move = "right" )
219
+ self .rectangularWall (y - r , x , "fbfe" , move = "right" )
220
220
221
- self .rectangularWall (ls , y , "fafB" , move = "right" )
221
+ self .rectangularWall (ls , x , "fafB" , move = "right" )
222
222
223
223
for i in range (n - 2 ):
224
- self .rectangularWall (ls , y , "fafA" , move = "right" )
224
+ self .rectangularWall (ls , x , "fafA" , move = "right" )
225
225
226
226
227
227
if h - 2 * r > 2 * t :
228
- self .rectangularWall (ls , y , "fbfA" , move = "right" )
229
- self .rectangularWall (h - 2 * r , y , "fefB" , move = "right" )
228
+ self .rectangularWall (ls , x , "fbfA" , move = "right" )
229
+ self .rectangularWall (h - 2 * r , x , "fefB" , move = "right" )
230
230
else :
231
- self .rectangularWall (ls , y , "fefA" , move = "right" )
231
+ self .rectangularWall (ls , x , "fefA" , move = "right" )
0 commit comments