mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-19 13:01:37 +02:00
refactor
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user