mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-04-13 18:51:53 +02:00
performance improved
This commit is contained in:
parent
657c10a9cc
commit
23ed306148
@ -8,6 +8,13 @@
|
||||
*
|
||||
**/
|
||||
|
||||
use <../__comm__/_pt3_hash.scad>;
|
||||
use <../util/dedup.scad>;
|
||||
|
||||
function vx_union(points1, points2) = dedup(concat(points1, points2));
|
||||
function vx_union(points1, points2) =
|
||||
let(
|
||||
pts = concat(points1, points2),
|
||||
number_of_buckets = ceil(sqrt(len(pts))),
|
||||
hash = _pt3_hash(number_of_buckets)
|
||||
)
|
||||
dedup(pts, hash = hash, number_of_buckets = number_of_buckets);
|
Loading…
x
Reference in New Issue
Block a user