chiark / gitweb /
refactor parameters, no functional change
[reprap-play.git] / biscuits.scad
index c85403a43c07d076f1e8b8ed9bd340f0cae03e65..c230477807309dbb2d116b6a4b767c0af76fa2fe 100644 (file)
@@ -1,9 +1,12 @@
 
+scale=1.0;
+rad=30*scale;
+hbase=28.4*scale;
+voff=10*scale;
+height=70*scale;
 
-rad=30;
-hbase=28.4;
-voff=10;
-height=70;
+wallheight = 15
+thick=0.8;
 
 module flatsolid() {
        circle(r=rad,$fn=50);
@@ -13,7 +16,7 @@ module flatsolid() {
 module mink() {
        minkowski() {
                flatsolid();
-               circle(r=0.4);
+               circle(r=thick/2);
        }
 }   
 
@@ -24,4 +27,4 @@ module hollow() {
        }
 }
 
-linear_extrude(height = 15) hollow();
+linear_extrude(height=wallheight) hollow();