chiark / gitweb /
fairphone4-case-tripod: wip
[reprap-play.git] / fairphone4-case-tripod.scad
1 // -*- C -*-
2
3 include <camera-mount.scad>
4
5 cube_sz = [20, 12, 20];
6 around = 10;
7
8 module Mount(){
9   difference(){
10     translate([0, cube_sz[1]/2, cube_sz[2]/2])
11       cube(cube_sz, center=true);
12     translate([0, 0, cube_sz[2]/2])
13       rotate([90,0,0])
14       render() CameraMountThread(cube_sz[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] - around * 2 * [1,1],
24              center=true);
25   }
26   translate([ phone_width * 0.15,
27               -phone_height - 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;