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

re-position

This commit is contained in:
Justin Lin
2021-01-16 22:28:28 +08:00
parent 283ebd3368
commit 872ad92bff

View File

@@ -13,6 +13,7 @@ module tube_box(rows, columns, tile_width) {
quarter_w = tile_width / 4; quarter_w = tile_width / 4;
eighth_w = tile_width / 8; eighth_w = tile_width / 8;
translate([eighth_w, eighth_w, -eighth_w])
2_edge_wang_tiles(rows, columns, tile_width) { 2_edge_wang_tiles(rows, columns, tile_width) {
tube_tile(0, tile_width); tube_tile(0, tile_width);
tube_tile(1, tile_width); tube_tile(1, tile_width);
@@ -32,7 +33,6 @@ module tube_box(rows, columns, tile_width) {
tube_tile(15, tile_width); tube_tile(15, tile_width);
} }
translate([-half_w - eighth_w, -half_w - eighth_w, -eighth_w])
box_extrude(height = tile_width, shell_thickness = eighth_w) box_extrude(height = tile_width, shell_thickness = eighth_w)
square([columns * tile_width + quarter_w, rows * tile_width + quarter_w]); square([columns * tile_width + quarter_w, rows * tile_width + quarter_w]);
} }