chiark / gitweb /
fairphone4-case-tripod: wip
[reprap-play.git] / fairphone4-case-tripod.scad
1 // -*- C -*-
2
3 include <camera-mount.scad>
4
5 tr_cube_sz = [20, 20, 15];
6 tr_around = 10;
7
8 module Mount(){
9   difference(){
10     translate([0, tr_cube_sz[1]/2, tr_cube_sz[2]/2])
11       cube(tr_cube_sz, center=true);
12     translate([0, tr_cube_sz[1]/2, 0])
13       rotate([180,0,0])
14       render() CameraMountThread(tr_cube_sz[2] + 1);
15   }
16 }
17
18 module CaseMounted(){ ////toplevel
19   difference(){
20     render() Case();
21     translate([ phone_width/2, -phone_height/2 ])
22       linextr(-50, 50)
23       square([phone_width, phone_height] - tr_around * 2 * [1,1],
24              center=true);
25   }
26   translate([ phone_width * 0.85,
27               -phone_height - tr_cube_sz[1],
28               epp3[1] - case_th_bottom ])
29     Mount();
30 }
31
32 //// toplevels-from:
33 include <fairphone4-case.scad>
34 $suppress_hinge = true;