+module StrapMount(){ ////toplevel
+ SomeStrap(){
+ rotate([0,0,180]){
+ StrapMountProtrusion(strap_hoop_inside/2 + strap_hoop_thick,
+ strap_hoop_thick,
+ sm_closure_cnr);
+ translate(smc_pos +
+ [0,0, sm_main_width] +
+ strap_hoop_thick * [ 0, 0.5, -1.0 ])
+ StrapHoop();
+ }
+ union(){ };
+ }
+}
+
+module CatchAssemblyCoreProfile(){
+ difference(){
+ union(){
+ hull(){
+ translate(cpp3) circle(r= catch_cr);
+ polygon([ cpp3,
+ cpp2r,
+ cpp5,
+ cpph,
+ cppd
+ ]);
+ }
+ polygon([cppD,
+ cppC,
+ cpp9,
+ cpp10,
+ cpp11,
+ cpp4,
+ cpp2r,
+ cpp2d,
+ cppA,
+ cppE
+ ]);
+ translate(cpp8) circle(r= catch_cr);
+ }
+ hull(){
+ translate(cpp4) circle(r= catch_cr);
+ translate(cpp5) circle(r= catch_cr);
+ translate(cpp7) circle(r= catch_cr);
+ polygon([cpp4,
+ cppg,
+ cpph,
+ cpp10,
+ cpp11,
+ ]);
+ }
+ }
+}
+
+module CatchCoreProfile(){ ////toplevel
+ hull(){
+ translate(cppB) circle(r= catch_knob_dia/2);
+ polygon([cpp4,
+ cppB,
+ cpp3]);
+ }
+ translate(cpp8)
+ circle(catch_cr);
+ polygon([
+ cpp4,
+ cppB,
+ cpp3,
+ cpp2,
+ cpp1,
+ cpp12,
+ ]);
+ difference(){
+ polygon([ cpp4,
+ cpp3,
+ cpp12,
+ cppA,
+ cppE,
+ cppD,
+ cppC,
+ cpp9,
+ cpp10,
+ cpp11,
+ cpp7,
+ cpp5,
+ ], convexity=10);
+ hull(){
+ translate(cpp7) circle(r= catch_cr);
+ polygon([ cpp7,
+ cpp5,
+ cpp11 ]);
+ }
+ hull(){
+ translate(cpp6) circle(catch_cr);
+ polygon([ cppA,
+ cpp0,
+ cpp1 ]);
+ }
+ }
+}
+
+module CatchCore(){ /////toplevel
+ linear_extrude(height=catch_strap_thick, convexity=10)
+ CatchAssemblyCoreProfile();
+
+ translate(concat(cppB,[0])) hull(){
+ translate([0,0, catch_knob_height - catch_knob_dia/2])
+ sphere(r = catch_knob_dia/2);
+ cylinder(r = catch_knob_dia/2, h = 0.1);
+ }
+}
+
+module CatchPreDistort(){ /////toplevel
+ scale(100 / sm_inner_rad)
+ rotate([90,0,0])
+ CatchCore();
+}
+
+module CatchAssembly(){ /////toplevel
+ rotate([0,0, -0.5 * (cpp1[0] + cpp2[0]) / sm_inner_rad * 360/TAU])
+ translate([0,0, catch_strap_width])
+ scale(sm_inner_rad / 100)
+ import(str("poster-tube-lid,CatchPostDistort-fa",
+ (coarse ? 20 : 3),
+ ".stl"),
+ convexity=20);
+
+ SomeStrap(){
+ union(){ }
+ union(){
+ translate([-200, -200, -200])
+ cube([400, 200, 400]);
+ }
+ }
+}
+
+module CatchDemo(){ /////toplevel
+ color("blue") translate([0,0,
+ -catch_strap_width
+ -cpp0[1]
+ ])
+ CatchAssembly();
+ translate([0,0,+side_height
+ ])
+ Cover();
+}
+
+module CatchDemoS(){ /////toplevel
+ color("blue") translate([0,0,
+ -catch_strap_width
+ -cpp0[1]
+ ])
+ CatchAssembly();
+ intersection(){
+ translate([0,0,+side_height
+ ])
+ Cover();
+ mirror([0,1,0]) translate([-250,33,0]) cube([500,500,500]);
+ }
+ color("black")
+ translate([0,-33,0])
+ cube([6.15, 2,2], center=true);
+}
+
+module CatchPinProfileDemo(){ /////toplevel
+ echo("G ",
+ cpp2[0] - cpp1[0],
+ bayo_n[0] - bayo_e[0]);
+ color("blue") translate([-cpp2[0],
+ -cpp2[1],
+ +1,
+ ])
+ CatchCoreProfile();
+ polygon(bayo_polygon, convexity=10);
+}
+