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