13 ratchettoothsmoothr=1;
14 ratchettoothslope=0.75;
45 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
47 include <doveclip.scad>
48 include <cliphook.scad>
49 include <filamentteeth.scad>
51 channelwidth = prongthick + slop;
52 channeldepth = prongwidth + ratchettoothheight;
53 totalwidth = armendwallthick*2 + channelwidth;
54 totalheight = channeldepth + armendbasethick;
55 stalkwidth = prongwidth + prongstalkxwidth;
57 module ArmEnd(length=120){
58 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
60 DoveClipPairBase(h=doveclipheight);
64 translate([0, -armendwallthick, -armendbasethick])
65 cube([length, totalwidth, totalheight]);
67 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
68 translate([-1, 0, ratchettoothheight])
69 cube([length+2, channelwidth, channeldepth+1]);
71 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
72 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
74 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
75 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
79 cube([ratchettooth - ratchettoothsmoothr*2,
80 channelwidth, ratchettoothheight]);
85 module FilamentCupHandle(){
86 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
88 cube([stalklength, stalkwidth, prongthick]);
89 translate([stalklength, stalkwidth/2, 0])
90 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
91 translate([ratchettoothsmoothr, stalkwidth, 0]) {
93 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
94 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
99 ratchettoothheight - ratchettoothsmoothr,
106 module FilamentCupCup(){
107 xstraight = cupbigrad * xstraightmul;
108 linear_extrude(height=prongthick) {
109 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
111 for (my=[0,1]) mirror([0,my,0]) {
112 translate([0,cupbigrad,0])
113 cube([xstraight, prongwidth, prongthick]);
117 module FilamentCup() {
120 dx = cupbigrad + prongwidth;
122 dy = cupbigrad + gapy + overclipcupgap;
124 translate([dx, dy, 0])
126 translate([0, -1, 0]);
127 cube([prongwidth, dy+1, prongthick]);
129 midrad = cupbigrad + prongwidth/2;
131 propshift = stalklength - overclipdepth - prongthick + propxshift;
132 proptaken = propshift;
133 echo(cupbigrad, dx, midrad, propshift, proptaken);
135 translate([propshift, -1, 0]) {
136 // something is wrong with the y calculation
138 dy - sqrt(midrad*midrad - proptaken*proptaken) - prongwidth/2,
141 translate([0, overclipcupgap, 0])
142 rotate([0,0, 102 + fdia])
143 FilamentTeeth(fdia=fdia, h=teethh);
146 module CupSecuringClipSolid(w,d,h1,h2){
147 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
148 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
152 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
153 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
155 CupSecuringClipSolid(w=totalwidth,
156 d=overclipdepth + xdepth,
157 h1=hbase - overclipsmaller,
158 h2=hbase + overclipbigger);
159 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
163 module CupSecuringClip(){
164 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
167 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
168 translate([-wingswidth/2, -wingsize/2, 0])
169 cube([wingswidth, wingsize, wingthick]);
171 translate([0,0,-0.1])
172 CupSecuringClipSolidSmooth(xrad=0, xdepth=5);
176 module ArmDoveClipPin(){
177 DoveClipPin(h=doveclipheight);