X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=filamentspool.scad;h=fe29eea1f926f91efcb8fe8c085ac610f63b789d;hp=4890fa2d96fa3978881c3bd337ccd29774e5e6df;hb=0e516ff8b8cfb2664846004e74ec7d511b577f55;hpb=070616ce63b92579cdb462818d478d90ffbaa994 diff --git a/filamentspool.scad b/filamentspool.scad index 4890fa2..fe29eea 100644 --- a/filamentspool.scad +++ b/filamentspool.scad @@ -158,7 +158,7 @@ channelslop=selsz(slop,0.75,slop); exteffrad = 70; hubeffrad = selsz(30, 82, 40); hubbigrad = selsz(20, 38, 38); -hublwidth = selsz(3, 2.5, 4); +hublwidth = selsz(3, 2.5, 3.0); hubstemwidth = 2; hublthick = 10; hubaxlerad = selsz(5, 28/2, 28/2); @@ -290,73 +290,72 @@ module ArmEnd(length=armend_length){ ////toplevel } } - for (otherside=[0,1]) { - for (circum = [300:100:1500]) { - assign(rad = circum / tau) - assign(fn = str("filamentspool-number-n",circum,".dxf")) - assign(rotateoffset = [0, totalwidth/2, 0]) - assign(xlen = rad - real_exteffrad) { - if (xlen >= numbers_tick_width/2 - + (otherside ? numbers_height_allow : 0) && - xlen <= length - (otherside ? 0 : numbers_height_allow)) - translate([xlen, -armendwallthick, - -armendbasethick + (totalheight - numbers_tick_len)/2]) - translate(rotateoffset) - rotate([0,0, otherside*180]) - translate(-rotateoffset){ - translate([-numbers_tick_width/2, -1, 0]) - cube([numbers_tick_width, numbers_relief+1, numbers_tick_len]); - translate([numbers_tick_width/2 + numbers_tick_linespc, - 1, - numbers_tick_len]) - rotate([90,0,0]) - rotate([0,0,-90]) - linear_extrude(height= numbers_relief+1) - // scale(templatescale) - import(file=fn, convexity=100); - } + difference(){ + union(){ + difference(){ + translate([0, -armendwallthick, -armendbasethick]) + cube([length, totalwidth, totalheight]); + translate([-1, 0, 0]) + cube([length+1 - ratchettooth, channelwidth, channeldepth+1]); + translate([-1, 0, ratchettoothheight]) + cube([length+2, channelwidth, channeldepth+1]); + } + for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) { + translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){ + rotate([90,0,0]) + cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick); + multmatrix([ [ 1, 0, ratchettoothslope, 0 ], + [ 0, 1, 0, 0 ], + [ 0, 0, 1, 0 ], + [ 0, 0, 0, 1 ]]) + cube([ratchettooth - ratchettoothsmoothr*2, + channelwidth, ratchettoothheight - ratchettoothsmoothr]); + } } } - } - difference(){ - translate([0, -armendwallthick, -armendbasethick]) - cube([length, totalwidth, totalheight]); - translate([-1, 0, 0]) - cube([length+1 - ratchettooth, channelwidth, channeldepth+1]); - translate([-1, 0, ratchettoothheight]) - cube([length+2, channelwidth, channeldepth+1]); + for (otherside=[0,1]) { + for (circum = [300:100:1500]) { + assign(rad = circum / tau) + assign(fn = str("filamentspool-number-n",circum,".dxf")) + assign(rotateoffset = [0, totalwidth/2, 0]) + assign(xlen = rad - real_exteffrad) { + if (xlen >= numbers_tick_width/2 + + (otherside ? numbers_height_allow : 0) && + xlen <= length - (otherside ? 0 : numbers_height_allow)) + translate([xlen, -armendwallthick, + -armendbasethick + (totalheight - numbers_tick_len)/2]) + translate(rotateoffset) + rotate([0,0, otherside*180]) + translate(-rotateoffset){ + translate([-numbers_tick_width/2, -1, 0]) + cube([numbers_tick_width, numbers_relief+1, numbers_tick_len]); + translate([numbers_tick_width/2 + numbers_tick_linespc, + 1, + numbers_tick_len]) + rotate([90,0,0]) + rotate([0,0,-90]) + linear_extrude(height= numbers_relief+1) + // scale(templatescale) + import(file=fn, convexity=100); + } + } + } + } if (usedove()){ - translate([0,0, -armendbasethick]) + translate([0, -armendwallthick, -armendbasethick]) Commitid_BestCount_M([length/3, totalwidth]); } } - for (dx = [0 : ratchetstep : length - ratchetstep]) translate([dx,0,0]) { - translate([ratchettoothsmoothr+0.5, armendwallthick/2, 0]) minkowski(){ - rotate([90,0,0]) - cylinder($fn=20, r=ratchettoothsmoothr, h=armendwallthick); - multmatrix([ [ 1, 0, ratchettoothslope, 0 ], - [ 0, 1, 0, 0 ], - [ 0, 0, 1, 0 ], - [ 0, 0, 0, 1 ]]) - cube([ratchettooth - ratchettoothsmoothr*2, - channelwidth, ratchettoothheight - ratchettoothsmoothr]); - } - } } module FilamentCupHandle(){ pawlusewidth = ratchetpawl-ratchettoothsmoothr*2; mirror([0,1,0]) { - difference(){ - union(){ - cube([stalklength, stalkwidth, prongthick]); - translate([stalklength, stalkwidth/2, 0]) - cylinder(r=stalkwidth/2, h=prongthick, $fn=20); - } - Commitid_BestCount([stalklength, stalkwidth]); - } + cube([stalklength, stalkwidth, prongthick]); + translate([stalklength, stalkwidth/2, 0]) + cylinder(r=stalkwidth/2, h=prongthick, $fn=20); translate([ratchettoothsmoothr, stalkwidth, 0]) { minkowski(){ cylinder($fn=20,r=ratchettoothsmoothr, h=1); @@ -379,7 +378,7 @@ module FilamentCupCup(){ } } -module FilamentCup() { ////toplevel +module FilamentCupPositive() { FilamentCupHandle(); gapy = prongwidth; @@ -434,6 +433,14 @@ module FilamentCup() { ////toplevel } } +module FilamentCup() { ////toplevel + difference(){ + FilamentCupPositive(); + translate([0, -stalkwidth, 0]) + Commitid_BestCount_M([stalklength - stalkwidth, stalkwidth]); + } +} + module CupSecuringClipSolid(w,d,h1,h2){ rotate([0,-90,0]) translate([0,-h1/2,-w/2]) linear_extrude(height=w) { polygon(points=[[0,0], [d,0], [d,h2], [0,h1]]);