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, 20, 15];
6 around = 10;
7 over = 1;
8
9 module Mount(){
10   difference(){
11     translate([0, cube_sz[1]/2, cube_sz[2]/2])
12       cube(cube_sz, center=true);
13     translate([0, cube_sz[1]/2, 0])
14 //      rotate([90,0,0])
15       render() CameraMountThread(cube_sz[2] - over);
16   }
17 }
18
19 module CaseMounted(){ ////toplevel
20   difference(){
21     render() Case();
22     translate([ phone_width/2, -phone_height/2 ])
23       linextr(-50, 50)
24       square([phone_width, phone_height] - around * 2 * [1,1],
25              center=true);
26   }
27   translate([ phone_width * 0.85,
28               -phone_height - cube_sz[1],
29               epp3[1] - case_th_bottom ])
30     Mount();
31 }
32
33 //// toplevels-from:
34 include <fairphone4-case.scad>
35 $suppress_hinge = true;