chiark / gitweb /
filamentclip wip
[reprap-play.git] / filamentclip.scad
index bf8a03043b6e340613d739a9f4295a1832cb5313..02191cb053c1cb131dff7abe24bd1b49dfad4828 100644 (file)
@@ -1,2 +1,48 @@
 include <cliphook.scad>
-ClipHook();
+
+rad=12;
+h=3.5;
+w=1.2;
+
+looprad=2.5;
+loopw=w;
+
+fdia=1.77;
+
+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]);
+//  translate([
+  linear_extrude(height=h) {
+    FlatArc(extent1+fdia/2, 0, fdia/2, fdia/2+clipw, $fn=30);
+  }
+}
+
+module FilamentClip() {
+  rotate([0,0,-45]) {
+    translate([0,rad,0]) {
+      ClipHook(h=h,w=w,k=1.5, ye=-1.3);
+      rotate([0,0,180]) ClipHook(h=h,w=w,k=1.5, ye=0.8);
+    }
+  }
+
+  linear_extrude(height=h) {
+    assign($fn=80) {
+      FlatArc(0,0, rad-w/2,rad+w/2, 65,379);
+    }
+    assign($fn=30) {
+      FlatArc(0,rad+looprad+w, looprad,looprad+loopw);
+    }
+  }
+}
+
+FilamentClip();
+//FilamentClipTeeth();