From 1adc95669854a7cbca6a5eec2e4be45079d22480 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Sun, 8 Apr 2018 20:49:17 -0700 Subject: [PATCH] do each place in terms of place just before it --- place-value-manipulative.scad | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/place-value-manipulative.scad b/place-value-manipulative.scad index 3dd7439..8e5b21e 100644 --- a/place-value-manipulative.scad +++ b/place-value-manipulative.scad @@ -66,23 +66,17 @@ module ones_place() { module tens_place() { for(ones_index = [0 : (10 - 1)]) { - translate([ones_index * side_length, 0]) { + translate([ones_index * side_length, 0, 0]) { ones_place(); } } } module hundreds_place() { for(tens_index = [0 : (10 - 1)]) { - for(ones_index = [0 : (10 - 1)]) { - translate([ones_index * side_length, - tens_index * side_length]) { - ones_place(); } } } } + translate([0, tens_index * side_length, 0]) { + tens_place(); } } } module thousands_place() { for(hundreds_index = [0 : (10 - 1)]) { - for(tens_index = [0 : (10 - 1)]) { - for(ones_index = [0 : (10 - 1)]) { - translate([ones_index * side_length, - tens_index * side_length, - hundreds_index * side_length]) { - ones_place(); } } } } } + translate([0, 0, hundreds_index * side_length]) { + hundreds_place(); } } } //connector_tab(connector_thickness); -- 2.30.2