forked from jeremybennett/scad-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
discovery-support.scad
46 lines (38 loc) · 1.32 KB
/
discovery-support.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
// Discovery supporter 3D Design
// Copyright (c) 2014 by Jeremy Bennett <jeremy.bennett@embecosm.com>
// Licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported
// License.
// You should have received a copy of the license along with this work. If not,
// see <http://creativecommons.org/licenses/by-sa/3.0/>.
// -----------------------------------------------------------------------------
// The main block
module main_block () {
union () {
translate (v = [0, 0, 5])
cube (size = [18, 6, 10], center = true);
translate (v = [18 / 2, 0, 13 / 2])
cylinder (r = 3, h = 13, center = true, $fn = 24);
translate (v = [-18 / 2, 0, 13 / 2])
cylinder (r = 3, h = 13, center = true, $fn = 24);
}
}
// The support
module discovery_support () {
difference () {
// The main support
translate (v = [10 / 2, 10 / 2, 13 / 2])
cube (size = [10, 10, 13], center = true);
// Slot for the board
translate (v = [10 / 2 + 4.5, 10 / 2 + 4.5, 2.2 / 2 + 9])
cube (size = [10, 10, 2.2], center = true);
// Screw hole
translate (v = [3, 3, 13 / 2])
cylinder (r = 1.7, h = 13.2, center = true, $fn = 24);
// Screw countersink
translate (v = [3, 3, 13.1 - 1.3 / 2])
cylinder (r1 = 1.7, r2 = 3, h = 1.3, center = true, $fn = 24);
}
}
// Rotate for better printing
rotate (a = [90, 0, 0])
discovery_support ();