-
Notifications
You must be signed in to change notification settings - Fork 0
/
robot_vac_comb.scad
53 lines (47 loc) · 1.22 KB
/
robot_vac_comb.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
brush_diameter = 15; //mm
comb_height = 20; //mm
side_thickness = 3; // mm
tooth_thickness = 1.2;
spacing_constant=450;
band_height = 3.2; //mm
band_thickness = 3.2; //mm
$fn=48;
difference() {
union() {
// whole comb
cylinder(
d1=brush_diameter + 2 * side_thickness,
d2=brush_diameter + 2 * tooth_thickness,
h=comb_height
);
// handle of comb
cylinder(d=brush_diameter + 2 * band_thickness, h = band_height);
}
// cut out middle
translate([0, 0, -0.1]) {
cylinder(
d1=brush_diameter + 2 * tooth_thickness,
d2=brush_diameter,
h=comb_height + 0.2
);
}
// cut out teeth
translate([0, 0, comb_height / 2 + 0.1]) {
for(a=[0:teeth_angle(brush_diameter):360]) {
rotate([0, -90, a]) {
linear_extrude(brush_diameter) {
polygon([[0,1], [comb_height / 2 + 0.1, 1.5], [comb_height / 2 + 0.1, -1.5], [0,-1]]);
}
}
}
}
// cut out the expansion slit
translate([0, 0, -0.1]) {
rotate([0, -90, 0]) {
linear_extrude(brush_diameter) {
polygon([[0,1], [comb_height + 0.2, 1], [comb_height + 0.2, -1], [0,-1]]);
}
}
}
}
function teeth_angle(diameter) = 360 / floor(360 / (spacing_constant / diameter));