forked from eclecticc/ParametricCase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpower_switch.scad
44 lines (36 loc) · 982 Bytes
/
power_switch.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
// Parametric Mini-ITX Case
// https://github.com/eclecticc/ParametricCase
//
// BSD 2-Clause License
// Copyright (c) 2018, Nirav Patel, http://eclecti.cc
//
// Power switch modules
include <defaults.scad>;
power_switch_r = 16/2;
power_switch_h = 30;
module power_switch() {
$fn = 50;
// Body of the switch
color("Silver", 1.0) {
translate([0, 0, -power_switch_h]) cylinder(r = power_switch_r, h = power_switch_h);
difference() {
cylinder(r = 19/2, h = 1.6);
cylinder(r = 12/2, h = 2);
}
cylinder(r = 10/2, h = 1.7);
}
// LED ring
color("OrangeRed", 0.8) {
difference() {
cylinder(r = 12/2, h = 1.6);
cylinder(r = 10/2, h = 2);
}
}
}
module power_switch_cutout() {
$fn = 50;
// Chassis cut-out
translate([0, 0, -wall-extra/2]) cylinder(r = power_switch_r + 0.2, h = wall+extra);
}
//power_switch();
//% power_switch_cutout();