From 2db18078535449b18cc241c2d5e2e3847b4c1eef Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 9 Feb 2016 20:46:25 +0000 Subject: [PATCH] filamentspool: wip numbers, prep for otherside (nfc as yet) --- filamentspool.scad | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/filamentspool.scad b/filamentspool.scad index 68c2b4d..a53c11a 100644 --- a/filamentspool.scad +++ b/filamentspool.scad @@ -277,27 +277,29 @@ module ArmEnd(length=armend_length){ ////toplevel } } - for (circum = [300:100:1500]) { - assign(rad = circum / tau) - assign(fn = str("filamentspool-number-n",circum,".dxf")) - assign(xlen = rad - real_exteffrad) { - echo(circum, rad, xlen); - if (xlen >= numbers_tick_width/2 && - xlen <= length - numbers_height_allow) - translate([xlen, -armendwallthick, - -armendbasethick + (totalheight - numbers_tick_len)/2]) - color("blue"){ - translate([-numbers_tick_width/2, -1, 0]) - cube([numbers_tick_width, numbers_relief+1, numbers_tick_len]); - // echo(fn); - 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); + for (otherside=[0]) { // [0,1] + for (circum = [300:100:1500]) { + assign(rad = circum / tau) + assign(fn = str("filamentspool-number-n",circum,".dxf")) + assign(xlen = rad - real_exteffrad) { + echo(circum, rad, xlen); + if (xlen >= numbers_tick_width/2 && + xlen <= length - numbers_height_allow) + translate([xlen, -armendwallthick, + -armendbasethick + (totalheight - numbers_tick_len)/2]) + color("blue"){ + translate([-numbers_tick_width/2, -1, 0]) + cube([numbers_tick_width, numbers_relief+1, numbers_tick_len]); + // echo(fn); + 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); + } } } } -- 2.30.2