diff options
author | pacien | 2019-08-12 03:33:00 +0200 |
---|---|---|
committer | pacien | 2019-08-12 03:33:00 +0200 |
commit | 0bcc95d781157499404051ae569140695cc0e65b (patch) | |
tree | e37eec85aff7daea0971383c07339238054595ee /tabletop_tablet_stand_base.scad | |
parent | 453630344e12c8f57821a5ee9f56025228599827 (diff) | |
download | tabletop-tablet-stand-0bcc95d781157499404051ae569140695cc0e65b.tar.gz |
import first version
Diffstat (limited to 'tabletop_tablet_stand_base.scad')
-rw-r--r-- | tabletop_tablet_stand_base.scad | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tabletop_tablet_stand_base.scad b/tabletop_tablet_stand_base.scad new file mode 100644 index 0000000..b168f44 --- /dev/null +++ b/tabletop_tablet_stand_base.scad | |||
@@ -0,0 +1,50 @@ | |||
1 | thickness = 12; | ||
2 | legWidth = 20; | ||
3 | legWallThickness = 2; | ||
4 | rearLegLength = 40; | ||
5 | frontLegLength = 90; | ||
6 | frontLegCenterRotationDegrees = 65; | ||
7 | legLift = 2; | ||
8 | |||
9 | nutInsetHeight = 4; | ||
10 | nutInsetDiameter = 15; | ||
11 | |||
12 | threadDiameter = 6; | ||
13 | |||
14 | module leg(width, length, thickness) { | ||
15 | difference() { | ||
16 | translate([-width/2, 0, 0]) | ||
17 | cube([width, length, thickness]); | ||
18 | |||
19 | translate([-width/2+legWallThickness, 0, legWallThickness]) | ||
20 | cube([width - 2*legWallThickness, length, thickness - legWallThickness]); | ||
21 | } | ||
22 | |||
23 | translate([0, length, 0]) | ||
24 | cylinder(r = width/2, h = thickness + legLift); | ||
25 | |||
26 | cylinder(r = width/2, h = thickness); | ||
27 | } | ||
28 | |||
29 | difference() { | ||
30 | union() { | ||
31 | // rear leg | ||
32 | rotate([0, 0, 180]) | ||
33 | leg(legWidth, rearLegLength, thickness); | ||
34 | |||
35 | // right leg | ||
36 | rotate([0, 0, -frontLegCenterRotationDegrees]) | ||
37 | leg(legWidth, frontLegLength, thickness); | ||
38 | |||
39 | // leftleg | ||
40 | rotate([0, 0, +frontLegCenterRotationDegrees]) | ||
41 | leg(legWidth, frontLegLength, thickness); | ||
42 | } | ||
43 | |||
44 | // thread hole | ||
45 | cylinder(r = threadDiameter/2, h = thickness); | ||
46 | |||
47 | // nut inset | ||
48 | translate([0, 0, thickness - nutInsetHeight]) | ||
49 | cylinder(r = nutInsetDiameter/2, h = nutInsetHeight); | ||
50 | } | ||