pow(sm_inner_rad - (wm_thick - sm_main_thick), 2) );
wm_y_screw = wm_y_min + wm_screw_around + wm_screw_dia/2;
wm_y_max = wm_y_screw + wm_screw_dia/2 + wm_screw_around;
+wm_y_slotc_screw = wm_y_screw + wm_screw_slot/2;
wm_y_slot1_screw = wm_y_screw + wm_screw_slot;
wm_y_slot1_max = wm_y_max + wm_screw_slot;
wm_z_slot0_screw = wm_main_width + wm_screwdriver_dia/2;
ImplHeadCup();
}
-module SomeStrap(width){
+module SomeStrap(width, cut_width=0){
// children(0) is to add, (1) subtract
difference(){
union(){
children(0);
}
translate([0,0,-1])
- cylinder(r=sm_inner_rad, h=width+2);
+ cylinder(r=sm_inner_rad, h=max(width+2, cut_width));
translate(smc_pos)
StrapMountBolt(10, width);
translate(smc_pos)
}
}
+module WallScrewHole(){ ////toplevel
+ linextr_x_yz(-(wm_thick + 1), 1)
+ circle(r = wm_screw_dia/2);
+}
+
module WallMount(){ ////toplevel
- SomeStrap(sm_main_width){
+ SomeStrap(sm_main_width, wm_z_max + 2){
union(){
linextr(0, wm_z_max){
translate([ -sm_outer_rad, 0 ])
[ wm_thick, wm_y_slot1_max ]);
}
}
- union(){ }
+ union(){
+ translate([ -sm_outer_rad + wm_thick, 0, wm_z_slotc_screw]) {
+ translate([ 0, wm_y_slotc_screw, 0 ]) WallScrewHole();
+ }
+ }
}
}