1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-12 03:14:23 +01:00
This commit is contained in:
Justin Lin 2020-04-02 14:52:50 +08:00
parent 611288700a
commit 9643ffcb1f

View File

@ -19,8 +19,7 @@ module voronoi3d(points, spacing = 1) {
space_size = max([max(xs) - min(xs), max(ys) - min(ys), max(zs) - min(zs)]);
half_space_size = 0.5 * space_size;
double_space_size = space_size * 2;
offset_leng = spacing * 0.5 + half_space_size;
offset_leng = (spacing + space_size) * 0.5;
function normalize(v) = v / norm(v);