13 ratchettoothsmoothr=1;
14 ratchettoothslope=0.75;
41 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
43 include <doveclip.scad>
44 include <cliphook.scad>
45 include <filamentteeth.scad>
47 channelwidth = prongthick + slop;
48 channeldepth = prongwidth + ratchettoothheight;
49 totalwidth = armendwallthick*2 + channelwidth;
50 totalheight = channeldepth + armendbasethick;
51 stalkwidth = prongwidth + prongstalkxwidth;
53 module ArmEnd(length=120){
54 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
56 DoveClipPairBase(h=doveclipheight);
60 translate([0, -armendwallthick, -armendbasethick])
61 cube([length, totalwidth, totalheight]);
63 cube([length+2, channelwidth, channeldepth+1]);
65 for (dx = [0 : ratchetstep : length - stalklength]) translate([dx,0,0]) {
66 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
68 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
69 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
73 cube([ratchettooth - ratchettoothsmoothr*2,
74 channelwidth, ratchettoothheight]);
79 module FilamentCupHandle(){
80 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
82 cube([stalklength, stalkwidth, prongthick]);
83 translate([stalklength, stalkwidth/2, 0])
84 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
85 translate([ratchettoothsmoothr, stalkwidth, 0]) {
87 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
88 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
93 ratchettoothheight - ratchettoothsmoothr,
100 module FilamentCupCup(){
101 xstraight = cupbigrad;
102 linear_extrude(height=prongthick) {
103 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
105 for (my=[0,1]) mirror([0,my,0]) {
106 translate([0,cupbigrad,0])
107 cube([xstraight, prongwidth, prongthick]);
111 module FilamentCup() {
114 dx = cupbigrad + prongwidth;
116 dy = cupbigrad + gapy + overclipcupgap;
118 translate([dx, dy, 0])
120 translate([0, -1, 0]);
121 cube([prongwidth, dy+1, prongthick]);
123 midrad = cupbigrad + prongwidth/2;
125 propshift = stalklength - overclipdepth - prongthick;
126 proptaken = propshift;
127 echo(cupbigrad, dx, midrad, propshift, proptaken);
129 translate([propshift, -1, 0]) {
131 dy - sqrt(midrad*midrad - proptaken*proptaken),
134 translate([stalklength + overclipdepth, gapy, 0])
135 rotate([0,0,-(10 + fdia)])
136 FilamentTeeth(fdia=fdia, h=teethh);
139 module CupSecuringClipSolid(w,d,h1,h2){
140 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
141 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
145 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
146 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
148 CupSecuringClipSolid(w=totalwidth,
149 d=overclipdepth + xdepth,
150 h1=hbase - overclipsmaller,
151 h2=hbase + overclipbigger);
152 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
156 module CupSecuringClip(){
157 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
160 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
161 translate([-wingswidth/2, -wingsize/2, 0])
162 cube([wingswidth, wingsize, wingthick]);
164 translate([0,0,-0.1])
165 CupSecuringClipSolidSmooth(xrad=0, xdepth=5);