mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 10:14:41 +02:00
adjust size of bucket
This commit is contained in:
@@ -12,7 +12,7 @@ function _geom_icosahedron(icosahedron_points, icosahedron_faces, tris, radius,
|
|||||||
for(tri = tris)
|
for(tri = tris)
|
||||||
each [for(t = tri_subdivide(tri, detail)) each t]
|
each [for(t = tri_subdivide(tri, detail)) each t]
|
||||||
],
|
],
|
||||||
number_of_buckets = ceil(sqrt(len(points))),
|
number_of_buckets = ceil(sqrt(len(points)) * 1.5),
|
||||||
hash = _pt3_hash(number_of_buckets),
|
hash = _pt3_hash(number_of_buckets),
|
||||||
deduped_pts = dedup(points, hash = hash, number_of_buckets = number_of_buckets),
|
deduped_pts = dedup(points, hash = hash, number_of_buckets = number_of_buckets),
|
||||||
pts = [for(p = deduped_pts) p / norm(p) * radius],
|
pts = [for(p = deduped_pts) p / norm(p) * radius],
|
||||||
|
Reference in New Issue
Block a user