1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-pp_disk.md

27 lines
506 B
Markdown
Raw Normal View History

2022-06-19 11:47:54 +08:00
# pp_disk
2022-06-14 08:56:43 +08:00
Generate random points over a disk.
**Since:** 3.3
## Parameters
- `radius` : The radius of the disk.
- `value_count` : Number of random numbers to return as a vector.
- `seed_value` : Optional. Seed value for random number generator for repeatable results.
## Examples
2022-06-19 11:47:54 +08:00
use <pp/pp_disk.scad>
2022-06-14 08:56:43 +08:00
number = 10000;
radius = 2;
2022-06-19 11:47:54 +08:00
points = pp_disk(radius, number);
2022-06-14 08:56:43 +08:00
for(p = points) {
translate(p)
circle(.01);
}
2022-06-19 11:47:54 +08:00
![rands_disk](images/lib3x-pp_disk-1.JPG)