chiark / gitweb /
cliphook bugfix
[reprap-play.git] / filamentclip.scad
1 include <cliphook.scad>
2
3 rad=12;
4 h=3.5;
5 w=1.2;
6
7 looprad=2.5;
8 loopw=w;
9
10 fdia=1.77;
11
12 module FilamentClipTeeth(based=1.5, basew=4, clipw=0.6) {
13 //  for (mirr=[0:1]) {
14 //    mirror([0,mirr,0]) {
15 //      linear_extrude(height=h) {
16 //      translate(0.5, square([
17 //      }
18 //    }
19 //  }
20   extent1=1.5;
21 //  jaww=
22   translate([-based, -basew/2, 0]) cube([based, basew, h]);
23 //  translate([
24   linear_extrude(height=h) {
25     FlatArc(extent1+fdia/2, 0, fdia/2, fdia/2+clipw, $fn=30);
26   }
27 }
28
29 module FilamentClip() {
30   rotate([0,0,-45]) {
31     translate([0,rad,0]) {
32       ClipHook(h=h,w=w,k=1.5, ye=-1.3);
33       rotate([0,0,180]) ClipHook(h=h,w=w,k=1.5, ye=0.8);
34     }
35   }
36
37   linear_extrude(height=h) {
38     assign($fn=80) {
39       FlatArc(0,0, rad-w/2,rad+w/2, 65,379);
40     }
41     assign($fn=30) {
42       FlatArc(0,rad+looprad+w, looprad,looprad+loopw);
43     }
44   }
45 }
46
47 FilamentClip();
48 //FilamentClipTeeth();