projects
/
ozzloy@gmail.com
/
3d-printables
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f930512
)
do each place in terms of place just before it
author
daniel watson
<ozzloy@gmail.com>
Mon, 9 Apr 2018 03:49:17 +0000
(20:49 -0700)
committer
daniel watson
<ozzloy@gmail.com>
Mon, 9 Apr 2018 03:49:17 +0000
(20:49 -0700)
place-value-manipulative.scad
patch
|
blob
|
blame
|
history
diff --git
a/place-value-manipulative.scad
b/place-value-manipulative.scad
index 3dd7439dc762b6300eb1fdc811ebafffac53ea69..8e5b21e3dbbdf75c6cb72a53fcc8adab24837a6c 100644
(file)
--- 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)]) {
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)]) {
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)]) {
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);
//connector_tab(connector_thickness);