chiark / gitweb /
filamentclip wip teeth
[reprap-play.git] / filamentclip.scad
index 02191cb053c1cb131dff7abe24bd1b49dfad4828..8f1855ae1f900816970f67151afe45ee1fd19b80 100644 (file)
@@ -2,14 +2,42 @@ include <cliphook.scad>
 
 rad=12;
 h=3.5;
-w=1.2;
+w=1.0;
 
 looprad=2.5;
 loopw=w;
 
-fdia=1.77;
+//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;
+
+  translate([-based, -basew/2, 0]) cube([based, basew, h]);
+  difference() {
+    union() {
+      translate([-d, -teethbigw/2, 0])
+       cube([d+stembendl+teethxl, teethbigw, h]);
+//  translate([
+//  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);
+      }
+    }
+  }
 
-module FilamentClipTeeth(based=1.5, basew=4, clipw=0.6) {
 //  for (mirr=[0:1]) {
 //    mirror([0,mirr,0]) {
 //      linear_extrude(height=h) {
@@ -17,20 +45,16 @@ module FilamentClipTeeth(based=1.5, basew=4, clipw=0.6) {
 //      }
 //    }
 //  }
-  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() {
+  k=1.5;
+  g=0.6;
+
   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);
+      ClipHook(h=h, w=w, g=0.6, k=k, g=g, ye=-1.3);
+      rotate([0,0,180]) ClipHook(h=h, w=w, g=g, k=k, ye=0.8);
     }
   }
 
@@ -45,4 +69,4 @@ module FilamentClip() {
 }
 
 FilamentClip();
-//FilamentClipTeeth();
+FilamentClipTeeth();