mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-02-12 03:14:23 +01:00
refactor
This commit is contained in:
parent
611288700a
commit
9643ffcb1f
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user