10 ratchettoothsmoothr=1;
11 ratchettoothslope=0.75;
33 ratchetpawl=ratchetstep-ratchettooth-bigslop*2;
35 include <doveclip.scad>
36 include <cliphook.scad>
38 channelwidth = prongthick + slop;
39 channeldepth = prongwidth + ratchettoothheight;
40 totalwidth = armendwallthick*2 + channelwidth;
41 totalheight = channeldepth + armendbasethick;
42 stalkwidth = prongwidth + prongstalkxwidth;
44 doveclipheight = totalheight;
46 module ArmEnd(length=120){
47 translate([ratchettoothsmoothr, channelwidth/2, -armendbasethick]) {
49 DoveClipPairBase(h=doveclipheight);
53 translate([0, -armendwallthick, -armendbasethick])
54 cube([length, totalwidth, totalheight]);
56 cube([length+2, channelwidth, channeldepth+1]);
58 for (dx = [0 : ratchetstep : length - stalklength]) translate([dx,0,0]) {
59 translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){
61 cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick);
62 multmatrix([ [ 1, 0, ratchettoothslope, 0 ],
66 cube([ratchettooth - ratchettoothsmoothr*2,
67 channelwidth, ratchettoothheight]);
72 module FilamentCupHandle(){
73 pawlusewidth = ratchetpawl-ratchettoothsmoothr*2;
75 cube([stalklength, stalkwidth, prongthick]);
76 translate([stalklength, stalkwidth/2, 0])
77 cylinder(r=stalkwidth/2, h=prongthick, $fn=20);
78 translate([ratchettoothsmoothr, stalkwidth, 0]) {
80 cylinder($fn=20,r=ratchettoothsmoothr, h=1);
81 multmatrix([ [ 1, -ratchettoothslope, 0, 0 ],
86 ratchettoothheight - ratchettoothsmoothr,
93 module FilamentCupCup(){
94 xstraight = cupbigrad;
95 linear_extrude(height=prongthick) {
96 FlatArc(0,0, cupbigrad,cupbigrad+prongwidth, 89,271, $fn=80);
98 for (my=[0,1]) mirror([0,my,0]) {
99 translate([0,cupbigrad,0])
100 cube([xstraight, prongwidth, prongthick]);
104 module FilamentCup() {
107 dx = cupbigrad + prongwidth;
108 dy = cupbigrad + prongwidth + overclipcupgap;
110 translate([dx, dy, 0])
112 translate([0, -1, 0]);
113 cube([prongwidth, dy+1, prongthick]);
115 midrad = cupbigrad + prongwidth/2;
117 propshift = stalklength - overclipdepth - prongthick;
118 proptaken = propshift;
119 echo(cupbigrad, dx, midrad, propshift, proptaken);
121 translate([propshift, -1, 0])
123 dy - sqrt(midrad*midrad - proptaken*proptaken),
127 module CupSecuringClipSolid(w,d,h1,h2){
128 rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) {
129 polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);
133 module CupSecuringClipSolidSmooth(xrad=0, xdepth=0){
134 hbase = totalheight + prongstalkxwidth - overcliproundr*2;
136 CupSecuringClipSolid(w=totalwidth,
137 d=overclipdepth + xdepth,
138 h1=hbase - overclipsmaller,
139 h2=hbase + overclipbigger);
140 cylinder($fn=20, h=0.01, r=overcliproundr+xrad);
144 module CupSecuringClip(){
145 wingswidth = wingspoke*2 + overclipthick*2 + overcliproundr*2 + totalwidth;
148 CupSecuringClipSolidSmooth(xrad=overclipthick, xdepth=0);
149 translate([-wingswidth/2, -wingsize/2, 0])
150 cube([wingswidth, wingsize, wingthick]);
152 translate([0,0,-0.1])
153 CupSecuringClipSolidSmooth(xrad=0, xdepth=5);