chiark / gitweb /
filamentclip with teeth, adjusted, for print
[reprap-play.git] / filamentclip.scad
index 583173c2892569efc9da0445cb12be00e2b506b2..85af4c9745fdab61f727b35a1e5aa393b80fed7b 100644 (file)
@@ -8,21 +8,42 @@ looprad=2.5;
 loopw=w;
 
 fdia=1.77;
+//fdia=3;
+
+d=0.01;
+
+module FilamentClipTeeth(based=1.5, basew=4, teethw=0.6,
+                        stembendd=0.5, stembendl=4, teethxl=1) {
+  gapw = fdia-stembendd*2;
+  teethbigw = gapw + teethw*2;
 
-module FilamentClipTeeth(based=1.5, basew=4, clipw=0.6) {
-//  for (mirr=[0:1]) {
-//    mirror([0,mirr,0]) {
-//      linear_extrude(height=h) {
-//     translate(0.5, square([
-//      }
-//    }
-//  }
-  extent1=1.5;
-//  jaww=
   translate([-based, -basew/2, 0]) cube([based, basew, h]);
+  difference() {
+    union() {
+      translate([-d, -teethbigw/2, 0])
+       cube([d+stembendl + teethw, teethbigw, h]);
 //  translate([
-  linear_extrude(height=h) {
-    FlatArc(extent1+fdia/2, 0, fdia/2, fdia/2+clipw, $fn=30);
+//  stembigw = fdia + stembend
+//  translate([-d, -stemw, 
+      linear_extrude(height=h) {
+       translate([stembendl-fdia/2, 0]) circle(fdia/2+teethw, $fn=30);
+      }
+    }
+    translate([0,0,-1]) {
+      translate([0,-gapw/2])
+       cube([stembendl+teethxl+1, gapw, h+2]);
+      linear_extrude(height=h+2) {
+       translate([stembendl-fdia/2, 0]) circle(fdia/2, $fn=30);
+      }
+    }
+  }
+
+  for (mirr=[0:1]) {
+    mirror([0,mirr,0]) {
+      translate([stembendl + teethw, gapw/2, 0])
+       rotate([0,0,30])
+       cube([teethxl, teethw, h]);
+    }
   }
 }
 
@@ -45,7 +66,12 @@ module FilamentClip() {
       FlatArc(0,rad+looprad+w, looprad,looprad+loopw);
     }
   }
+
+  for (rot=[0,180]) {
+    rotate([0,0,rot])
+      translate([rad, 0, 0]) FilamentClipTeeth();
+  }
 }
 
 FilamentClip();
-//FilamentClipTeeth();
+