From 8a71929535e841eb3a51160a099040a2e0411b3d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 17 Jun 2017 23:41:54 +0100 Subject: [PATCH] ring-tests: ready for a go --- ring-tests.scad | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) 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(); -- 2.30.2