3 // Print, for each end:
13 enable_head_cups = false;
15 main_dia = 71.2 + 0.50 - 2.26;
17 top_thick_by_oring = 3.0;
24 rivet_posn = 6.0 + 0.30;
26 rivet_width = 4.15 + 1.0;
27 rivet_tall = 5.51 + 1.49;
29 over_rivet_wall = 1.0;
31 inside_rivet_gap = 1.5;
35 bayo_interf_width = 2.0;
36 bayo_interf_slope = 0.5;
41 oring_upper_embed_angle = 80;
42 oring_compress = 0.1; // proportion
43 oring_compress_more = 0.2;
56 bayo_slice_size = coarse ? 5 : 1;
58 brace_hole_width = 1.0;
59 brace_above_below = 1.2;
60 brace_end_shorter = 0.3;
68 strap_loop_inside = 10;
69 strap_loop_strlen = 10;
70 strap_loop_elevation = 45;
72 sm_inner_circum = 218 - 1.90 - 1.00 - 0.50;
76 sm_bolt_dia = 3.5 + 0.1;
78 sm_bolt_head_dia = 6.94 + 1.0;
79 sm_bolt_head_thick = 2.14;
80 sm_bolt_nut_width = 5.89 + 0.25;
81 sm_bolt_nut_thick = 3.68;
82 sm_bolt_tighten_allow = 2.0;
84 sm_bolt_y_clear = 0.75;
90 wm_screw_dia = 4.5; // XXX
91 wm_screwdriver_dia = 6.0; // XXX
92 wm_screw_around = 4.0; // XXX
94 wm_screw_head = 7.5; // XXX
97 wmb_screw_head_dia = 10; // XXX
98 wmb_screw_around_x = 4; // XXX
99 wmb_screw_around_z = 6; // XXX
100 wmb_screw_depth_min = 10;
101 web_screw_len = 15 + 1; // XXX
102 wmb_nut_across = 8; // XXX
103 wmb_nut_around_min = 2; // XXX
104 wmb_nut_behind_min = 5;
105 wmb_nut_th = 4; // XXX
106 wmb_mount_wall = 4.5;
107 wmb_mount_gap_xy = 0.5;
108 wmb_mount_gap_z = 0.5;
109 wmb_mount_y_width = 10;
110 wmb_bottom_gap = 35; // includes allowance for padding, etc.
112 wmb_bottom_th_min = 1;
114 wmb_base_extra_rad = 10;
116 wmb_jig_around_gap = 1;
119 catch_stalk_len = 50;
123 catch_pin_slop = 0.25; // each side, and above
124 catch_pin_slop_x_extra = 0.0; // only on one side
125 catch_stalk_above_gap = 1.5;
126 catch_stalk_eff_bend_rad = catch_stalk_len * 0.75;
128 catch_strap_width = 12;
129 catch_stalk_base_width = 15;
132 catch_knob_above_gap = 5;
133 catch_knob_height = 3.0;
135 catch_stalk_below_gap = 1.0;
136 catch_stalk_beside_gap = 2.0;
142 bayo_entry_x = bayo_entry;
143 bayo_entry_z = bayo_entry;
144 bayo_inramp_x = bayo_inramp;
145 bayo_inramp_z = bayo_inramp;
147 oring_mid_dia = oring_bore + oring_thick;
148 oring_outer_dia = oring_mid_dia + oring_thick;
150 oring_oblate = (1 - oring_compress);
152 oring_y_rad = oring_thick/2 * oring_oblate;
153 oring_x_rad = oring_thick/2 / oring_oblate;
155 by_oring_z = oring_y_rad * (1 + cos(oring_upper_embed_angle));
157 side_height = rivet_posn + bayo_behind + rivet_thick/2;
158 side_thick = rivet_tall + over_rivet_wall;
160 top_z = top_thick_by_oring + oring_y_rad + by_oring_z;
162 middle_bot_z = top_z - top_thick_middle;
164 bayo_top_z = bayo_behind + bayo_gap;
166 bayo_nom_rad = main_dia/2 + side_thick;
167 bayo_real_rad = main_dia/2 + rivet_tall;
169 rivet_entry_width = rivet_width + side_rivet_gap;
171 jig_mark_rad = jig_mark + main_dia/2 + jig_thick;
173 handling_dia = oring_bore + oring_thick*2 + min_wall*2;
176 sm_inner_rad = (sm_inner_circum + sm_bolt_tighten_allow/2) / TAU;
177 sm_outer_rad = sm_inner_rad + sm_main_thick;
179 wm_main_width = sm_main_width;
180 wm_y_min = sqrt( pow(sm_inner_rad, 2) -
181 pow(sm_inner_rad - (wm_thick - sm_main_thick), 2) );
182 wm_y_screw = wm_y_min + wm_screw_around + wm_screw_dia/2;
183 wm_y_max = wm_y_screw + wm_screw_dia/2 + wm_screw_around;
184 wm_y_slotc_screw = wm_y_screw + wm_screw_slot/2;
185 wm_y_slot1_screw = wm_y_screw + wm_screw_slot;
186 wm_y_slot1_max = wm_y_max + wm_screw_slot;
187 wm_z_slot0_screw = wm_main_width + wm_screwdriver_dia/2;
188 wm_z_slotc_screw = wm_z_slot0_screw + wm_screw_slot/2;
189 wm_z_slot1_screw = wm_z_slot0_screw + wm_screw_slot;
190 wm_z_max = wm_z_slot1_screw + wm_screw_around;
192 wmb_mount_cut_rad = sm_outer_rad + wmb_ring_gap;
193 wmb_nut_rad = wmb_nut_across / cos(30) * 0.5;
194 wmb_x_screw_plus_around_r = max(
195 wmb_screw_around_x + wmb_screw_dia/2,
196 wmb_nut_around_min + wmb_nut_across/2
198 wmb_x_screw = -sm_outer_rad + wmb_x_screw_plus_around_r;
199 wmb_x_outer = -sm_outer_rad + wmb_x_screw_plus_around_r * 2;
200 function wmb_screw_thing_y_min(dia) = sqrt(
201 pow(wmb_mount_cut_rad, 2) -
202 pow(wmb_x_screw + dia/2, 2)
204 wmb_y_screw_end = wmb_screw_thing_y_min(wmb_screw_dia);
205 wmb_y_nut_min = wmb_screw_thing_y_min(wmb_nut_across + wmb_nut_around_min*2);
206 wmb_y_mount_max = max(
207 wmb_y_nut_min + wmb_nut_th + wmb_nut_behind_min,
208 wmb_y_screw_end + wmb_screw_depth_min
211 wmb_screw_around_z + wmb_screw_dia/2,
212 wmb_nut_around_min + wmb_nut_rad
214 wmb_z_max = wmb_z_screw * 2;
215 wmbb_y_max = wmb_y_mount_max + wmb_mount_gap_xy + wmb_mount_wall;
216 wmbb_x_outer = wmb_x_outer + (wmb_mount_gap_xy + wmb_mount_wall);
217 wmbb_z_flat_max = -wmb_bottom_gap;
218 wmbb_z_flat_whole_min = wmbb_z_flat_max - wmb_bottom_th_min;
219 wmbb_z_min = wmbb_z_flat_max - wmb_bottom_th;
220 wmbb_r_top = main_dia/2 + wmb_base_extra_rad;
221 wmbb_r_bottom = wmbb_r_top - (wmb_bottom_th - wmb_bottom_th_min);
223 smc_pos = [ 0, sm_inner_rad, 0 ];
225 smc_bolt_nut_dia = sm_bolt_nut_width / cos(30);
226 smc_bolt_nut_eff_thick = sm_bolt_nut_thick + sm_bolt_tighten_allow;
228 smc_bolt_y = sm_bolt_dia/2 + sm_bolt_y_clear;
229 smc_max_y = smc_bolt_y + sm_bolt_y_over
230 + max(sm_bolt_head_dia/2, smc_bolt_nut_dia/2);
231 smc_cnr_c_x = sm_bolt_shaft/2 - sm_closure_cnr
232 + sm_bolt_head_thick/2 + smc_bolt_nut_eff_thick/2;
234 catch_cr = catch_knob_dia/2 + catch_stalk_beside_gap;
235 catch_strap_thick = sm_main_thick;
237 echo("R ", sm_inner_rad, bayo_real_rad, bayo_nom_rad);
239 $fs= coarse ? 2.5 : 0.5;
242 include <poster-tube-lid-parametric.scad>
244 // bayonet definition
246 bayo_a = [ bayo_entry_x, 0 ];
247 bayo_p = [ 0, bayo_entry_z ];
248 bayo_n = [ 0, bayo_behind-bayo_inramp_z ];
249 bayo_m = [ bayo_inramp_x, bayo_behind ];
250 bayo_l = bayo_m + bayo_interf * [ 1/bayo_interf_slope, 1 ];
251 bayo_k = bayo_l + [ bayo_interf_width, 0 ];
252 bayo_j = bayo_k + bayo_interf * [ 1/bayo_interf_slope, -1 ];
253 bayo_i = bayo_j + [ rivet_width + inside_rivet_gap, 0 ];
254 bayo_h = [ bayo_i[0], bayo_behind + bayo_gap + bayo_interf ];
255 bayo_g = [ bayo_m[0] - rivet_width, bayo_h[1] ];
257 bayo_e = [-bayo_p[0], bayo_p[1]] - [rivet_entry_width,0];
258 bayo_d = [-bayo_a[0], bayo_a[1]] - [rivet_entry_width,0];
259 bayo_c = bayo_d + [0,-5];
260 bayo_b = bayo_a + [0,-5];
262 bayo_f = [ bayo_e[0], bayo_g[1] + (bayo_e[0] - bayo_g[0]) ];
264 bayo_polygon = [ bayo_a,
284 cppxC = 0.41 * sm_inner_rad * TAU;
288 cpp_adj = (bayo_n[0] - bayo_f[0]) * (1 - sm_inner_rad / bayo_nom_rad);
289 // radius scaling due to nom and actual radius difference in
290 // bayo entry construction
292 cppa = bayo_f + [1,-1] * catch_pin_slop + [1,0] * cpp_adj;
293 cppb = bayo_g + [1,-1] * catch_pin_slop + [1,0] * cpp_adj;
295 - catch_pin_slop - catch_pin_slop_x_extra,
296 -catch_stalk_above_gap ];
297 cppi = [ cppa[0], cppd[1] ];
298 cppc = [ cppd[0], cppb[1] ];
299 cpph = cppd + [0,-1] * catch_stalk_h;
300 cppe = cppd + [0,-1] * (catch_knob_above_gap + catch_knob_dia/2);
301 cppf = [ cppa[0], cppe[1] ];
302 cppg = [ cppa[0], cpph[1] ];
303 cppB = 0.5 * (cppf + cppe);
305 echo("RR", sm_inner_rad / bayo_nom_rad);
307 // catch assembly depression below pin
309 cppy6 = cppB[1] - (catch_knob_dia/2
310 + (cppc[1] - cppd[1])
311 + catch_stalk_below_gap);
312 cpp7 = [ cppB[0], cppy6 + catch_cr ];
313 cpp11 = cpp7 + [1,0] * catch_cr;
314 cppy9 = cppy6 + catch_strap_width * 1/3;
315 cpp9 = [ cpp7[0] + catch_cr * 2, cppy9 ];
316 cpp8 = cpp9 + [0,-1] * catch_cr;
317 cpp10 = cpp8 + [-1,0] * catch_cr;
318 cppC = [ cppxC, cpp9[1] ];
319 cppD = cppC + [0,-1] * catch_strap_width;
321 // catch assembly stalk and so on
323 catch_cr3 = catch_cr + catch_stalk_h;
325 cppF = [ cppg[0] - catch_stalk_eff_bend_rad, cppd[1] ];
326 cpp4 = [ cppg[0] - catch_stalk_len, cpph[1] ] + [1,-1] * catch_cr;
327 cpp5 = [ cpp4[0], cppC[1] + catch_cr ];
328 cpp2 = cpp5 + [-1,0] * (catch_cr * 2 + catch_stalk_base_width);
329 cpp2r = cpp2 + [1,0] * catch_cr;
330 cpp2d = cpp2 + [0,-1] * catch_cr;
331 cpp3 = [ cpp2[0] + catch_cr + catch_cr3, cppd[1] - catch_cr3 ];
332 cppA = [ -cppxC, cpp9[1] ];
333 cppE = [ cppA[0], cppD[1] ];
335 catch_assembly_dy = -cppy9 + catch_strap_width;
338 module MainProfile(){
339 main_cnr_pos = [ side_thick, top_z ] - [1,1]*main_cnr;
342 translate(main_cnr_pos){
345 circle(r = main_cnr);
346 circle(r = main_cnr * 0.5);
351 polygon([[ -top_middle_dr, middle_bot_z ],
352 [ -top_middle_dr, top_z ],
353 [ main_cnr_pos[0], top_z ],
354 [ side_thick, main_cnr_pos[1] ],
355 [ side_thick, -side_height ],
356 [ side_taper, -side_height ],
359 [ -oring_x_rad, by_oring_z ],
363 translate([ oring_mid_dia/2 - main_dia/2, 0 ])
365 translate([ 0, oring_y_rad ])
366 scale([ 1/oring_oblate * (oring_compress_more+1) , oring_oblate ])
367 circle(oring_thick/2);
368 translate([ 0, oring_y_rad*2 - oring_thick/2 ])
369 circle(oring_thick/2);
374 module StrapLoopProfile(){
375 circle(r = strap_loop_thick/2);
378 module StrapLoop(){ ////toplevel
379 bigrad = strap_loop_inside/2 + strap_loop_thick/2;
380 extralen = strap_loop_thick * 5;
383 rotate([strap_loop_elevation, 0,0]){
384 for (x= [ -1, +1 ] * bigrad) {
385 translate([x, -extralen, 0])
387 linear_extrude(height= extralen + strap_loop_strlen + 0.1,
391 translate([0, strap_loop_strlen, 0]){
393 rotate_extrude(convexity=10)
394 translate([bigrad, 0,0])
397 cube([100,100,100], center=true);
401 translate([0, 50, 0])
402 cube(100, center=true);
406 module RotateProjectSlice(offset, slice_size, nom_rad, real_rad){
407 // nom_rad > real_rad
408 rotate([0,0, atan2(offset, nom_rad) ]){
410 translate([-offset, -10, 0])
412 linear_extrude(height= nom_rad*2, convexity=50)
414 translate([0,0, -25])
415 cylinder(h=50, r= real_rad);
416 translate([0,0, -25])
417 linear_extrude(height= 50, convexity=50)
419 [ -slice_size, -real_rad*2 ],
420 [ +slice_size, -real_rad*2 ] ]);
425 module RotateProject(x_min, x_max, slice_size, nom_rad, real_rad){
426 offs = [ for (i=[ x_min :
428 x_max + slice_size ]) i ];
431 RotateProjectSlice(off, slice_size, nom_rad, real_rad)
435 module BayonetCutout(){
436 RotateProject(bayo_c[0], bayo_i[0], bayo_slice_size,
439 translate([-0.5 * (bayo_a[0] + bayo_d[0]), 0])
440 polygon(bayo_polygon, convexity=10);
443 module ProfilesDemo(){ ////toplevel
444 translate([-10,0]) MainProfile();
445 translate([+10, -side_height]) polygon(bayo_polygon, convexity=10);
448 module LimitForHandling(){ ////toplevel
449 hull() for (r=[0,180])
453 rotate([0,0, rs * handling_angle/2]) {
454 translate([rs * xd * main_dia/2 * tan(handling_angle/2),
455 main_dia/2 + side_thick - main_cnr,
458 cylinder(r= main_cnr, h=50);
465 hull() rotate_extrude(convexity=10){
466 translate([ handling_dia/2 - main_cnr, top_z - main_cnr ]) {
467 circle(r = main_cnr);
468 mirror([0,1]) square([ main_cnr, 50 ]);
471 //cylinder(r= handling_dia/2, h=20);
474 module Cover(){ ////toplevel
475 render() difference(){
478 rotate_extrude(convexity=10)
479 translate([main_dia/2, 0])
481 translate([0,0, middle_bot_z])
482 cylinder(h= top_thick_middle, r = main_dia/2 - top_middle_dr + 1);
488 translate([0,0, -side_height])
490 rotate([0,0, r + asin((-oring_rm_beside) / (main_dia/2))])
492 oring_mid_dia/2 + oring_thick/4 * oring_rm_scale,
494 rotate([-oring_rm_angle, 0, 0])
496 cylinder(r = oring_thick/4 * oring_rm_scale, h=20);
498 for (r=[0 : 60 : 179]) {
500 height = top_thick_middle - brace_above_below*2;
501 translate([0,0, middle_bot_z + brace_above_below + height/2 ])
502 cube(center=true, [ oring_bore - brace_end_shorter,
503 brace_hole_width, height ]);
507 if (enable_head_cups)
510 translate([-implheadcup_large_dia * .5 - implheadcup_thick/2,
511 -implheadcup_large_dia * .0,
515 // translate(strap_loop_thick * [-0.5, 0, +1])
516 // translate([handling_dia/2, 0, -side_height])
517 // rotate([0,180,0]) rotate([0,0,90])
522 translate([0,0, -10])
523 cylinder(r= main_dia/2 - jig_rim, h=20);
526 module Jig(){ ////toplevel
529 translate([0,0, -side_height]){
530 cylinder(r= main_dia/2 + jig_thick, h= side_height + jig_thick);
532 translate([-jig_mark_rad, 0, jig_thick - jig_mark])
533 cube([jig_mark_rad*2, jig_mark, jig_mark]);
535 translate([0,0, -side_height-1])
536 cylinder(r= main_dia/2, h= side_height + 1);
538 translate([0,0, -rivet_posn])
540 translate([0,0, -100])
541 cylinder(r= jig_hole_dia/2, h = 200);
545 module CoverPrint(){ ////toplevel
546 rotate([0,180,0]) Cover();
549 module CoverTest2(){ ////toplevel
556 module CoverTest1(){ ////toplevel
560 for (r= [ 40, 147 ]){
562 translate([0,0, -10]) {
563 cube([ main_dia*3, main_dia * .53, 18], center=true);
567 // translate([ 50, 0, 0 ])
569 // strap_loop_inside + strap_loop_thick*2 + 1,
576 module ImplHeadCupTest(){ ////toplevel
583 module SomeStrap(width, cut_width=0){
584 // children(0) is to add, (1) subtract
587 cylinder(r=sm_outer_rad, h=width);
588 StrapMountProtrusion(smc_cnr_c_x + sm_closure_cnr,
595 cylinder(r=sm_inner_rad, h=max(width+2, cut_width));
597 StrapMountBolt(10, width);
599 cube([ sm_bolt_tighten_allow, 40,100 ], center=true);
604 module StrapMountBolt(l_delta, strap_width){ ///toplevel
605 // positioned relative to smc_pos
606 translate([(smc_bolt_nut_eff_thick - sm_bolt_head_thick)/2,
609 translate([ -sm_bolt_shaft/2-1, 0,0 ]){
610 rotate([0,90,0]) cylinder(r= sm_bolt_dia/2, h= sm_bolt_shaft+2);
612 translate([ -sm_bolt_shaft/2, 0,0 ])
614 cylinder($fn=6, r=smc_bolt_nut_dia/2,
615 h=smc_bolt_nut_eff_thick + l_delta);
616 translate([ sm_bolt_shaft/2, 0,0 ])
618 cylinder(r=sm_bolt_head_dia/2, h=sm_bolt_head_thick + l_delta);
622 module StrapMountProtrusion(half_x, max_y, cnr, width){
624 linear_extrude(height=width, convexity=10){
626 for (m = [0,1]) mirror([m,0,0]) {
627 translate([-(half_x - cnr), max_y - cnr])
629 translate([-half_x, -sm_inner_rad])
637 module StrapMount(){ ////toplevel
638 SomeStrap(sm_main_width){
640 StrapMountProtrusion(strap_loop_inside/2 + strap_loop_thick,
645 [0,0, sm_main_width] +
646 strap_loop_thick * [ 0, 0.5, -1.0 ])
653 module WallScrewHoleSlot(){ ////toplevel
654 ds = [-1,+1] * wm_screw_slot/2;
655 linextr_x_yz(-(wm_thick + 1), 1) {
659 circle(r = wm_screw_dia/2);
664 translate([0, d, 0]){
666 circle(r = wm_screw_head/2);
667 linextr_x_yz(-(wm_screw_head - wm_screw_dia)/2, 0)
668 circle(r = wm_screw_dia/2);
674 module WallMountMounts(){
675 linextr(0, wm_z_max){
676 translate([ -sm_outer_rad, 0 ])
677 rectfromto([ 0, -wm_y_max ],
678 [ wm_thick, wm_y_slot1_max ]);
681 module WallMountScrewHoles(){
682 translate([ -sm_outer_rad + wm_thick, 0, wm_z_slotc_screw]) {
683 translate([ 0, wm_y_slotc_screw, 0 ])
685 translate([ 0, -wm_y_slotc_screw, 0 ])
691 module WallMount(){ ////toplevel
692 SomeStrap(sm_main_width, wm_z_max + 2){
694 WallMountScrewHoles();
698 module WallMountBaseRingCut(){
699 circle(r = wmb_mount_cut_rad);
702 module WallMountBaseMounts(){
703 linextr(0, wmb_z_max) {
705 rectfromto([ -sm_outer_rad, -wmb_y_mount_max ],
706 [ wmb_x_outer, +wmb_y_mount_max ]);
707 WallMountBaseRingCut();
712 // screws, nuts, slots for nuts to go down into
713 module WallMountBaseScrewsEtc(){ ////toplevel
716 translate([wmb_x_screw, 0, wmb_z_screw]) {
717 linextr_y_xz(wmb_y_screw_end,
718 wmb_y_screw_end + 100) // XXX change 100
719 circle(r = wmb_screw_dia/2);
720 linextr_y_xz(wmb_y_screw_end + web_screw_len,
721 wmb_y_screw_end + 100) // XXX change 100
722 circle(r = wmb_screw_head_dia/2);
723 linextr_y_xz(wmb_y_nut_min,
724 wmb_y_nut_min + wmb_nut_th) {
727 circle(r = wmb_nut_rad, $fn = 6);
728 translate([0, 100]) // XXX change 100
729 square(wmb_nut_across, center=true);
737 module WallMountForBase(){ ////toplevel
738 SomeStrap(sm_main_width, wm_z_max + 2){
741 WallMountBaseMounts();
744 WallMountScrewHoles();
745 WallMountBaseScrewsEtc();
750 module WallMountBasePillarsPlan(){
753 rectfromto([ -sm_outer_rad, wmbb_y_max - wmb_mount_y_width ],
754 [ wmbb_x_outer, wmbb_y_max ]);
759 // trim parts that are would foul the wall
760 module WallMountTrimWallFoulPlan(){
761 translate([ -sm_outer_rad, 0])
762 rectfromto([ -wmbb_r_top, -(wmbb_r_top + 1) ],
763 [ 0, +(wmbb_r_top + 1) ]);
766 module WallMountBase(){ ////toplevel
769 // vertical blocks rising to join to wall mount
770 linextr(wmbb_z_min, wmb_z_max) {
772 WallMountBasePillarsPlan();
773 WallMountBaseRingCut();
778 linextr(wmbb_z_flat_whole_min, wmbb_z_flat_max)
779 circle(r = wmbb_r_top);
780 linextr(wmbb_z_min, wmbb_z_flat_max)
781 circle(r = wmbb_r_bottom);
783 linextr(wmbb_z_min, wmbb_z_flat_max) {
785 WallMountBasePillarsPlan();
786 circle(r = wmbb_r_bottom);
791 // cutaway for mount part
792 linextr(-wmb_mount_gap_z, wmb_z_max+1) {
795 rectfromto([ -sm_outer_rad-1, wmb_y_mount_max + wmb_mount_gap_xy ],
796 [ wmb_x_outer + wmb_mount_gap_xy, 1 ]);
800 linextr(wmbb_z_min - 1, wmb_z_max + 1)
801 WallMountTrimWallFoulPlan();
802 WallMountBaseScrewsEtc();
806 module WallMountBaseCutJigPlan(){ ////toplevel
809 circle(r = wmbb_r_top);
812 translate([ wmb_jig_around_gap, 0 ])
813 WallMountTrimWallFoulPlan();
815 offset(delta = wmb_jig_around_gap)
816 WallMountBasePillarsPlan();
820 module WallMountBaseCutJig(){ ////toplevel
821 translate([ 0,0, wmbb_z_flat_max + 0.5 ])
822 linextr(0, wmb_jig_th)
823 WallMountBaseCutJigPlan();
826 module WallMountForBaseDemo(){ ////toplevel
827 render() WallMountForBase();
828 color("blue") render() WallMountBase();
829 %WallMountBaseScrewsEtc();
830 %WallMountBaseCutJig();
833 module CatchAssemblyCoreProfile(){
837 translate(cpp3) circle(r= catch_cr3);
856 translate(cpp8) circle(r= catch_cr);
859 translate(cpp4) circle(r= catch_cr);
860 translate(cpp5) circle(r= catch_cr);
861 translate(cpp7) circle(r= catch_cr);
869 translate(cpp2) circle(r= catch_cr);
871 // if cpp11 is above cpp10, the subtracted hull above
872 // can go down too far. Ensure we do not cut off below cppy6.
877 [ cpp7[0] - catch_cr, cppy6 ],
882 module CatchTipProfile(dy){
887 // circle(r = dist2d(cppF, cppd));
888 //circle(r = dist2d(cppF, cppa));
899 module CatchHeadProfile(){
909 module CatchCore(){ /////toplevel
910 linear_extrude(height=catch_strap_thick, convexity=10)
911 CatchAssemblyCoreProfile();
914 linear_extrude(height=catch_head_th, convexity=10)
916 linear_extrude(height=catch_tip_th, convexity=10)
917 CatchTipProfile(catch_tip_th - catch_head_th);
920 linear_extrude(height=catch_head_th, convexity=10)
923 translate(concat(cppB,[0])) hull(){
924 translate([0,0, catch_knob_height + catch_head_th - catch_knob_dia/2])
925 sphere(r = catch_knob_dia/2);
926 cylinder(r = catch_knob_dia/2, h = 0.1);
930 module CatchPreDistort(){ /////toplevel
931 scale(100 / sm_inner_rad)
936 module CatchAssembly(){ /////toplevel
937 rotate([0,0, -(cppe[0] + cppB[0] + catch_pin_slop) / sm_inner_rad * 360/TAU])
938 translate([0,0, catch_assembly_dy])
939 scale(sm_inner_rad / 100)
940 import(str("poster-tube-lid,CatchPostDistort-fa",
945 SomeStrap(catch_strap_width){
948 translate([-200, -200, -200])
949 cube([400, 200, 400]);
954 module CatchDemo(){ /////toplevel
955 color("blue") translate([0,0,
959 translate([0,0,+side_height
964 module CatchDemoS(){ /////toplevel
965 color("blue") translate([0,0,
970 translate([0,0,+side_height
973 mirror([0,1,0]) translate([-250,33,0]) cube([500,500,500]);
977 cube([6.15, 2,2], center=true);
980 module CatchPinProfileDemo(){ /////toplevel
981 translate([0, 0 * -bayo_behind,0]) {
983 bayo_n[0] - bayo_e[0]);
984 color("blue") translate([0,0,
987 CatchAssemblyCoreProfile();
994 polygon(bayo_polygon, convexity=10);
996 // adhoc show a position
1001 )) difference(){ circle(2.5); circle(2.0); }