X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=ring-tests.scad;h=c3bd34f0d64983eb049c5ef6366d73c42a185f10;hp=3c784b730c5e631ac771a03112ca9e5b4ba4a0b6;hb=8a71929535e841eb3a51160a099040a2e0411b3d;hpb=d1ad17135a1573ddf9c11419cfcd35813326f3f8 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();