summaryrefslogtreecommitdiff
path: root/gimbal.scad
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2015-01-31 10:53:52 (GMT)
committerJan Huwald <jh@sotun.de>2015-01-31 10:53:52 (GMT)
commit96418523ec411a10a9379ca8a7f74b7dfe0570c3 (patch)
tree5bcfe4dd64bb4cc9801f971beac613d97ea51e88 /gimbal.scad
parentcb18d2d93200ab480233573453f1c6c01dfa26c3 (diff)
reshape top to allow free rotation of payload
Diffstat (limited to 'gimbal.scad')
-rw-r--r--gimbal.scad10
1 files changed, 10 insertions, 0 deletions
diff --git a/gimbal.scad b/gimbal.scad
index f85a4fa..e4a54f0 100644
--- a/gimbal.scad
+++ b/gimbal.scad
@@ -89,6 +89,16 @@ module shell() {
// hollow out the sphere
sphere(d/2);
+ // reduce top to a cone, so that an attached surface can
+ // rotate freely
+ assign(a=2 * (45 - acos((d - 2*cutoff) / d)))
+ assign(h=d * tan(a))
+ translate([0, 0, d/2 - h - cutoff*cos(a/2)])
+ difference() {
+ cylinder(r=d, h=d);
+ cylinder(r1=d, r2=0, h=h);
+ }
+
// add intro region
translate([0, 0, d])
cube([d-2*cutoff, d*2, 2*d], center=true);
contact: Jan Huwald // Impressum