chiark / gitweb /
filamentclip wip
[reprap-play.git] / filamentclip.scad
index 4b57bdf425d76593f1b91044e2399faa6d9e5b7c..02191cb053c1cb131dff7abe24bd1b49dfad4828 100644 (file)
@@ -4,21 +4,45 @@ rad=12;
 h=3.5;
 w=1.2;
 
-looprad=3;
+looprad=2.5;
 loopw=w;
 
-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);
+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);
   }
 }
 
-linear_extrude(height=h) {
-  assign($fn=80) {
-    FlatArc(0,0, rad-w/2,rad+w/2, 65,379);
+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);
+    }
   }
-  assign($fn=30) {
-    FlatArc(0,rad+looprad, looprad-loopw/2,looprad+loopw/2, 0,361);
+
+  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();