forked from revarbat/snappy-reprap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatform_support_parts.scad
174 lines (142 loc) · 4.07 KB
/
platform_support_parts.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
include <config.scad>
use <GDMUtils.scad>
use <joiners.scad>
use <cable_chain.scad>
module platform_support1()
{
joiner_length=10;
w=20;
l=(max(glass_width,hbp_width)-platform_width)/2;
h=3;
hole_xoff = (hbp_hole_length/2 - platform_length - 20.5 + joiner_width/2);
hole_yoff = -(hbp_hole_width - platform_width)/2;
color("Chocolate")
prerender(convexity=10)
difference() {
union() {
// Side support strut
translate([-(joiner_width-0.1)/2, -joiner_length*3/4, h-20/2-0.1]) {
left_half() {
trapezoid([0.1, joiner_length/2], [w*2, joiner_length/2], h=20, center=true);
}
}
// Side strut
translate([-(w-joiner_width)/2, -joiner_length/2, h/2]) {
cube(size=[w, joiner_length, h], center=true);
}
// Clip platform
translate([(hole_xoff+3-w/2), -l/2, h/2]) {
cube(size=[w, l, h], center=true);
}
// joiners.
down(platform_height/2-0.05) {
chamfer(chamfer=joiner_width/3, size=[joiner_width, 2*joiner_length, platform_height], edges=[[0,0,0,0], [0,0,1,1], [0,0,0,0]]) {
joiner(h=platform_height, w=joiner_width, l=joiner_length, a=joiner_angle);
}
}
}
translate([hole_xoff, hole_yoff, 0])
cylinder(h=h*3, d=hbp_screwsize*1.1, center=true, $fn=8);
}
}
//!platform_support1();
module platform_support2()
{
joiner_length=10;
w=20;
l=(max(glass_width,hbp_width)-platform_width)/2;
h=3;
hole_xoff = -(hbp_hole_length/2 - platform_length - 20 + joiner_width/2);
hole_yoff = -(hbp_hole_width - platform_width)/2;
color("Chocolate")
prerender(convexity=10)
difference() {
union() {
// Side support strut
translate([(joiner_width-0.1)/2, -joiner_length*3/4, h-20/2-0.1]) {
right_half() {
trapezoid([0.1, joiner_length/2], [w*2, joiner_length/2], h=20, center=true);
}
}
// Side strut
translate([(w-joiner_width)/2, -joiner_length/2, h/2]) {
cube(size=[w, joiner_length, h], center=true);
}
// Clip platform
translate([(hole_xoff-3+w/2), -l/2, h/2]) {
cube(size=[w, l, h], center=true);
}
// joiners.
down(platform_height/2-0.05) {
chamfer(chamfer=joiner_width/3, size=[joiner_width, 2*joiner_length, platform_height], edges=[[0,0,0,0], [0,0,1,1], [0,0,0,0]]) {
yrot(180) joiner(h=platform_height, w=joiner_width, l=joiner_length, a=joiner_angle);
}
}
}
translate([hole_xoff, hole_yoff, 0])
cylinder(h=h*3, d=hbp_screwsize*1.1, center=true, $fn=8);
}
}
//!platform_support2();
module platform_support3()
{
joiner_length=10;
w=20;
l=(max(glass_width,hbp_width)-platform_width)/2;
h=3;
hole_xoff = (hbp_hole_length/2 - platform_length - 20.5 + joiner_width/2);
hole_yoff = -(hbp_hole_width - platform_width)/2;
color("Chocolate")
prerender(convexity=10)
difference() {
union() {
// Side support strut
translate([-(joiner_width-0.1)/2, -joiner_length*3/4, h-20/2-0.1]) {
left_half() {
trapezoid([0.1, joiner_length/2], [w*2, joiner_length/2], h=20, center=true);
}
}
// Side strut
translate([-(w-joiner_width)/2, -joiner_length/2, h/2]) {
cube(size=[w, joiner_length, h], center=true);
}
// Clip platform
translate([(hole_xoff+3-w/2), -l/2, h/2]) {
cube(size=[w, l, h], center=true);
}
// joiners.
down(platform_height/2-0.05) {
chamfer(chamfer=joiner_width/3, size=[joiner_width, 2*joiner_length, platform_height], edges=[[0,0,0,0], [0,0,1,1], [0,0,0,0]]) {
joiner(h=platform_height, w=joiner_width, l=joiner_length, a=joiner_angle);
}
}
// cable chain mount
fwd(cable_chain_width/2+5) {
right(8-0.05) {
up(3) {
zrot(90) xrot(180) {
cable_chain_mount2();
cable_chain_barrel();
}
}
}
}
}
translate([hole_xoff, hole_yoff, 0])
cylinder(h=h*3, d=hbp_screwsize*1.1, center=true, $fn=8);
}
}
//!platform_support3();
module platform_support_parts() { // make me
zring(n=2) {
up(3) {
back(8) {
left(30) xrot(180) platform_support2();
right(30) xrot(180) platform_support1();
}
}
}
up(3) back(50) xrot(180) platform_support3();
}
platform_support_parts();
// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap