From 4934af852ec58113b24eb981043d1a430e000664 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 16 Feb 2020 21:08:39 +0000 Subject: [PATCH] quacks-ingredients: wip counts Signed-off-by: Ian Jackson --- quacks-ingredients-counts | 11 +- quacks-ingredients-counts.scad | 582 +++++++++++++++++---------------- 2 files changed, 313 insertions(+), 280 deletions(-) diff --git a/quacks-ingredients-counts b/quacks-ingredients-counts index 870970a..6ee3500 100755 --- a/quacks-ingredients-counts +++ b/quacks-ingredients-counts @@ -29,16 +29,17 @@ sub wrtoplevel () { my $nrows = ceil($total / $rowsz); my $ix = 0; print "// total=$total, rowsz=$rowsz, nrows=$nrows\n"; - foreach my $ndots (sort keys %$cs) { - my $c = $cs->{$ndots}; + foreach my $nspots (sort keys %$cs) { + my $c = $cs->{$nspots}; print <