From: Ian Jackson Date: Tue, 9 Feb 2016 20:56:21 +0000 (+0000) Subject: filamentspool: numbers on other side of arm X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=91bd018190e2a30338de7b58bdf7eaa55d3dea03;p=reprap-play.git filamentspool: numbers on other side of arm --- diff --git a/filamentspool.scad b/filamentspool.scad index a53c11a..a912add 100644 --- a/filamentspool.scad +++ b/filamentspool.scad @@ -277,16 +277,21 @@ module ArmEnd(length=armend_length){ ////toplevel } } - for (otherside=[0]) { // [0,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) { echo(circum, rad, xlen); - if (xlen >= numbers_tick_width/2 && - xlen <= length - numbers_height_allow) + 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) color("blue"){ translate([-numbers_tick_width/2, -1, 0]) cube([numbers_tick_width, numbers_relief+1, numbers_tick_len]);