mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-27 08:25:45 +02:00
sorting is not necessary
This commit is contained in:
@@ -12,7 +12,6 @@ use <_impl/_mz_hamiltonian_impl.scad>;
|
||||
use <mz_square_cells.scad>;
|
||||
use <mz_square_initialize.scad>;
|
||||
use <mz_square_get.scad>;
|
||||
use <../util/sort.scad>;
|
||||
use <../util/set/hashset.scad>;
|
||||
use <../util/set/hashset_elems.scad>;
|
||||
|
||||
@@ -38,9 +37,11 @@ function mz_hamiltonian(rows, columns, start = [0, 0], init_cells, seed) =
|
||||
[for(y = [0:r * 2 - 1]) [0, y]]
|
||||
),
|
||||
|
||||
dot_pts = sort(
|
||||
hashset_elems(hashset(all, hash = function(p) floor(abs(p * [73856093, 19349669])))),
|
||||
by = "vt"
|
||||
dot_pts = hashset_elems(
|
||||
hashset(
|
||||
all,
|
||||
hash = function(p) floor(abs(p * [73856093, 19349669]))
|
||||
)
|
||||
),
|
||||
falseRow = [for(c = [0:c * 2]) false],
|
||||
falseM = [for(r = [0:r * 2]) falseRow],
|
||||
|
Reference in New Issue
Block a user