-
Notifications
You must be signed in to change notification settings - Fork 53
/
gridfinity_basic_cup.scad
89 lines (85 loc) · 3.12 KB
/
gridfinity_basic_cup.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
// include <gridfinity_modules.scad>
use <gridfinity_cup_modules.scad>
// X dimension in grid units
width = 2; // [ 0.5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ]
// Y dimension in grid units
depth = 1; // [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ]
// Z dimension (multiples of 7mm)
height = 3;
// (Zack's design uses magnet diameter of 6.5)
magnet_diameter = 0; // .1
// (Zack's design uses depth of 6)
screw_depth = 0;
// Hole overhang remedy is active only when both screws and magnets are nonzero (and this option is selected)
hole_overhang_remedy = true;
//Only add attachments (magnets and screw) to box corners (prints faster).
box_corner_attachments_only = false;
// Fill in solid block (overrides all following options)
filled_in = false;
// X dimension subdivisions
chambers = 1;
// Include overhang for labeling (and specify left/right/center justification)
withLabel = "disabled"; // ["disabled", "left", "right", "center", "leftchamber", "rightchamber", "centerchamber"]
// Include larger corner fillet
fingerslide = true;
// Width of the label in number of units, or zero means full width
labelWidth = 0; // .01
// Minimum thickness above cutouts in base (Zack's design is effectively 1.2)
floor_thickness = 0.7;
// Wall thickness (Zack's design is 0.95)
wall_thickness = 0.95; // .01
// Efficient floor option saves material and time, but the floor is not smooth (only applies if no magnets, screws, or finger-slide used)
efficient_floor = false;
// When enabled, irregular subdivisions have to be defined in code
irregular_subdivisions = false;
// Enable to subdivide bottom pads to allow half-cell offsets
half_pitch = false;
// Remove some or all of lip
lip_style = "normal"; // [ "normal", "reduced", "none" ]
module end_of_customizer_opts() {}
// Separator positions are defined in terms of grid units from the left end
separator_positions = [ 0.25, 0.5, 1.4 ];
if (filled_in) {
grid_block(width, depth, height, magnet_diameter=magnet_diameter,
screw_depth=screw_depth, hole_overhang_remedy=hole_overhang_remedy,
half_pitch=half_pitch, box_corner_attachments_only=box_corner_attachments_only);
}
else if (irregular_subdivisions) {
irregular_cup(
num_x=width,
num_y=depth,
num_z=height,
withLabel=withLabel,
labelWidth=labelWidth,
fingerslide=fingerslide,
magnet_diameter=magnet_diameter,
screw_depth=screw_depth,
floor_thickness=floor_thickness,
wall_thickness=wall_thickness,
hole_overhang_remedy=hole_overhang_remedy,
separator_positions=separator_positions,
half_pitch=half_pitch,
lip_style=lip_style,
box_corner_attachments_only=box_corner_attachments_only
);
}
else {
basic_cup(
num_x=width,
num_y=depth,
num_z=height,
chambers=chambers,
withLabel=withLabel,
labelWidth=labelWidth,
fingerslide=fingerslide,
magnet_diameter=magnet_diameter,
screw_depth=screw_depth,
floor_thickness=floor_thickness,
wall_thickness=wall_thickness,
hole_overhang_remedy=hole_overhang_remedy,
efficient_floor=efficient_floor,
half_pitch=half_pitch,
lip_style=lip_style,
box_corner_attachments_only=box_corner_attachments_only
);
}