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+2, channelwidth, channeldepth+1]);
69 for (dx = [0 : ratchetstep : length - stalklength]) translate([dx,0,0]) {
70 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
72 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
73 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
77 cube([ratchettooth - ratchettoothsmoothr*2,
78 channelwidth, ratchettoothheight]);
83 module FilamentCupHandle(){
84 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
86 cube([stalklength, stalkwidth, prongthick]);
87 translate([stalklength, stalkwidth/2, 0])
88 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
89 translate([ratchettoothsmoothr, stalkwidth, 0]) {
91 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
92 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
97 ratchettoothheight - ratchettoothsmoothr,
104 module FilamentCupCup(){
105 xstraight = cupbigrad * xstraightmul;
106 linear_extrude(height=prongthick) {
107 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
109 for (my=[0,1]) mirror([0,my,0]) {
110 translate([0,cupbigrad,0])
111 cube([xstraight, prongwidth, prongthick]);
115 module FilamentCup() {
118 dx = cupbigrad + prongwidth;
120 dy = cupbigrad + gapy + overclipcupgap;
122 translate([dx, dy, 0])
124 translate([0, -1, 0]);
125 cube([prongwidth, dy+1, prongthick]);
127 midrad = cupbigrad + prongwidth/2;
129 propshift = stalklength - overclipdepth - prongthick + propxshift;
130 proptaken = propshift;
131 echo(cupbigrad, dx, midrad, propshift, proptaken);
133 translate([propshift, -1, 0]) {
134 // something is wrong with the y calculation
136 dy - sqrt(midrad*midrad - proptaken*proptaken) - prongwidth/2,
139 translate([0, overclipcupgap, 0])
140 rotate([0,0, 102 + fdia])
141 FilamentTeeth(fdia=fdia, h=teethh);
144 module CupSecuringClipSolid(w,d,h1,h2){
145 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
146 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
150 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
151 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
153 CupSecuringClipSolid(w=totalwidth,
154 d=overclipdepth + xdepth,
155 h1=hbase - overclipsmaller,
156 h2=hbase + overclipbigger);
157 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
161 module CupSecuringClip(){
162 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
165 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
166 translate([-wingswidth/2, -wingsize/2, 0])
167 cube([wingswidth, wingsize, wingthick]);
169 translate([0,0,-0.1])
170 CupSecuringClipSolidSmooth(xrad=0, xdepth=5);
174 module ArmDoveClipPin(){
175 DoveClipPin(h=doveclipheight);