chiark / gitweb /
refactor parameters, no functional change
[reprap-play.git] / biscuits.scad
index 229e377..c230477 100644 (file)
@@ -1,12 +1,30 @@
-rad=30;
-hbase=28;
-voff=10;
-height=70;
 
 
+scale=1.0;
+rad=30*scale;
+hbase=28.4*scale;
+voff=10*scale;
+height=70*scale;
+
+wallheight = 15
+thick=0.8;
 
 module flatsolid() {
 
 module flatsolid() {
-       circle(r=rad);
+       circle(r=rad,$fn=50);
        polygon(points=[[-hbase,voff],[hbase,voff],[0,height]]);
 }
 
        polygon(points=[[-hbase,voff],[hbase,voff],[0,height]]);
 }
 
-flatsolid();
+module mink() {
+       minkowski() {
+               flatsolid();
+               circle(r=thick/2);
+       }
+}   
+
+module hollow() {
+       difference() {
+               mink();
+               flatsolid();
+       }
+}
+
+linear_extrude(height=wallheight) hollow();