chiark / gitweb /
poster-tube-lid: catch: Colourise CatchDemo
[reprap-play.git] / ring-tests.scad
index 3c784b730c5e631ac771a03112ca9e5b4ba4a0b6..c3bd34f0d64983eb049c5ef6366d73c42a185f10 100644 (file)
@@ -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();