forked from goetzvr/siemens-lady-plus-253-korbrollen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Korbrolle.scad
68 lines (59 loc) · 1.7 KB
/
Korbrolle.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
include <BOSL/constants.scad>
use <BOSL/transforms.scad>
use <BOSL/shapes.scad>
use <BOSL/metric_screws.scad>
use <BOSL/masks.scad>
spokeHeight=1;
spokeWidth=1.5;
numberOfSpokes=11;
innerDiameter=10.5;
// outer - inner
wallThickness=13.9-innerDiameter;
wheelDiameter=23.2;
wheelWidth=6.3;
// elevation of axis
wheelOffset=wheelWidth/2;
innerLength=12.3-wheelOffset;
fillet_mask=0.5;
$fn=120;
module spoke() {
translate([(wheelDiameter-innerDiameter)/2,0,0]) {
rot([0,180,0]) {
right_triangle(size=[(wheelDiameter-innerDiameter)/2-wallThickness/2, spokeWidth, wheelWidth/2], orient=ORIENT_Y);
down(spokeHeight) cube(size=[wheelDiameter-innerDiameter-wallThickness*2, spokeWidth, spokeHeight]);
}
}
}
module axis() {
union()translate([0,0,wheelOffset]) {
difference() {
difference() {
cylinder(d=innerDiameter+wallThickness, h=innerLength);
cylinder(d=innerDiameter,h=innerLength);
}
up(innerLength) {
chamfer_hole_mask(d=innerDiameter,chamfer=.5);
}
}
arc_of(d=innerDiameter-wallThickness/4,n=numberOfSpokes) {
spoke();
}
}
}
module wheel() {
difference(){
cylinder(d=wheelDiameter, h=wheelWidth);
cylinder(d=wheelDiameter-wallThickness, h=wheelWidth);
up(wheelWidth) {
fillet_cylinder_mask(r=wheelDiameter/2);
fillet_hole_mask(r=(wheelDiameter-wallThickness)/2);
}
rotate([0, 180, 0]) {
fillet_cylinder_mask(r=wheelDiameter/2);
fillet_hole_mask(r=(wheelDiameter-wallThickness)/2);
}
} // difference
}
// compose object
wheel();
axis();