1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-21 14:04:53 +02:00
This commit is contained in:
Justin Lin
2022-04-30 17:33:36 +08:00
parent 63110174f4
commit d2d3c1e707

View File

@@ -17,7 +17,6 @@ function dedup(lt, eq = undef, hash = _str_hash, number_of_buckets) =
leng_lt < 2 ? lt :
let(
b_numbers = is_undef(number_of_buckets) ? ceil(sqrt(leng_lt)) : number_of_buckets,
buckets = [for(i = [0:b_numbers - 1]) []],
deduped = _dedup(lt, leng_lt, buckets, eq, hash, b_numbers)
buckets = [for(i = [0:b_numbers - 1]) []]
)
_sort([for(bucket = deduped) each bucket]);
_sort([for(bucket = _dedup(lt, leng_lt, buckets, eq, hash, b_numbers)) each bucket]);