// -*- C -*- include tr_cube_sz = [20, 20, 15]; tr_around = 10; tr_over = 1; module Mount(){ 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]) rotate([180,0,0]) render() CameraMountThread(tr_cube_sz[2] - tr_over); } } module CaseMounted(){ ////toplevel difference(){ render() Case(); translate([ phone_width/2, -phone_height/2 ]) linextr(-50, 50) square([phone_width, phone_height] - tr_around * 2 * [1,1], center=true); } translate([ phone_width * 0.85, -phone_height - tr_cube_sz[1], epp3[1] - case_th_bottom ]) Mount(); } //// toplevels-from: include $suppress_hinge = true;