diff --git a/src/maze/mz_hex_walls.scad b/src/maze/mz_hex_walls.scad index 79a0757a..58b98a59 100644 --- a/src/maze/mz_hex_walls.scad +++ b/src/maze/mz_hex_walls.scad @@ -11,6 +11,7 @@ use <_impl/_mz_hex_walls.scad> function mz_hex_walls(cells, rows, columns, cell_radius, left_border = true, bottom_border = true) = + echo("mz_hex_walls is deprecated. use maze/mz_hexwalls instead.") [ each [for(cell = cells, wall = _build_cell(cell_radius, cell)) wall], diff --git a/src/maze/mz_square_cells.scad b/src/maze/mz_square_cells.scad index db22b744..6b122016 100644 --- a/src/maze/mz_square_cells.scad +++ b/src/maze/mz_square_cells.scad @@ -13,7 +13,7 @@ use function mz_square_cells(rows, columns, start = [0, 0], init_cells, x_wrapping = false, y_wrapping = false, seed) = let( - init_undef = is_undef(init_cells), + init_undef = echo("mz_square_cells is deprecated. use maze/mz_square.") is_undef(init_cells), mz = init_undef ? mz_square_initialize(rows, columns) : init_cells, r = len(mz), c = len(mz[0]), diff --git a/src/maze/mz_square_walls.scad b/src/maze/mz_square_walls.scad index 664237dc..77eedcd7 100644 --- a/src/maze/mz_square_walls.scad +++ b/src/maze/mz_square_walls.scad @@ -12,7 +12,7 @@ use <_impl/_mz_square_walls_impl.scad> function mz_square_walls(cells, rows, columns, cell_width, left_border = true, bottom_border = true) = let( - left_walls = left_border ? [for(y = [0:rows - 1]) [[0, cell_width * (y + 1)], [0, cell_width * y]]] : [], + left_walls = echo("mz_square_walls is deprecated. use maze/mz_squarewalls instead.") left_border ? [for(y = [0:rows - 1]) [[0, cell_width * (y + 1)], [0, cell_width * y]]] : [], buttom_walls = bottom_border ? [for(x = [0:columns - 1]) [[cell_width * x, 0], [cell_width * (x + 1), 0]]] : [] ) concat( diff --git a/src/maze/mz_theta_cells.scad b/src/maze/mz_theta_cells.scad index 2e7d26f5..d394b903 100644 --- a/src/maze/mz_theta_cells.scad +++ b/src/maze/mz_theta_cells.scad @@ -12,7 +12,7 @@ use <_impl/_mz_theta_cells.scad> function mz_theta_cells(rows, beginning_number, start = [0, 0], seed) = let( - divided_ratio = 1.5, + divided_ratio = echo("mz_theta_cells is deprecated. use maze/mz_theta instead.") 1.5, before_traveled = config_nbrs(init_theta_maze(rows, beginning_number, divided_ratio)), s = set_visited(before_traveled[start.x][start.y]) ) diff --git a/src/rails2sections.scad b/src/rails2sections.scad index b95aedca..1412a0fa 100644 --- a/src/rails2sections.scad +++ b/src/rails2sections.scad @@ -10,4 +10,4 @@ use -function rails2sections(rails) = m_transpose(rails); \ No newline at end of file +function rails2sections(rails) = echo("rails2sections is deprecated. use maxtrix/m_transpose instead.") m_transpose(rails); \ No newline at end of file diff --git a/src/util/bsearch.scad b/src/util/bsearch.scad index 08c618ca..3a447b87 100644 --- a/src/util/bsearch.scad +++ b/src/util/bsearch.scad @@ -11,5 +11,6 @@ use <_impl/_bsearch_impl.scad> function bsearch(sorted, target) = + echo("bsearch is deprecated. use util/binary_search instead.") is_function(target) ? _bsearch_cmp(sorted, target, 0, len(sorted) - 1) : _bsearch_vt(sorted, target, 0, len(sorted) - 1); // `sorted` is by zyx \ No newline at end of file diff --git a/src/util/has.scad b/src/util/has.scad index 92ced4f7..e8978c6e 100644 --- a/src/util/has.scad +++ b/src/util/has.scad @@ -11,5 +11,6 @@ use function has(lt, elem, sorted = false) = + echo("has is deprecated. use util/contains instead.") sorted ? bsearch(lt, elem) != -1 : search([elem], lt) != [[]]; \ No newline at end of file diff --git a/src/util/sort.scad b/src/util/sort.scad index 62360b82..a9938e8c 100644 --- a/src/util/sort.scad +++ b/src/util/sort.scad @@ -11,6 +11,7 @@ use <_impl/_sort_impl.scad> function sort(lt, by = "idx", idx = 0) = + echo("sort is deprecated. use util/sorted instead.") is_function(by) ? _sort_by_cmp(lt, by) : // support function literal by == "vt" ? _vt_sort(lt) : // for example, sort by zyx for a list of points _sort_by(lt, by, idx); \ No newline at end of file