chiark / gitweb /
filamentclip tuning
[reprap-play.git] / filamentclip.scad
1 include <cliphook.scad>
2
3 rad=12;
4 h=3.5;
5 w=1.0;
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   k=1.5;
31   g=0.6;
32
33   rotate([0,0,-45]) {
34     translate([0,rad,0]) {
35       ClipHook(h=h, w=w, g=0.6, k=k, g=g, ye=-1.3);
36       rotate([0,0,180]) ClipHook(h=h, w=w, g=g, k=k, ye=0.8);
37     }
38   }
39
40   linear_extrude(height=h) {
41     assign($fn=80) {
42       FlatArc(0,0, rad-w/2,rad+w/2, 65,379);
43     }
44     assign($fn=30) {
45       FlatArc(0,rad+looprad+w, looprad,looprad+loopw);
46     }
47   }
48 }
49
50 FilamentClip();
51 //FilamentClipTeeth();