From: Ian Jackson Date: Sat, 17 Jun 2017 22:41:54 +0000 (+0100) Subject: ring-tests: ready for a go X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=8a71929535e841eb3a51160a099040a2e0411b3d ring-tests: ready for a go --- diff --git a/ring-tests.scad b/ring-tests.scad index 3c784b7..c3bd34f 100644 --- a/ring-tests.scad +++ b/ring-tests.scad @@ -3,6 +3,8 @@ thick = 3.5; width = 5; +centre_dia = 21; + // calculated ellipse_width = width / 0.90; @@ -14,4 +16,28 @@ module Profile(){ } } -Profile(); +module Ring(dia){ + rotate_extrude($fn=100){ + translate([dia/2 + thick/2, 0]){ + Profile(); + } + } +} + +//Profile(); +//Ring(centre_dia); + +module Tests(){ + min_dia = 19; + max_dia = 22; + dia_step = .25; + n_dias = (max_dia - min_dia)/dia_step; + for (i= [ 0 : n_dias ]) { + echo(i); + rotate([0,0, i*360 / (n_dias+2)]) + translate([80,0,0]) + Ring(min_dia + (max_dia-min_dia)*(i/n_dias)); + } +} + +Tests();