mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-04 13:57:33 +02:00
rename
This commit is contained in:
@@ -3,7 +3,7 @@ use <util/parse_number.scad>;
|
||||
use <util/has.scad>;
|
||||
use <util/rand.scad>;
|
||||
use <util/choose.scad>;
|
||||
use <experimental/tiles_wfc.scad>;
|
||||
use <experimental/tile_wfc.scad>;
|
||||
use <rounded_square.scad>;
|
||||
use <box_extrude.scad>;
|
||||
use <polyhedron_hull.scad>;
|
||||
@@ -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);
|
||||
|
@@ -1,4 +1,4 @@
|
||||
use <experimental/tiles_wfc.scad>;
|
||||
use <experimental/tile_wfc.scad>;
|
||||
|
||||
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
|
||||
);
|
||||
|
||||
|
@@ -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));
|
||||
*/
|
||||
|
||||
|
Reference in New Issue
Block a user