1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 09:44:16 +02:00

update doc

This commit is contained in:
Justin Lin
2019-06-05 09:21:10 +08:00
parent cc0e7499f9
commit 106be46e64

View File

@@ -6,6 +6,7 @@ Creats a 3D version of [Voronoi diagram](https://en.wikipedia.org/wiki/Voronoi_d
ys = [for(p = points) abs(p[1])];
zs = [for(p = points) abs(p[2])];
space_size = max([(max(xs) - min(xs) / 2), (max(ys) - min(ys)) / 2, (max(zs) - min(zs)) / 2]);
// cube([space_size, space_size * 2, space_size * 3]);
The preview or rendering of 3D Voronoi is slow. If you want to use this module, render and export the 3D Voronoi model first. Then, `import` the model to do what you want.
@@ -15,7 +16,6 @@ The preview or rendering of 3D Voronoi is slow. If you want to use this module,
- `points` : Points for each cell.
- `spacing` : Distance between cells. Default to 1.
- `space_type` : The initial space for each cell can be `"cube"` or `"sphere"`. Default to `"cube"`.
## Examples