3 // Print, for each end:
9 // For attaching tube to wall, with base, for storing sticks etc.
11 // WallMount goes near top
12 // WallMountForBase goes at bottom
13 // WallMountBase attaches to bottom, glue some neoprene to it
14 // WallMountBaseCutJig jig for cutting neoprene
20 enable_head_cups = false;
22 main_dia = 71.2 + 0.50 - 2.26;
24 top_thick_by_oring = 3.0;
31 rivet_posn = 6.0 + 0.30;
33 rivet_width = 4.15 + 1.0;
34 rivet_tall = 5.51 + 1.49;
36 over_rivet_wall = 1.0;
38 inside_rivet_gap = 1.5;
42 bayo_interf_width = 2.0;
43 bayo_interf_slope = 0.5;
48 oring_upper_embed_angle = 80;
49 oring_compress = 0.1; // proportion
50 oring_compress_more = 0.2;
63 bayo_slice_size = coarse ? 5 : 1;
65 brace_hole_width = 1.0;
66 brace_above_below = 1.2;
67 brace_end_shorter = 0.3;
75 strap_loop_inside = 10;
76 strap_loop_strlen = 10;
77 strap_loop_elevation = 45;
79 sm_inner_circum = 218 - 1.90 - 1.00 - 0.50;
83 sm_bolt_dia = 3.5 + 0.1;
85 sm_bolt_head_dia = 6.94 + 1.0;
86 sm_bolt_head_thick = 2.14;
87 sm_bolt_nut_width = 5.89 + 0.25;
88 sm_bolt_nut_thick = 3.68;
89 sm_bolt_tighten_allow = 2.0;
91 sm_bolt_y_clear = 0.75;
97 wm_screw_dia = 4.5; // Timco wood screw 40mm, use brown plug
98 wm_screw_around = 5.0;
103 wmb_screw_head_dia = 8.7 + 0.5;
104 wmb_screw_around_x = 4; // XXX
105 wmb_screw_around_z = 6; // XXX
106 wmb_screw_depth_min = 10;
107 web_screw_len = 15 + 1; // XXX
108 wmb_nut_across = 8; // XXX
109 wmb_nut_around_min = 2; // XXX
110 wmb_nut_behind_min = 5;
111 wmb_nut_th = 4; // XXX
112 wmb_mount_wall = 4.5;
113 wmb_mount_gap_xy = 0.5;
114 wmb_mount_gap_z = 0.5;
115 wmb_mount_y_width = 10;
116 wmb_bottom_gap = 35; // includes allowance for padding, etc.
118 wmb_bottom_th_min = 1;
120 wmb_base_extra_rad = 10;
122 wmb_jig_around_gap = 1;
125 catch_stalk_len = 50;
129 catch_pin_slop = 0.25; // each side, and above
130 catch_pin_slop_x_extra = 0.0; // only on one side
131 catch_stalk_above_gap = 1.5;
132 catch_stalk_eff_bend_rad = catch_stalk_len * 0.75;
134 catch_strap_width = 12;
135 catch_stalk_base_width = 15;
138 catch_knob_above_gap = 5;
139 catch_knob_height = 3.0;
141 catch_stalk_below_gap = 1.0;
142 catch_stalk_beside_gap = 2.0;
148 bayo_entry_x = bayo_entry;
149 bayo_entry_z = bayo_entry;
150 bayo_inramp_x = bayo_inramp;
151 bayo_inramp_z = bayo_inramp;
153 oring_mid_dia = oring_bore + oring_thick;
154 oring_outer_dia = oring_mid_dia + oring_thick;
156 oring_oblate = (1 - oring_compress);
158 oring_y_rad = oring_thick/2 * oring_oblate;
159 oring_x_rad = oring_thick/2 / oring_oblate;
161 by_oring_z = oring_y_rad * (1 + cos(oring_upper_embed_angle));
163 side_height = rivet_posn + bayo_behind + rivet_thick/2;
164 side_thick = rivet_tall + over_rivet_wall;
166 top_z = top_thick_by_oring + oring_y_rad + by_oring_z;
168 middle_bot_z = top_z - top_thick_middle;
170 bayo_top_z = bayo_behind + bayo_gap;
172 bayo_nom_rad = main_dia/2 + side_thick;
173 bayo_real_rad = main_dia/2 + rivet_tall;
175 rivet_entry_width = rivet_width + side_rivet_gap;
177 jig_mark_rad = jig_mark + main_dia/2 + jig_thick;
179 handling_dia = oring_bore + oring_thick*2 + min_wall*2;
182 sm_inner_rad = (sm_inner_circum + sm_bolt_tighten_allow/2) / TAU;
183 sm_outer_rad = sm_inner_rad + sm_main_thick;
185 wm_main_width = sm_main_width;
186 wm_screwdriver_dia = wm_screw_head;
187 wm_y_min = sqrt( pow(sm_inner_rad, 2) -
188 pow(sm_inner_rad - (wm_thick - sm_main_thick), 2) );
189 wm_y_screw = wm_y_min + wm_screw_around + wm_screw_dia/2;
190 wm_y_max = wm_y_screw + wm_screw_dia/2 + wm_screw_around;
191 wm_lhs_y_min = -wm_y_max;
192 wm_y_slotc_screw = wm_y_screw + wm_screw_slot/2;
193 wm_y_slot1_screw = wm_y_screw + wm_screw_slot;
194 wm_y_slot1_max = wm_y_max + wm_screw_slot/2;
195 wm_z_slot0_screw = wm_main_width + wm_screwdriver_dia/2;
196 wm_z_slotc_screw = wm_z_slot0_screw + wm_screw_slot/2;
197 wm_z_slot1_screw = wm_z_slot0_screw + wm_screw_slot;
198 wm_z_max = wm_z_slot1_screw + wm_screw_around;
200 wmb_mount_cut_rad = sm_outer_rad + wmb_ring_gap;
201 wmb_nut_rad = wmb_nut_across / cos(30) * 0.5;
202 wmb_x_screw_plus_around_r = max(
203 wmb_screw_around_x + wmb_screw_dia/2,
204 wmb_nut_around_min + wmb_nut_across/2
206 wmb_x_screw = -sm_outer_rad + wmb_x_screw_plus_around_r;
207 wmb_x_outer = -sm_outer_rad + wmb_x_screw_plus_around_r * 2;
208 function wmb_screw_thing_y_min(dia) = sqrt(
209 pow(wmb_mount_cut_rad, 2) -
210 pow(wmb_x_screw + dia/2, 2)
212 wmb_y_screw_end = wmb_screw_thing_y_min(wmb_screw_dia);
214 wmb_screw_thing_y_min(wmb_nut_across + wmb_nut_around_min*2),
217 wmb_y_mount_max = max(
218 wmb_y_nut_min + wmb_nut_th + wmb_nut_behind_min,
219 wmb_y_screw_end + wmb_screw_depth_min
222 wmb_screw_around_z + wmb_screw_dia/2,
223 wmb_nut_around_min + wmb_nut_rad
225 wmb_z_max = wmb_z_screw * 2;
226 wmbb_y_max = wmb_y_mount_max + wmb_mount_gap_xy + wmb_mount_wall;
227 wmbb_x_outer = wmb_x_outer + (wmb_mount_gap_xy + wmb_mount_wall);
228 wmbb_z_flat_max = -wmb_bottom_gap;
229 wmbb_z_flat_whole_min = wmbb_z_flat_max - wmb_bottom_th_min;
230 wmbb_z_min = wmbb_z_flat_max - wmb_bottom_th;
231 wmbb_r_top = main_dia/2 + wmb_base_extra_rad;
232 wmbb_r_bottom = wmbb_r_top - (wmb_bottom_th - wmb_bottom_th_min);
234 smc_pos = [ 0, sm_inner_rad, 0 ];
236 smc_bolt_nut_dia = sm_bolt_nut_width / cos(30);
237 smc_bolt_nut_eff_thick = sm_bolt_nut_thick + sm_bolt_tighten_allow;
239 smc_bolt_y = sm_bolt_dia/2 + sm_bolt_y_clear;
240 smc_max_y = smc_bolt_y + sm_bolt_y_over
241 + max(sm_bolt_head_dia/2, smc_bolt_nut_dia/2);
242 smc_cnr_c_x = sm_bolt_shaft/2 - sm_closure_cnr
243 + sm_bolt_head_thick/2 + smc_bolt_nut_eff_thick/2;
245 catch_cr = catch_knob_dia/2 + catch_stalk_beside_gap;
246 catch_strap_thick = sm_main_thick;
248 echo("R ", sm_inner_rad, bayo_real_rad, bayo_nom_rad);
250 $fs= coarse ? 2.5 : 0.5;
253 include <poster-tube-lid-parametric.scad>
255 // bayonet definition
257 bayo_a = [ bayo_entry_x, 0 ];
258 bayo_p = [ 0, bayo_entry_z ];
259 bayo_n = [ 0, bayo_behind-bayo_inramp_z ];
260 bayo_m = [ bayo_inramp_x, bayo_behind ];
261 bayo_l = bayo_m + bayo_interf * [ 1/bayo_interf_slope, 1 ];
262 bayo_k = bayo_l + [ bayo_interf_width, 0 ];
263 bayo_j = bayo_k + bayo_interf * [ 1/bayo_interf_slope, -1 ];
264 bayo_i = bayo_j + [ rivet_width + inside_rivet_gap, 0 ];
265 bayo_h = [ bayo_i[0], bayo_behind + bayo_gap + bayo_interf ];
266 bayo_g = [ bayo_m[0] - rivet_width, bayo_h[1] ];
268 bayo_e = [-bayo_p[0], bayo_p[1]] - [rivet_entry_width,0];
269 bayo_d = [-bayo_a[0], bayo_a[1]] - [rivet_entry_width,0];
270 bayo_c = bayo_d + [0,-5];
271 bayo_b = bayo_a + [0,-5];
273 bayo_f = [ bayo_e[0], bayo_g[1] + (bayo_e[0] - bayo_g[0]) ];
275 bayo_polygon = [ bayo_a,
295 cppxC = 0.41 * sm_inner_rad * TAU;
299 cpp_adj = (bayo_n[0] - bayo_f[0]) * (1 - sm_inner_rad / bayo_nom_rad);
300 // radius scaling due to nom and actual radius difference in
301 // bayo entry construction
303 cppa = bayo_f + [1,-1] * catch_pin_slop + [1,0] * cpp_adj;
304 cppb = bayo_g + [1,-1] * catch_pin_slop + [1,0] * cpp_adj;
306 - catch_pin_slop - catch_pin_slop_x_extra,
307 -catch_stalk_above_gap ];
308 cppi = [ cppa[0], cppd[1] ];
309 cppc = [ cppd[0], cppb[1] ];
310 cpph = cppd + [0,-1] * catch_stalk_h;
311 cppe = cppd + [0,-1] * (catch_knob_above_gap + catch_knob_dia/2);
312 cppf = [ cppa[0], cppe[1] ];
313 cppg = [ cppa[0], cpph[1] ];
314 cppB = 0.5 * (cppf + cppe);
316 echo("RR", sm_inner_rad / bayo_nom_rad);
318 // catch assembly depression below pin
320 cppy6 = cppB[1] - (catch_knob_dia/2
321 + (cppc[1] - cppd[1])
322 + catch_stalk_below_gap);
323 cpp7 = [ cppB[0], cppy6 + catch_cr ];
324 cpp11 = cpp7 + [1,0] * catch_cr;
325 cppy9 = cppy6 + catch_strap_width * 1/3;
326 cpp9 = [ cpp7[0] + catch_cr * 2, cppy9 ];
327 cpp8 = cpp9 + [0,-1] * catch_cr;
328 cpp10 = cpp8 + [-1,0] * catch_cr;
329 cppC = [ cppxC, cpp9[1] ];
330 cppD = cppC + [0,-1] * catch_strap_width;
332 // catch assembly stalk and so on
334 catch_cr3 = catch_cr + catch_stalk_h;
336 cppF = [ cppg[0] - catch_stalk_eff_bend_rad, cppd[1] ];
337 cpp4 = [ cppg[0] - catch_stalk_len, cpph[1] ] + [1,-1] * catch_cr;
338 cpp5 = [ cpp4[0], cppC[1] + catch_cr ];
339 cpp2 = cpp5 + [-1,0] * (catch_cr * 2 + catch_stalk_base_width);
340 cpp2r = cpp2 + [1,0] * catch_cr;
341 cpp2d = cpp2 + [0,-1] * catch_cr;
342 cpp3 = [ cpp2[0] + catch_cr + catch_cr3, cppd[1] - catch_cr3 ];
343 cppA = [ -cppxC, cpp9[1] ];
344 cppE = [ cppA[0], cppD[1] ];
346 catch_assembly_dy = -cppy9 + catch_strap_width;
349 module MainProfile(){
350 main_cnr_pos = [ side_thick, top_z ] - [1,1]*main_cnr;
353 translate(main_cnr_pos){
356 circle(r = main_cnr);
357 circle(r = main_cnr * 0.5);
362 polygon([[ -top_middle_dr, middle_bot_z ],
363 [ -top_middle_dr, top_z ],
364 [ main_cnr_pos[0], top_z ],
365 [ side_thick, main_cnr_pos[1] ],
366 [ side_thick, -side_height ],
367 [ side_taper, -side_height ],
370 [ -oring_x_rad, by_oring_z ],
374 translate([ oring_mid_dia/2 - main_dia/2, 0 ])
376 translate([ 0, oring_y_rad ])
377 scale([ 1/oring_oblate * (oring_compress_more+1) , oring_oblate ])
378 circle(oring_thick/2);
379 translate([ 0, oring_y_rad*2 - oring_thick/2 ])
380 circle(oring_thick/2);
385 module StrapLoopProfile(){
386 circle(r = strap_loop_thick/2);
389 module StrapLoop(){ ////toplevel
390 bigrad = strap_loop_inside/2 + strap_loop_thick/2;
391 extralen = strap_loop_thick * 5;
394 rotate([strap_loop_elevation, 0,0]){
395 for (x= [ -1, +1 ] * bigrad) {
396 translate([x, -extralen, 0])
398 linear_extrude(height= extralen + strap_loop_strlen + 0.1,
402 translate([0, strap_loop_strlen, 0]){
404 rotate_extrude(convexity=10)
405 translate([bigrad, 0,0])
408 cube([100,100,100], center=true);
412 translate([0, 50, 0])
413 cube(100, center=true);
417 module RotateProjectSlice(offset, slice_size, nom_rad, real_rad){
418 // nom_rad > real_rad
419 rotate([0,0, atan2(offset, nom_rad) ]){
421 translate([-offset, -10, 0])
423 linear_extrude(height= nom_rad*2, convexity=50)
425 translate([0,0, -25])
426 cylinder(h=50, r= real_rad);
427 translate([0,0, -25])
428 linear_extrude(height= 50, convexity=50)
430 [ -slice_size, -real_rad*2 ],
431 [ +slice_size, -real_rad*2 ] ]);
436 module RotateProject(x_min, x_max, slice_size, nom_rad, real_rad){
437 offs = [ for (i=[ x_min :
439 x_max + slice_size ]) i ];
442 RotateProjectSlice(off, slice_size, nom_rad, real_rad)
446 module BayonetCutout(){
447 RotateProject(bayo_c[0], bayo_i[0], bayo_slice_size,
450 translate([-0.5 * (bayo_a[0] + bayo_d[0]), 0])
451 polygon(bayo_polygon, convexity=10);
454 module ProfilesDemo(){ ////toplevel
455 translate([-10,0]) MainProfile();
456 translate([+10, -side_height]) polygon(bayo_polygon, convexity=10);
459 module LimitForHandling(){ ////toplevel
460 hull() for (r=[0,180])
464 rotate([0,0, rs * handling_angle/2]) {
465 translate([rs * xd * main_dia/2 * tan(handling_angle/2),
466 main_dia/2 + side_thick - main_cnr,
469 cylinder(r= main_cnr, h=50);
476 hull() rotate_extrude(convexity=10){
477 translate([ handling_dia/2 - main_cnr, top_z - main_cnr ]) {
478 circle(r = main_cnr);
479 mirror([0,1]) square([ main_cnr, 50 ]);
482 //cylinder(r= handling_dia/2, h=20);
485 module Cover(){ ////toplevel
486 render() difference(){
489 rotate_extrude(convexity=10)
490 translate([main_dia/2, 0])
492 translate([0,0, middle_bot_z])
493 cylinder(h= top_thick_middle, r = main_dia/2 - top_middle_dr + 1);
499 translate([0,0, -side_height])
501 rotate([0,0, r + asin((-oring_rm_beside) / (main_dia/2))])
503 oring_mid_dia/2 + oring_thick/4 * oring_rm_scale,
505 rotate([-oring_rm_angle, 0, 0])
507 cylinder(r = oring_thick/4 * oring_rm_scale, h=20);
509 for (r=[0 : 60 : 179]) {
511 height = top_thick_middle - brace_above_below*2;
512 translate([0,0, middle_bot_z + brace_above_below + height/2 ])
513 cube(center=true, [ oring_bore - brace_end_shorter,
514 brace_hole_width, height ]);
518 if (enable_head_cups)
521 translate([-implheadcup_large_dia * .5 - implheadcup_thick/2,
522 -implheadcup_large_dia * .0,
526 // translate(strap_loop_thick * [-0.5, 0, +1])
527 // translate([handling_dia/2, 0, -side_height])
528 // rotate([0,180,0]) rotate([0,0,90])
533 translate([0,0, -10])
534 cylinder(r= main_dia/2 - jig_rim, h=20);
537 module Jig(){ ////toplevel
540 translate([0,0, -side_height]){
541 cylinder(r= main_dia/2 + jig_thick, h= side_height + jig_thick);
543 translate([-jig_mark_rad, 0, jig_thick - jig_mark])
544 cube([jig_mark_rad*2, jig_mark, jig_mark]);
546 translate([0,0, -side_height-1])
547 cylinder(r= main_dia/2, h= side_height + 1);
549 translate([0,0, -rivet_posn])
551 translate([0,0, -100])
552 cylinder(r= jig_hole_dia/2, h = 200);
556 module CoverPrint(){ ////toplevel
557 rotate([0,180,0]) Cover();
560 module CoverTest2(){ ////toplevel
567 module CoverTest1(){ ////toplevel
571 for (r= [ 40, 147 ]){
573 translate([0,0, -10]) {
574 cube([ main_dia*3, main_dia * .53, 18], center=true);
578 // translate([ 50, 0, 0 ])
580 // strap_loop_inside + strap_loop_thick*2 + 1,
587 module ImplHeadCupTest(){ ////toplevel
594 module SomeStrap(width, cut_width=0){
595 // children(0) is to add, (1) subtract
598 cylinder(r=sm_outer_rad, h=width);
599 StrapMountProtrusion(smc_cnr_c_x + sm_closure_cnr,
606 cylinder(r=sm_inner_rad, h=max(width+2, cut_width));
608 StrapMountBolt(5, width);
610 cube([ sm_bolt_tighten_allow, 40,100 ], center=true);
615 module StrapMountBolt(l_delta, strap_width){ ///toplevel
616 // positioned relative to smc_pos
617 translate([(smc_bolt_nut_eff_thick - sm_bolt_head_thick)/2,
620 translate([ -sm_bolt_shaft/2-1, 0,0 ]){
621 rotate([0,90,0]) cylinder(r= sm_bolt_dia/2, h= sm_bolt_shaft+2);
623 translate([ -sm_bolt_shaft/2, 0,0 ])
625 cylinder($fn=6, r=smc_bolt_nut_dia/2,
626 h=smc_bolt_nut_eff_thick + l_delta);
627 translate([ sm_bolt_shaft/2, 0,0 ])
629 cylinder(r=sm_bolt_head_dia/2, h=sm_bolt_head_thick + l_delta);
633 module StrapMountProtrusion(half_x, max_y, cnr, width){
635 linear_extrude(height=width, convexity=10){
637 for (m = [0,1]) mirror([m,0,0]) {
638 translate([-(half_x - cnr), max_y - cnr])
640 translate([-half_x, -sm_inner_rad])
648 module StrapMount(){ ////toplevel
649 SomeStrap(sm_main_width){
651 StrapMountProtrusion(strap_loop_inside/2 + strap_loop_thick,
656 [0,0, sm_main_width] +
657 strap_loop_thick * [ 0, 0.5, -1.0 ])
664 module WallScrewHoleSlot(){ ////toplevel
665 ds = [-1,+1] * wm_screw_slot/2;
666 linextr_x_yz(-(wm_thick + 1), 1) {
670 circle(r = wm_screw_dia/2);
675 translate([0, d, 0]){
677 circle(r = wm_screw_head/2);
678 linextr_x_yz(-(wm_screw_head - wm_screw_dia)/2, 0)
679 circle(r = wm_screw_dia/2);
685 module WallMountMounts(){
686 linextr(0, wm_z_max){
687 translate([ -sm_outer_rad, 0 ])
688 rectfromto([ 0, wm_lhs_y_min ],
689 [ wm_thick, wm_y_slot1_max ]);
692 module WallMountScrewHoles(){
693 translate([ -sm_outer_rad + wm_thick, 0, wm_z_slotc_screw]) {
694 translate([ 0, wm_y_slotc_screw, 0 ])
696 translate([ 0, -wm_y_slotc_screw, 0 ])
702 module WallMount(){ ////toplevel
703 SomeStrap(sm_main_width, wm_z_max + 2){
705 WallMountScrewHoles();
709 module WallMountBaseRingCut(){
710 circle(r = wmb_mount_cut_rad);
713 module WallMountBaseMounts(){
714 linextr(0, wmb_z_max) {
716 rectfromto([ -sm_outer_rad, -wmb_y_mount_max ],
717 [ wmb_x_outer, +wmb_y_mount_max ]);
718 WallMountBaseRingCut();
723 // screws, nuts, slots for nuts to go down into
724 module WallMountBaseScrewsEtc(){ ////toplevel
727 translate([wmb_x_screw, 0, wmb_z_screw]) {
728 linextr_y_xz(wmb_y_screw_end,
729 wmb_y_screw_end + 100) // XXX change 100
730 circle(r = wmb_screw_dia/2);
731 linextr_y_xz(wmb_y_screw_end + web_screw_len,
732 wmb_y_screw_end + 100) // XXX change 100
733 circle(r = wmb_screw_head_dia/2);
734 linextr_y_xz(wmb_y_nut_min,
735 wmb_y_nut_min + wmb_nut_th) {
738 circle(r = wmb_nut_rad, $fn = 6);
739 translate([0, 100]) // XXX change 100
740 square(wmb_nut_across, center=true);
748 module WallMountForBase(){ ////toplevel
749 SomeStrap(sm_main_width, wm_z_max + 2){
752 WallMountBaseMounts();
755 WallMountScrewHoles();
756 WallMountBaseScrewsEtc();
761 module WallMountBasePillarsPlan(){
764 rectfromto([ -sm_outer_rad, wmbb_y_max - wmb_mount_y_width ],
765 [ wmbb_x_outer, wmbb_y_max ]);
770 // trim parts that are would foul the wall
771 module WallMountTrimWallFoulPlan(){
772 translate([ -sm_outer_rad, 0])
773 rectfromto([ -wmbb_r_top, -(wmbb_r_top + 1) ],
774 [ 0, +(wmbb_r_top + 1) ]);
777 module WallMountBase(){ ////toplevel
780 // vertical blocks rising to join to wall mount
781 linextr(wmbb_z_min, wmb_z_max) {
783 WallMountBasePillarsPlan();
784 WallMountBaseRingCut();
789 linextr(wmbb_z_flat_whole_min, wmbb_z_flat_max)
790 circle(r = wmbb_r_top);
791 linextr(wmbb_z_min, wmbb_z_flat_max)
792 circle(r = wmbb_r_bottom);
794 linextr(wmbb_z_min, wmbb_z_flat_max) {
796 WallMountBasePillarsPlan();
797 circle(r = wmbb_r_bottom);
802 // cutaway for mount part
803 linextr(-wmb_mount_gap_z, wmb_z_max+1) {
806 rectfromto([ -sm_outer_rad-1, wmb_y_mount_max + wmb_mount_gap_xy ],
807 [ wmb_x_outer + wmb_mount_gap_xy, 1 ]);
811 linextr(wmbb_z_min - 1, wmb_z_max + 1)
812 WallMountTrimWallFoulPlan();
813 WallMountBaseScrewsEtc();
817 module WallMountBaseCutJigPlan(){ ////toplevel
820 circle(r = wmbb_r_top);
823 translate([ wmb_jig_around_gap, 0 ])
824 WallMountTrimWallFoulPlan();
826 offset(delta = wmb_jig_around_gap)
827 WallMountBasePillarsPlan();
831 module WallMountBaseCutJig(){ ////toplevel
832 translate([ 0,0, wmbb_z_flat_max + 0.5 ])
833 linextr(0, wmb_jig_th)
834 WallMountBaseCutJigPlan();
837 module WallMountForBaseDemo(){ ////toplevel
838 render() WallMountForBase();
839 color("blue") render() WallMountBase();
840 %WallMountBaseScrewsEtc();
841 %WallMountBaseCutJig();
844 module CatchAssemblyCoreProfile(){
848 translate(cpp3) circle(r= catch_cr3);
867 translate(cpp8) circle(r= catch_cr);
870 translate(cpp4) circle(r= catch_cr);
871 translate(cpp5) circle(r= catch_cr);
872 translate(cpp7) circle(r= catch_cr);
880 translate(cpp2) circle(r= catch_cr);
882 // if cpp11 is above cpp10, the subtracted hull above
883 // can go down too far. Ensure we do not cut off below cppy6.
888 [ cpp7[0] - catch_cr, cppy6 ],
893 module CatchTipProfile(dy){
898 // circle(r = dist2d(cppF, cppd));
899 //circle(r = dist2d(cppF, cppa));
910 module CatchHeadProfile(){
920 module CatchCore(){ /////toplevel
921 linear_extrude(height=catch_strap_thick, convexity=10)
922 CatchAssemblyCoreProfile();
925 linear_extrude(height=catch_head_th, convexity=10)
927 linear_extrude(height=catch_tip_th, convexity=10)
928 CatchTipProfile(catch_tip_th - catch_head_th);
931 linear_extrude(height=catch_head_th, convexity=10)
934 translate(concat(cppB,[0])) hull(){
935 translate([0,0, catch_knob_height + catch_head_th - catch_knob_dia/2])
936 sphere(r = catch_knob_dia/2);
937 cylinder(r = catch_knob_dia/2, h = 0.1);
941 module CatchPreDistort(){ /////toplevel
942 scale(100 / sm_inner_rad)
947 module CatchAssembly(){ /////toplevel
948 rotate([0,0, -(cppe[0] + cppB[0] + catch_pin_slop) / sm_inner_rad * 360/TAU])
949 translate([0,0, catch_assembly_dy])
950 scale(sm_inner_rad / 100)
951 import(str("poster-tube-lid,CatchPostDistort-fa",
956 SomeStrap(catch_strap_width){
959 translate([-200, -200, -200])
960 cube([400, 200, 400]);
965 module CatchDemo(){ /////toplevel
966 color("blue") translate([0,0,
970 translate([0,0,+side_height
975 module CatchDemoS(){ /////toplevel
976 color("blue") translate([0,0,
981 translate([0,0,+side_height
984 mirror([0,1,0]) translate([-250,33,0]) cube([500,500,500]);
988 cube([6.15, 2,2], center=true);
991 module CatchPinProfileDemo(){ /////toplevel
992 translate([0, 0 * -bayo_behind,0]) {
994 bayo_n[0] - bayo_e[0]);
995 color("blue") translate([0,0,
998 CatchAssemblyCoreProfile();
1005 polygon(bayo_polygon, convexity=10);
1007 // adhoc show a position
1012 )) difference(){ circle(2.5); circle(2.0); }