-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwide-interior-railing.scad
93 lines (89 loc) · 2.17 KB
/
wide-interior-railing.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
thickness = 3;
depth = 8;
latch = 5;
arm = 28;
lights = 6;
width = 136.9;
cap_angle = 3;
cap_length = sqrt(2*(cap_angle*cap_angle));
clip_radius = 18.85/2;
clip_diameter = 2* clip_radius;
clip_bulge = 2;
round_rect = 4.1;
$fn = 60;
// Top Connector
translate([-thickness,0,0]){
cube([width + 2*(thickness),thickness, depth]);
}
// End Top Connector
// Light Arm & Loop
translate([-(arm+lights),0,0]){
difference(){
union(){
cube([arm+lights,thickness,depth]);
cylinder(d=lights+thickness,h=depth);
}
translate([0,0,-1]){
cylinder(d=lights,h=depth+2);
translate([0,0,0]){
cube([3,10,depth+2]);
}
}
}
}
// End Light Arm & Loop
// Railing Clips
translate([0,-(round_rect),0]){
difference(){
union(){
cylinder(r=round_rect+thickness,h=depth);
translate([width,0,0]){
cylinder(r=round_rect+thickness,h=depth);
}
translate([0,-(clip_diameter - (2*round_rect)),0]){
cylinder(r=round_rect+thickness,h=depth);
}
translate([width,-(clip_diameter - (2*round_rect)),0]){
cylinder(r=round_rect+thickness,h=depth);
}
translate([-(round_rect+thickness),-clip_diameter+2*(round_rect),0]){
cube([width+(2*round_rect)+(2*thickness),clip_diameter-2*(round_rect),depth]);
}
}
translate([0,0,-1]){
// translate([-clip_bulge,0,0]){
// cylinder(d=clip_diameter,h=depth+2);
// }
// translate([width + clip_bulge,0,0]){
// cylinder(d=clip_diameter,h=depth+2);
// }
translate([0,-clip_diameter+round_rect-thickness,0]){
cube([width,clip_diameter+thickness, depth + 2]);
}
translate([-round_rect,-clip_diameter+2*(round_rect),0]){
cube([width+(2*round_rect),clip_diameter-2*(round_rect),depth + 2]);
}
// Cap Angle Cuts
translate([0,0,0]){
cylinder(r=round_rect,h=depth+2);
//rotate([0,0,45]){
// cube([cap_length,cap_length,10]);
//}
}
translate([width,0,0]){
cylinder(r=round_rect,h=depth+2);
//rotate([0,0,45]){
// cube([cap_length,cap_length,10]);
//}
}
translate([0,-(clip_diameter - (2*round_rect)),0]){
cylinder(r=round_rect,h=depth+2);
}
translate([width,-(clip_diameter - (2*round_rect)),0]){
cylinder(r=round_rect,h=depth+2);
}
// End Cap Angle Cuts
}
}
}
// End Railing Clips