chiark / gitweb /
sealing-box: make innertube etc. m4_defines so we can use them in a function we define
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Feb 2016 00:17:47 +0000 (00:17 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Feb 2016 00:17:47 +0000 (00:17 +0000)
sealing-box.scad.m4

index 7ead2b8..b821dc0 100644 (file)
@@ -41,13 +41,13 @@ m4_define(`BoxLocals',`
 
   xbox_lin = xbox - cnrrad*2;
   ybox_lin = ybox - cnrrad*2;
-
-  innertube = 1.0 + 0.2;
-  lidoverlap = 1.5;
-  lidoverhang = 6;
-  tubesealrad = 2.0;
 ')
 
+m4_define(`innertube', `(1.0 + 0.2)')
+m4_define(`lidoverlap', `1.5')
+m4_define(`lidoverhang', `6')
+m4_define(`tubesealrad', `2.0')
+
 m4_define(`BoxFn',`$fn= $sealingbox_crude ? ($2) : ($1)')
 
 m4_dnl Box_Part($1=transl_x,$2=transl_y, $3=rot_z,$4=mirror_xy)