12 ratchettoothsmoothr=1;
13 ratchettoothslope=0.75;
40 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
42 include <doveclip.scad>
43 include <cliphook.scad>
44 include <filamentteeth.scad>
46 channelwidth = prongthick + slop;
47 channeldepth = prongwidth + ratchettoothheight;
48 totalwidth = armendwallthick*2 + channelwidth;
49 totalheight = channeldepth + armendbasethick;
50 stalkwidth = prongwidth + prongstalkxwidth;
52 module ArmEnd(length=120){
53 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
55 DoveClipPairBase(h=doveclipheight);
59 translate([0, -armendwallthick, -armendbasethick])
60 cube([length, totalwidth, totalheight]);
62 cube([length+2, channelwidth, channeldepth+1]);
64 for (dx = [0 : ratchetstep : length - stalklength]) translate([dx,0,0]) {
65 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
67 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
68 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
72 cube([ratchettooth - ratchettoothsmoothr*2,
73 channelwidth, ratchettoothheight]);
78 module FilamentCupHandle(){
79 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
81 cube([stalklength, stalkwidth, prongthick]);
82 translate([stalklength, stalkwidth/2, 0])
83 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
84 translate([ratchettoothsmoothr, stalkwidth, 0]) {
86 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
87 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
92 ratchettoothheight - ratchettoothsmoothr,
99 module FilamentCupCup(){
100 xstraight = cupbigrad;
101 linear_extrude(height=prongthick) {
102 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
104 for (my=[0,1]) mirror([0,my,0]) {
105 translate([0,cupbigrad,0])
106 cube([xstraight, prongwidth, prongthick]);
110 module FilamentCup() {
113 dx = cupbigrad + prongwidth;
115 dy = cupbigrad + gapy + overclipcupgap;
117 translate([dx, dy, 0])
119 translate([0, -1, 0]);
120 cube([prongwidth, dy+1, prongthick]);
122 midrad = cupbigrad + prongwidth/2;
124 propshift = stalklength - overclipdepth - prongthick;
125 proptaken = propshift;
126 echo(cupbigrad, dx, midrad, propshift, proptaken);
128 translate([propshift, -1, 0]) {
130 dy - sqrt(midrad*midrad - proptaken*proptaken),
133 translate([stalklength + overclipdepth, gapy, 0])
134 rotate([0,0,-(10 + fdia)])
135 FilamentTeeth(fdia=fdia, h=teethh);
138 module CupSecuringClipSolid(w,d,h1,h2){
139 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
140 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
144 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
145 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
147 CupSecuringClipSolid(w=totalwidth,
148 d=overclipdepth + xdepth,
149 h1=hbase - overclipsmaller,
150 h2=hbase + overclipbigger);
151 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
155 module CupSecuringClip(){
156 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
159 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
160 translate([-wingswidth/2, -wingsize/2, 0])
161 cube([wingswidth, wingsize, wingthick]);
163 translate([0,0,-0.1])
164 CupSecuringClipSolidSmooth(xrad=0, xdepth=5);