diff --git a/examples/tiles/2_edge_wang_tiles_basic.scad b/examples/tiles/2_edge_wang_tiles_basic.scad index 99af668e..87a069ed 100644 --- a/examples/tiles/2_edge_wang_tiles_basic.scad +++ b/examples/tiles/2_edge_wang_tiles_basic.scad @@ -1,4 +1,4 @@ -use ; +use ; use ; rows = 10; @@ -7,7 +7,7 @@ tile_width = 10; tile_thickness = 2; $fn = 24; -2_edge_wang_tiles(rows, columns, tile_width) { +tiles_wang_2e(rows, columns, tile_width) { sample_tile(0, tile_width, tile_thickness); sample_tile(1, tile_width, tile_thickness); sample_tile(2, tile_width, tile_thickness); @@ -33,7 +33,7 @@ translate([0, tile_width * (rows + 1)]) { color("green") linear_extrude(tile_thickness) - 2_edge_wang_tiles(rows, columns, tile_width) { + tiles_wang_2e(rows, columns, tile_width) { path_tile(0, tile_width); path_tile(1, tile_width); path_tile(2, tile_width); diff --git a/examples/tiles/random_city.scad b/examples/tiles/random_city.scad index dad9472c..907d13bb 100644 --- a/examples/tiles/random_city.scad +++ b/examples/tiles/random_city.scad @@ -3,7 +3,7 @@ use ; use ; use ; use ; -use ; +use ; mask = [ [0, 1, 1, 0, 0, 0, 1, 1, 0], @@ -24,7 +24,7 @@ random_city(rows, columns, mask); module random_city(rows, columns, mask) { tile_width = 30; - 2_edge_wang_tiles(rows, columns, tile_width, mask) { + tiles_wang_2e(rows, columns, tile_width, mask) { tile00(); tile01(); tile02(); diff --git a/examples/tiles/tube_box.scad b/examples/tiles/tube_box.scad index 31ecf3a0..09485724 100644 --- a/examples/tiles/tube_box.scad +++ b/examples/tiles/tube_box.scad @@ -1,4 +1,4 @@ -use ; +use ; use ; rows = 8; @@ -14,7 +14,7 @@ module tube_box(rows, columns, tile_width) { eighth_w = tile_width / 8; translate([eighth_w, eighth_w, -eighth_w]) - 2_edge_wang_tiles(rows, columns, tile_width) { + tiles_wang_2e(rows, columns, tile_width) { tube_tile(0, tile_width); tube_tile(1, tile_width); tube_tile(2, tile_width); diff --git a/src/experimental/2_edge_wang_tiles.scad b/src/experimental/tiles_wang_2e.scad similarity index 91% rename from src/experimental/2_edge_wang_tiles.scad rename to src/experimental/tiles_wang_2e.scad index 18bf12d5..c4656ed1 100644 --- a/src/experimental/2_edge_wang_tiles.scad +++ b/src/experimental/tiles_wang_2e.scad @@ -1,4 +1,5 @@ -module 2_edge_wang_tiles(rows, columns, tile_width, mask, seed) { +// wang tiles - 2 edges +module tiles_wang_2e(rows, columns, tile_width, mask, seed) { edges = is_undef(seed) ? [ for(y = [0:rows]) [