ymaxc = mainheight;
ymax = mainheight+thick/2;
+cutdepth = rod_offset - rod_dia/2 - rearthick;
+
+cut_z0 = screw_head_dia/2;
+cut_z1 = width/2 - rearthick;
+
+cutslopez = cutdepth * 0.5;
+
module C() {
circle(r = thick/2, $fn=30);
}
color("red") translate([0,0,1]) CutProfile();
}
-ProfileDemo();
+module Cut(less){
+ for (m=[0,1]) {
+ mirror([0,0,m]) {
+ translate([0,0, cut_z0 + less])
+ linear_extrude(height = cut_z1 - cut_z0 - less*2)
+ CutProfile();
+ }
+ }
+}
+
+module Hook(){
+ difference(){
+ translate([0,0, -width/2])
+ linear_extrude(height=width) Profile();
+ Cut(0);
+ }
+}
+
+//ProfileDemo();
+Hook();