20 ratchettoothsmoothr=1;
21 ratchettoothslope=0.75;
52 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
54 include <doveclip.scad>
55 include <cliphook.scad>
56 include <filamentteeth.scad>
58 channelwidth = prongthick + slop;
59 channeldepth = prongwidth + ratchettoothheight;
60 totalwidth = armendwallthick*2 + channelwidth;
61 totalheight = channeldepth + armendbasethick;
62 stalkwidth = prongwidth + prongstalkxwidth;
64 module ArmEnd(length=120){
65 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
67 DoveClipPairBase(h=doveclipheight);
71 translate([0, -armendwallthick, -armendbasethick])
72 cube([length, totalwidth, totalheight]);
74 cube([length+1 - ratchettooth, channelwidth, channeldepth+1]);
75 translate([-1, 0, ratchettoothheight])
76 cube([length+2, channelwidth, channeldepth+1]);
78 for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) {
79 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
81 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
82 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
86 cube([ratchettooth - ratchettoothsmoothr*2,
87 channelwidth, ratchettoothheight - ratchettoothsmoothr]);
92 module FilamentCupHandle(){
93 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
95 cube([stalklength, stalkwidth, prongthick]);
96 translate([stalklength, stalkwidth/2, 0])
97 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
98 translate([ratchettoothsmoothr, stalkwidth, 0]) {
100 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
101 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
106 ratchettoothheight - ratchettoothsmoothr,
113 module FilamentCupCup(){
114 xstraight = cupbigrad * xstraightmul;
115 linear_extrude(height=prongthick) {
116 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
118 for (my=[0,1]) mirror([0,my,0]) {
119 translate([0,cupbigrad,0])
120 cube([xstraight, prongwidth, prongthick]);
124 module FilamentCup() {
127 dx = cupbigrad + prongwidth;
129 dy = cupbigrad + gapy + overclipcupgap;
131 translate([dx, dy, 0])
133 translate([0, -1, 0]);
134 cube([prongwidth, dy+1, prongthick]);
136 midrad = cupbigrad + prongwidth/2;
138 propshift = stalklength - overclipdepth - prongthick + propxshift;
139 proptaken = propshift;
140 echo(cupbigrad, dx, midrad, propshift, proptaken);
142 translate([propshift, -1, 0]) {
143 // something is wrong with the y calculation
145 dy - sqrt(midrad*midrad - proptaken*proptaken) - prongwidth/2,
148 translate([0, overclipcupgap, 0])
149 rotate([0,0, 102 + fdia])
150 FilamentTeeth(fdia=fdia, h=teethh);
153 module CupSecuringClipSolid(w,d,h1,h2){
154 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
155 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
159 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
160 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
162 CupSecuringClipSolid(w=totalwidth,
163 d=overclipdepth + xdepth,
164 h1=hbase - overclipsmaller,
165 h2=hbase + overclipbigger);
166 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
170 module CupSecuringClip(){
171 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
174 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
175 translate([-wingswidth/2, -wingsize/2, 0])
176 cube([wingswidth, wingsize, wingthick]);
178 translate([0,0,-0.1])
179 CupSecuringClipSolidSmooth(xrad=0, xdepth=0.2);
183 module ArmDoveClipPin(){
184 DoveClipPin(h=doveclipheight);
189 cylinder(h=hublthick, r=hubbigrad);
190 translate([0,0,-1]) cylinder(h=hublthick+2, r=(hubbigrad-hublwidth));
193 cylinder(h=hubaxlelen, r=hubaxlerad+hublwidth);
194 translate([0,0,-1]) cylinder(h=hubaxlelen+2, r=hubaxlerad);
196 for (ang=[0,120,240])
198 translate([hubbigrad,0,0])
200 DoveClipPairBase(baseextend=hublwidth, h=doveclipheight);
202 xmin = hubaxlerad+hublwidth/2;
203 xmax = hubbigrad-hublwidth/2;
204 for (ang = [0 : 60 : 359])
205 rotate([0,0,ang]) rotate([90,0,0]) {
206 translate([0,0,-hublwidth/2])
207 linear_extrude(height=hublwidth)
208 polygon([[xmin,0], [xmax,0], [xmax,hublthick], [xmin,hubaxlelen]]);