From: daniel watson Date: Mon, 9 Apr 2018 03:49:17 +0000 (-0700) Subject: do each place in terms of place just before it X-Git-Url: http://challenge-bot.com/repos/?p=ozzloy%40gmail.com%2F3d-printables;a=commitdiff_plain;h=1adc95669854a7cbca6a5eec2e4be45079d22480 do each place in terms of place just before it --- 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);