-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathant_nest_big.scad
99 lines (78 loc) · 2.1 KB
/
ant_nest_big.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
use <chamfer.scad>;
glass_width = 138;
glass_height = 179;
glass_depth = 2.2;
nest_gap = 10;
frame_overlap = 5;
frame_offset = 5;
cover_offset = 1;
light_cover();
module light_cover() {
translate([0,0,10]){
cube([
glass_width - frame_overlap*2 - cover_offset*2,
glass_height - frame_overlap*2 - cover_offset*2,
glass_depth], true);
for(i=[-1:1]){
translate([-glass_width/2-frame_offset,i*glass_height/4,0])
rotate([90])
rotate_extrude(angle = 90, $fn=10)
translate([30,0,0])
square(10, true);
}
}
}
module glass() {
cube([glass_width, glass_height, glass_depth], true);
}
module glass_plates(){
translate([0,0,(nest_gap+glass_depth)/2])
glass();
translate([0,0,-(nest_gap+glass_depth)/2])
glass();
}
module frame(){
difference(){
chamfered_cube([
glass_width + frame_offset*2,
glass_height + frame_offset*2,
glass_depth + frame_offset*2 + glass_depth*2 + nest_gap
], 1, true);
cube([
glass_width - frame_overlap*2,
glass_height - frame_overlap*2,
glass_depth + frame_offset*3 + glass_depth*2 + nest_gap
], true);
}
}
module air_gap(){
translate([glass_width*0.4,0,nest_gap/4])
cube([glass_width/8 , 200, 0.3], true);
translate([glass_width*0.4,0,-nest_gap/4])
cube([glass_width/8 , 200, 0.3], true);
translate([glass_width/16 + glass_width*0.4,0,0])
cube([0.1 , 200, nest_gap/2+0.3], true);
translate([-glass_width/16 + glass_width*0.4,0,nest_gap*1.25])
cube([0.1 , 200, nest_gap*2+0.3], true);
translate([-glass_width/16 + glass_width*0.4,0,-nest_gap*1.25])
cube([0.1 , 200, nest_gap*2+0.3], true);
}
module tube(){
translate([glass_width/4,glass_height/2,0])
rotate([90,0,0])
cylinder(
frame_overlap+frame_offset,
6/2,
5.2/2,
center=true,
$fn=40
);
}
/*
difference(){
frame();
air_gap();
glass_plates();
#tube();
}
*/