forked from vector76/gridfinity_openscad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgridfinity_glue_stick.scad
More file actions
25 lines (20 loc) · 832 Bytes
/
gridfinity_glue_stick.scad
File metadata and controls
25 lines (20 loc) · 832 Bytes
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
include <modules/gridfinity_modules.scad>
cup_height = 5;
stick_diameter = 30;
easement_z = 0.7; // a slightly large opening at the top for compliance while inserting.
minimum_wall = 4;
blocks_needed = ceil((stick_diameter+2*minimum_wall)/gridfinity_pitch);
render()
glue_stick_cup(blocks_needed, blocks_needed, cup_height);
module glue_stick_cup(num_x=1, num_y=1, num_z=2) {
difference() {
grid_block(num_x, num_y, num_z, magnet_diameter=0, screw_depth=0, center=true);
glue_stick(num_z, stick_diameter);
}
}
module glue_stick(num_z=5, diam) {
floor_thickness = blocks_needed > 1 ? 5.5 : 1.2;
translate([0, 0, floor_thickness]) cylinder(h=num_z*gridfinity_zpitch, d=diam);
translate([0, 0, (num_z - easement_z)*gridfinity_zpitch + 1.2])
cylinder(h=easement_z*gridfinity_zpitch, d1=diam, d2=diam*1.1);
}