chiark / gitweb /
fairphone4-case-tripod: adjust
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 22 May 2023 09:04:18 +0000 (10:04 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 22 May 2023 09:04:18 +0000 (10:04 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone4-case-tripod.scad

index 147adb65d6bece6ff1d263b5b944e07bc0aadf56..b244673c86af0054eac31053348a17bce58af773 100644 (file)
@@ -2,14 +2,16 @@
 
 include <camera-mount.scad>
 
+tr_cube_offset = 20;
 tr_cube_sz = [20, 20, 15];
 tr_around = 10;
 
 module Mount(){
+  translate([0,  - tr_cube_sz[1], 0])
   difference(){
-    translate([0, tr_cube_sz[1]/2, tr_cube_sz[2]/2])
-      cube(tr_cube_sz, center=true);
-    translate([0, tr_cube_sz[1]/2, 0])
+    translate([0, tr_cube_sz[1]/2 - tr_cube_offset/2, tr_cube_sz[2]/2])
+      cube(tr_cube_sz + [0, tr_cube_offset, 0], center=true);
+    translate([0, tr_cube_sz[1]/2 - tr_cube_offset, 0])
       rotate([180,0,0])
       render() CameraMountThread(tr_cube_sz[2] + 1);
   }
@@ -23,9 +25,10 @@ module CaseMounted(){ ////toplevel
       square([phone_width, phone_height] - tr_around * 2 * [1,1],
             center=true);
   }
-  translate([ phone_width * 0.85,
-             -phone_height - tr_cube_sz[1],
+  translate([ phone_width,
+             -phone_height + tr_cube_sz[0] * 0.7,
              epp3[1] - case_th_bottom ])
+    rotate([0,0,90])
     Mount();
 }