From a11eae4aaafb58f7b173f02f937db3c76d483105 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 29 Jul 2021 12:06:48 +0800 Subject: [PATCH] rename --- examples/tiles/random_town_square.scad | 4 ++-- examples/tiles/tiles_wfc_tube.scad | 4 ++-- src/experimental/{tiles_wfc.scad => tile_wfc.scad} | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename src/experimental/{tiles_wfc.scad => tile_wfc.scad} (93%) diff --git a/examples/tiles/random_town_square.scad b/examples/tiles/random_town_square.scad index 18acadaf..c4f84e49 100644 --- a/examples/tiles/random_town_square.scad +++ b/examples/tiles/random_town_square.scad @@ -3,7 +3,7 @@ use ; use ; use ; use ; -use ; +use ; use ; use ; use ; @@ -31,7 +31,7 @@ module random_town_square(rows, columns, tileW, layerH) { ]; - generated = tiles_wfc(rows, columns, sample); + generated = tile_wfc(rows, columns, sample); color("Gainsboro") draw_tiles(generated); diff --git a/examples/tiles/tiles_wfc_tube.scad b/examples/tiles/tiles_wfc_tube.scad index c6de37f4..7e410a07 100644 --- a/examples/tiles/tiles_wfc_tube.scad +++ b/examples/tiles/tiles_wfc_tube.scad @@ -1,4 +1,4 @@ -use ; +use ; sample = [ [ 6, 12, 0, 0, 0, 0, 0, 0, 0, 6, 12], @@ -25,7 +25,7 @@ translate([-len(sample) * tileW, 0]) { width = 20; height = 20; draw_tubes( - tiles_wfc(width, height, sample), + tile_wfc(width, height, sample), tileW ); diff --git a/src/experimental/tiles_wfc.scad b/src/experimental/tile_wfc.scad similarity index 93% rename from src/experimental/tiles_wfc.scad rename to src/experimental/tile_wfc.scad index 2d317730..d7b2ae86 100644 --- a/src/experimental/tiles_wfc.scad +++ b/src/experimental/tile_wfc.scad @@ -1,7 +1,7 @@ use <_impl/_tiles_wfc_impl.scad>; // An implementation of [Wave Function Collapse](https://github.com/mxgmn/WaveFunctionCollapse) -function tiles_wfc(width, height, sample) = +function tile_wfc(width, height, sample) = tilemap_generate(tilemap(width, height, sample)); /* @@ -23,7 +23,7 @@ sample = [ width = 20; height = 20; -echo(tiles_wfc(width, height, sample)); +echo(tile_wfc(width, height, sample)); */