1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-06 14:56:47 +02:00
This commit is contained in:
Justin Lin
2020-07-19 16:38:28 +08:00
parent 727bb544c1
commit 58112422e9
4 changed files with 34 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

23
docs/lib2x-vrn3_space.md Normal file
View File

@@ -0,0 +1,23 @@
# vrn3_space
Creats a [Voronoi diagram](https://en.wikipedia.org/wiki/Voronoi_diagram) in the first octant. You specify a space and a grid width. The center of each cell will be distributed in each grid randomly.
**Since:** 2.4
## Parameters
- `size` : 3 value array [x, y, z].
- `grid_w` : The width of each grid.
- `seed` : Seed value for random number generator for repeatable results.
- `spacing` : Distance between cells. Default to 1.
## Examples
use <voronoi/vrn3_space.scad>;
vrn3_space(
size = [20, 15, 10],
grid_w = 5
);
![vrn3_space](images/lib2x-vrn3_space-1.JPG)