@@ -24,9 +24,9 @@ function vec_add(v, add) = [for (i = v) i + add];
24
24
25
25
function eyelet_thickness() = $ e_thickness * 2 ;
26
26
27
- function attachment_screw_xpos () = $ e_thickness + $ e_attachment_screw_diameter * 1.125 ;
27
+ function mounting_screw_xpos () = $ e_thickness + $ e_mounting_screw_diameter * 1.125 ;
28
28
29
- function attachment_screw_eyelet_d () = $ e_attachment_screw_diameter * 1.125 ;
29
+ function mounting_screw_eyelet_d () = $ e_mounting_screw_diameter * 1.125 ;
30
30
31
31
// Public Modules //
32
32
@@ -38,9 +38,9 @@ module ebox(
38
38
insert_diameter= 4.5 ,
39
39
insert_depth= 10 ,
40
40
screw_style= "flag" ,
41
- attachment_screw_diameter = 4 ,
42
- attachment_screw_style = "flat" ,
43
- screw_eyelets = true ,
41
+ mounting_screws = true ,
42
+ mounting_screw_diameter = 4 ,
43
+ mounting_screw_style = "flat" ,
44
44
fill_lid= 0 ,
45
45
fill_bottom= 0 ,
46
46
fill_walls= [0 , 0 , 0 , 0 ]
@@ -55,9 +55,9 @@ module ebox(
55
55
$ e_insert_diameter = insert_diameter;
56
56
$ e_insert_depth = insert_depth;
57
57
$ e_screw_style = screw_style;
58
- $ e_attachment_screw_diameter = attachment_screw_diameter ;
59
- $ e_attachment_screw_style = attachment_screw_style ;
60
- $ e_screw_eyelets = screw_eyelets ;
58
+ $ e_mounting_screws = mounting_screws ;
59
+ $ e_mounting_screw_diameter = mounting_screw_diameter ;
60
+ $ e_mounting_screw_style = mounting_screw_style ;
61
61
$ e_fill_lid = fill_lid;
62
62
$ e_fill_bottom = fill_bottom;
63
63
$ e_fill_walls = fill_walls;
@@ -203,7 +203,7 @@ module _at_screws() {
203
203
module _at_box_screws() {
204
204
for (mx = [0 , 1 ])
205
205
mirror ([mx, 0 ])
206
- translate ([$ e_width / 2 + attachment_screw_xpos (), 0 ])
206
+ translate ([$ e_width / 2 + mounting_screw_xpos (), 0 ])
207
207
children();
208
208
}
209
209
@@ -271,7 +271,7 @@ module _box_body() {
271
271
}
272
272
273
273
module _box_screw_eyelets() {
274
- eyelet_round = attachment_screw_xpos () * 2 ;
274
+ eyelet_round = mounting_screw_xpos () * 2 ;
275
275
_round_3d()
276
276
translate ([0 , 0 , $ e_edge_radius])
277
277
linear_extrude(height= eyelet_thickness() - $ e_edge_radius * 2 )
@@ -283,7 +283,7 @@ module _box_screw_eyelets() {
283
283
_box_shape();
284
284
_at_box_screws()
285
285
union () {
286
- d = attachment_screw_eyelet_d ();
286
+ d = mounting_screw_eyelet_d ();
287
287
circle(d= d * 2 );
288
288
translate ([- d, 0 ])
289
289
square(d * 2 , center= true );
@@ -294,10 +294,10 @@ module _box_screw_eyelets() {
294
294
module _box_screws() {
295
295
_at_box_screws()
296
296
_screw_hole(
297
- d=$ e_attachment_screw_diameter ,
297
+ d=$ e_mounting_screw_diameter ,
298
298
fit=$ e_screw_fit,
299
299
h= eyelet_thickness() + slop * 2 ,
300
- style=$ e_attachment_screw_style
300
+ style=$ e_mounting_screw_style
301
301
);
302
302
}
303
303
@@ -331,7 +331,7 @@ module _box() {
331
331
difference () {
332
332
intersection () {
333
333
union () {
334
- if ($ e_screw_eyelets )
334
+ if ($ e_mounting_screws )
335
335
_box_screw_eyelets();
336
336
_box_body();
337
337
}
@@ -343,7 +343,7 @@ module _box() {
343
343
_at_screws()
344
344
translate ([0 , 0 , ($ e_height + $ e_thickness) - $ e_lid_height - $ e_insert_depth])
345
345
_screw_hole(d=$ e_insert_diameter, fit=$ e_screw_fit, h=$ e_insert_depth + $ e_thickness);
346
- if ($ e_screw_eyelets )
346
+ if ($ e_mounting_screws )
347
347
_box_screws();
348
348
_box_patterns();
349
349
ebox_cutouts();
0 commit comments