1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-28 08:50:30 +02:00

sorting is not necessary

This commit is contained in:
Justin Lin
2022-03-17 20:26:06 +08:00
parent 1184258336
commit 1d1479b531

View File

@@ -12,7 +12,6 @@ use <_impl/_mz_hamiltonian_impl.scad>;
use <mz_square_cells.scad>; use <mz_square_cells.scad>;
use <mz_square_initialize.scad>; use <mz_square_initialize.scad>;
use <mz_square_get.scad>; use <mz_square_get.scad>;
use <../util/sort.scad>;
use <../util/set/hashset.scad>; use <../util/set/hashset.scad>;
use <../util/set/hashset_elems.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]] [for(y = [0:r * 2 - 1]) [0, y]]
), ),
dot_pts = sort( dot_pts = hashset_elems(
hashset_elems(hashset(all, hash = function(p) floor(abs(p * [73856093, 19349669])))), hashset(
by = "vt" all,
hash = function(p) floor(abs(p * [73856093, 19349669]))
)
), ),
falseRow = [for(c = [0:c * 2]) false], falseRow = [for(c = [0:c * 2]) false],
falseM = [for(r = [0:r * 2]) falseRow], falseM = [for(r = [0:r * 2]) falseRow],