1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-20 05:21:38 +02:00

align to origin

This commit is contained in:
Justin Lin
2021-01-16 22:25:52 +08:00
parent d7f9234b09
commit 04116591f3

View File

@@ -7,6 +7,8 @@ module 2_edge_wang_tiles(rows, columns, tile_width) {
]
];
half_w = tile_width / 2;
translate([half_w, half_w])
for(y = [0:rows - 1]) {
for(x = [0:columns - 1]) {
i = (edges[y + 1][x][0] == 1 ? 1 : 0) +