mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-01 02:33:00 +02:00
update readme
This commit is contained in:
BIN
docs/images/lib3x-rands_disk-1.JPG
Normal file
BIN
docs/images/lib3x-rands_disk-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
BIN
docs/images/lib3x-rands_sphere-1.JPG
Normal file
BIN
docs/images/lib3x-rands_sphere-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
27
docs/lib3x-rands_disk.md
Normal file
27
docs/lib3x-rands_disk.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# rands_disk
|
||||
|
||||
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
|
||||
|
||||
use <util/rands_disk.scad>
|
||||
|
||||
number = 10000;
|
||||
radius = 2;
|
||||
|
||||
points = rands_disk(radius, number);
|
||||
|
||||
for(p = points) {
|
||||
translate(p)
|
||||
circle(.01);
|
||||
}
|
||||
|
||||

|
30
docs/lib3x-rands_sphere.md
Normal file
30
docs/lib3x-rands_sphere.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# rands_disk
|
||||
|
||||
Pick random points on the surface of a sphere.
|
||||
|
||||
**Since:** 3.3
|
||||
|
||||
## Parameters
|
||||
|
||||
- `radius` : The radius of the sphere.
|
||||
- `value_count` : Number of random numbers to return as a vector.
|
||||
- `seed_value` : Optional. Seed value for random number generator for repeatable results.
|
||||
|
||||
## Examples
|
||||
|
||||
use <util/rands_sphere.scad>
|
||||
|
||||
number = 1000;
|
||||
radius = 2;
|
||||
|
||||
points = rands_sphere(radius, number);
|
||||
|
||||
|
||||
for(p = points) {
|
||||
translate(p)
|
||||
sphere(.05);
|
||||
}
|
||||
|
||||
%sphere(radius, $fn = 48);
|
||||
|
||||

|
Reference in New Issue
Block a user