diff main.scad @ 11:7bef1d0cb914 default tip

updated defaults, added render shell script
author ark
date 2026-11-18 02:35 +0100
parents a7a1b12fd6bf
children
line wrap: on
line diff
--- a/main.scad	Tue Nov 17 12:53:33 2026 +0100
+++ b/main.scad	Wed Nov 18 02:35:11 2026 +0100
@@ -102,6 +102,8 @@
 
 epsilon = .001;
 $fn = $preview ? 60 : 180;
+// parts to export for printing, read by render_openscad.sh
+printable_parts = "body lid latch";
 
 lw = line_width;
 lh = layer_height;
@@ -609,7 +611,7 @@
     // latched sides, only when they differ from the front latch and back hinge
     side_on == [true, false, false, false] ? "" :
         str("l", _join([for (i = latch_sides) "fblr"[i]]), "_"),
-    "w", inner_width, "d", inner_depth, "h", inner_height,
+    "w", round(10*inner_width), "d", round(10*inner_depth), "h", round(10*inner_height),
     "b", round(100*body_ih/inner_height),
     // latch middle share, only when it differs from the default
     round(100*latch_ratio) == 33 ? "" : str("lm", round(100*latch_ratio)),