22 ratchettoothsmoothr=1;
23 ratchettoothslope=0.75;
54 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
56 include <doveclip.scad>
57 include <cliphook.scad>
58 include <filamentteeth.scad>
60 channelwidth = prongthick + slop;
61 channeldepth = prongwidth + ratchettoothheight;
62 totalwidth = armendwallthick*2 + channelwidth;
63 totalheight = channeldepth + armendbasethick;
64 stalkwidth = prongwidth + prongstalkxwidth;
66 module ArmEnd(length=120){ ////toplevel
67 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
69 DoveClipPairBase(h=doveclipheight);
73 translate([0, -armendwallthick, -armendbasethick])
74 cube([length, totalwidth, totalheight]);
76 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
77 translate([-1, 0, ratchettoothheight])
78 cube([length+2, channelwidth, channeldepth+1]);
80 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
81 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
83 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
84 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
88 cube([ratchettooth - ratchettoothsmoothr*2,
89 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
94 module FilamentCupHandle(){
95 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
97 cube([stalklength, stalkwidth, prongthick]);
98 translate([stalklength, stalkwidth/2, 0])
99 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
100 translate([ratchettoothsmoothr, stalkwidth, 0]) {
102 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
103 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
108 ratchettoothheight - ratchettoothsmoothr,
115 module FilamentCupCup(){
116 xstraight = cupbigrad * xstraightmul;
117 linear_extrude(height=prongthick) {
118 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
120 for (my=[0,1]) mirror([0,my,0]) {
121 translate([0,cupbigrad,0])
122 cube([xstraight, prongwidth, prongthick]);
126 module FilamentCup() { ////toplevel
129 dx = cupbigrad + prongwidth;
131 dy = cupbigrad + gapy + overclipcupgap;
133 translate([dx, dy, 0])
135 translate([0, -1, 0]);
136 cube([prongwidth, dy+1, prongthick]);
138 midrad = cupbigrad + prongwidth/2;
140 propshift = stalklength - overclipdepth - prongthick + propxshift;
141 proptaken = propshift;
142 echo(cupbigrad, dx, midrad, propshift, proptaken);
144 translate([propshift, -1, 0]) {
145 // something is wrong with the y calculation
147 dy - sqrt(midrad*midrad - proptaken*proptaken) - prongwidth/2,
150 translate([0, overclipcupgap, 0])
151 rotate([0,0, 102 + fdia])
152 FilamentTeeth(fdia=fdia, h=teethh);
155 module CupSecuringClipSolid(w,d,h1,h2){
156 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
157 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
161 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
162 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
164 CupSecuringClipSolid(w=totalwidth,
165 d=overclipdepth + xdepth,
166 h1=hbase - overclipsmaller,
167 h2=hbase + overclipbigger);
168 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
172 module CupSecuringClip(){ ////toplevel
173 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
176 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
177 translate([-wingswidth/2, -wingsize/2, 0])
178 cube([wingswidth, wingsize, wingthick]);
180 translate([0,0,-0.1])
181 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
185 module ArmDoveClipPin(){ ////toplevel
186 DoveClipPin(h=doveclipheight);
189 module Hub(){ ////toplevel
191 cylinder($fn=60, h=hublthick, r=hubbigrad);
193 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
195 axlerad = hubaxlerad + slop;
197 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
198 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
200 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
201 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
202 for (ang=[0,120,240])
205 translate([hubeffrad,0,0])
206 DoveClipPairSane(h=doveclipheight,
207 baseextend = (hubeffrad - DoveClip_depth()
208 - hubbigrad + hublwidth));
209 if (hole>hublwidth && holewidth > 2) {
210 translate([hubbigrad + hublwidth, -holewidth/2, -1])
211 cube([hole, holewidth, hublthick+2]);
215 xmin = axlerad+hublwidth/2;
216 xmax = hubbigrad-hublwidth/2;
217 for (ang = [0 : 60 : 359])
218 rotate([0,0,ang]) rotate([90,0,0]) {
219 translate([0,0,-hublwidth/2])
220 linear_extrude(height=hublwidth)
221 polygon([[xmin,0.05], [xmax,0.05],
222 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
226 module ArmExtender(){ ////toplevel
227 DoveClipExtender(length=exteffrad-hubeffrad,