comparison main.scad @ 11:7bef1d0cb914 default tip

updated defaults, added render shell script
author ark
date 2026-11-18 02:35 +0100
parents a7a1b12fd6bf
children
comparison
equal deleted inserted replaced
10:a7a1b12fd6bf 11:7bef1d0cb914
100 100
101 module dummy() {} 101 module dummy() {}
102 102
103 epsilon = .001; 103 epsilon = .001;
104 $fn = $preview ? 60 : 180; 104 $fn = $preview ? 60 : 180;
105 // parts to export for printing, read by render_openscad.sh
106 printable_parts = "body lid latch";
105 107
106 lw = line_width; 108 lw = line_width;
107 lh = layer_height; 109 lh = layer_height;
108 cl = clearance; 110 cl = clearance;
109 111
607 str(latch_block ? "block" : latch_plate_full ? "plate" : "plate-middle", "_") : "", 609 str(latch_block ? "block" : latch_plate_full ? "plate" : "plate-middle", "_") : "",
608 columns > 1 || rows > 1 ? str("c", columns, "r", rows, "_") : "", 610 columns > 1 || rows > 1 ? str("c", columns, "r", rows, "_") : "",
609 // latched sides, only when they differ from the front latch and back hinge 611 // latched sides, only when they differ from the front latch and back hinge
610 side_on == [true, false, false, false] ? "" : 612 side_on == [true, false, false, false] ? "" :
611 str("l", _join([for (i = latch_sides) "fblr"[i]]), "_"), 613 str("l", _join([for (i = latch_sides) "fblr"[i]]), "_"),
612 "w", inner_width, "d", inner_depth, "h", inner_height, 614 "w", round(10*inner_width), "d", round(10*inner_depth), "h", round(10*inner_height),
613 "b", round(100*body_ih/inner_height), 615 "b", round(100*body_ih/inner_height),
614 // latch middle share, only when it differs from the default 616 // latch middle share, only when it differs from the default
615 round(100*latch_ratio) == 33 ? "" : str("lm", round(100*latch_ratio)), 617 round(100*latch_ratio) == 33 ? "" : str("lm", round(100*latch_ratio)),
616 "_lw", round(100*line_width), "lh", round(100*layer_height), 618 "_lw", round(100*line_width), "lh", round(100*layer_height),
617 suffix); 619 suffix);