-
Notifications
You must be signed in to change notification settings - Fork 1
/
C270Bracket.scad
60 lines (46 loc) · 1.16 KB
/
C270Bracket.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
$fn=90;
width=7;
height=7;
lampWidth=11;
smallScrew=2.8;
largeScrew=3.8;
mThreeHead=6;
lampScrew=5;
module lamp() {
translate([40,0,0])
difference() {
cube([lampWidth, 40, lampWidth]);
rotate([90,0,0])
translate([lampWidth/2, lampWidth/2,-5])
cylinder(r=smallScrew/2, h=10+1, center=true);
rotate([0, 90, 0])
translate([-lampWidth/2, 40-lampScrew, lampWidth/2])
cylinder(r=lampScrew/2, h=lampWidth*2, center=true);
}
}
module bracket() {
difference() {
translate([0, -width/2, 0]) // Goofed up my math in there somewhere
hull() {
rotate([0,90,0])
translate([-width/2,width,0])
cylinder(r=width/2 -1, h=width*3);
translate([width*2/3, width*3, 0])
cube([lampWidth, 1, width]);
}
translate([width, -1, -1])
cube([width, width+1, width+3]);
rotate([0,90,0])
translate([-width/2, width/2, 0])
cylinder(r=largeScrew/2, h=width);
rotate([0,90,0])
translate([-width/2, width/2, width*2])
cylinder(r=smallScrew/2, h=width);
rotate([90,0,0])
translate([width*3/2, width/2, -width*3])
cylinder(r=largeScrew/2, h=width*3);
rotate([90,0,0])
translate([width*3/2, width/2, -width-2])
cylinder(r=mThreeHead/2, h=width);
}
}