22 ratchettoothsmoothr=1;
23 ratchettoothslope=0.75;
54 axlehorizoffset = 12.5;
60 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
62 include <doveclip.scad>
63 include <cliphook.scad>
64 include <filamentteeth.scad>
66 channelwidth = prongthick + slop;
67 channeldepth = prongwidth + ratchettoothheight;
68 totalwidth = armendwallthick*2 + channelwidth;
69 totalheight = channeldepth + armendbasethick;
70 stalkwidth = prongwidth + prongstalkxwidth;
72 module ArmEnd(length=120){ ////toplevel
73 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
75 DoveClipPairBase(h=doveclipheight);
79 translate([0, -armendwallthick, -armendbasethick])
80 cube([length, totalwidth, totalheight]);
82 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
83 translate([-1, 0, ratchettoothheight])
84 cube([length+2, channelwidth, channeldepth+1]);
86 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
87 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
89 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
90 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
94 cube([ratchettooth - ratchettoothsmoothr*2,
95 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
100 module FilamentCupHandle(){
101 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
103 cube([stalklength, stalkwidth, prongthick]);
104 translate([stalklength, stalkwidth/2, 0])
105 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
106 translate([ratchettoothsmoothr, stalkwidth, 0]) {
108 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
109 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
114 ratchettoothheight - ratchettoothsmoothr,
121 module FilamentCupCup(){
122 xstraight = cupbigrad * xstraightmul;
123 linear_extrude(height=prongthick) {
124 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
126 for (my=[0,1]) mirror([0,my,0]) {
127 translate([0,cupbigrad,0])
128 cube([xstraight, prongwidth, prongthick]);
132 module FilamentCup() { ////toplevel
135 dx = cupbigrad + prongwidth;
137 dy = cupbigrad + gapy + overclipcupgap;
139 translate([dx, dy, 0])
141 translate([0, -1, 0]);
142 cube([prongwidth, dy+1, prongthick]);
144 midrad = cupbigrad + prongwidth/2;
146 propshift = stalklength - overclipdepth - prongthick + propxshift;
147 proptaken = propshift;
148 echo(cupbigrad, dx, midrad, propshift, proptaken);
150 translate([propshift, -1, 0]) {
151 // something is wrong with the y calculation
153 dy - sqrt(midrad*midrad - proptaken*proptaken) - prongwidth/2,
156 translate([0, overclipcupgap, 0])
157 rotate([0,0, 102 + fdia])
158 FilamentTeeth(fdia=fdia, h=teethh);
161 module CupSecuringClipSolid(w,d,h1,h2){
162 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
163 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
167 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
168 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
170 CupSecuringClipSolid(w=totalwidth,
171 d=overclipdepth + xdepth,
172 h1=hbase - overclipsmaller,
173 h2=hbase + overclipbigger);
174 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
178 module CupSecuringClip(){ ////toplevel
179 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
182 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
183 translate([-wingswidth/2, -wingsize/2, 0])
184 cube([wingswidth, wingsize, wingthick]);
186 translate([0,0,-0.1])
187 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
191 module ArmDoveClipPin(){ ////toplevel
192 DoveClipPin(h=doveclipheight);
195 module Hub(){ ////toplevel
197 cylinder($fn=60, h=hublthick, r=hubbigrad);
199 cylinder($fn=30, h=hublthick+2, r=(hubbigrad-hublwidth));
201 axlerad = hubaxlerad + slop;
203 cylinder(h=hubaxlelen, r=axlerad+hublwidth);
204 translate([0,0,-1]) cylinder($fn=60, h=hubaxlelen+2, r=axlerad);
206 hole = hubeffrad - hubbigrad - DoveClip_depth() - hublwidth*2;
207 holewidth = DoveClipPairSane_width() - hubstemwidth*2;
208 for (ang=[0,120,240])
211 translate([hubeffrad,0,0])
212 DoveClipPairSane(h=doveclipheight,
213 baseextend = (hubeffrad - DoveClip_depth()
214 - hubbigrad + hublwidth));
215 if (hole>hublwidth && holewidth > 2) {
216 translate([hubbigrad + hublwidth, -holewidth/2, -1])
217 cube([hole, holewidth, hublthick+2]);
221 xmin = axlerad+hublwidth/2;
222 xmax = hubbigrad-hublwidth/2;
223 for (ang = [0 : 60 : 359])
224 rotate([0,0,ang]) rotate([90,0,0]) {
225 translate([0,0,-hublwidth/2])
226 linear_extrude(height=hublwidth)
227 polygon([[xmin,0.05], [xmax,0.05],
228 [xmax,hublthick-0.2], [xmin, hubaxlelen-0.2]]);
232 module ArmExtender(){ ////toplevel
233 DoveClipExtender(length=exteffrad-hubeffrad,
238 module Axle(){ ////toplevel
239 pillarswidth = DoveClipPairSane_width(towerclipcount);
241 translate([-axlehorizoffset, -axlevertheight, 0]) {
243 DoveClipPairSane(h=towercliph, count=towerclipcount, baseextend=3);
244 translate([0, DoveClip_depth(), 0])
246 ExtenderPillars(axlevertheight - DoveClip_depth(),
247 pillarswidth, towercliph,
248 pillarw=towerpillarw);