aboutsummaryrefslogtreecommitdiff
path: root/tabletop_tablet_stand_base.scad
diff options
context:
space:
mode:
authorpacien2019-08-12 03:33:00 +0200
committerpacien2019-08-12 03:33:00 +0200
commit0bcc95d781157499404051ae569140695cc0e65b (patch)
treee37eec85aff7daea0971383c07339238054595ee /tabletop_tablet_stand_base.scad
parent453630344e12c8f57821a5ee9f56025228599827 (diff)
downloadtabletop-tablet-stand-0bcc95d781157499404051ae569140695cc0e65b.tar.gz
import first version
Diffstat (limited to 'tabletop_tablet_stand_base.scad')
-rw-r--r--tabletop_tablet_stand_base.scad50
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 @@
1thickness = 12;
2legWidth = 20;
3legWallThickness = 2;
4rearLegLength = 40;
5frontLegLength = 90;
6frontLegCenterRotationDegrees = 65;
7legLift = 2;
8
9nutInsetHeight = 4;
10nutInsetDiameter = 15;
11
12threadDiameter = 6;
13
14module 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
29difference() {
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}