1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-07-31 20:10:36 +02:00

move to pp

This commit is contained in:
Justin Lin
2022-06-19 11:47:54 +08:00
parent 2651a23524
commit 938507d02d
10 changed files with 28 additions and 22 deletions

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

@@ -1,4 +1,4 @@
# rands_disk
# pp_disk
Generate random points over a disk.
@@ -12,16 +12,16 @@ Generate random points over a disk.
## Examples
use <util/rands_disk.scad>
use <pp/pp_disk.scad>
number = 10000;
radius = 2;
points = rands_disk(radius, number);
points = pp_disk(radius, number);
for(p = points) {
translate(p)
circle(.01);
}
![rands_disk](images/lib3x-rands_disk-1.JPG)
![rands_disk](images/lib3x-pp_disk-1.JPG)

View File

@@ -1,4 +1,4 @@
# rands_sphere
# pp_sphere
Pick random points on the surface of a sphere.
@@ -12,12 +12,12 @@ Pick random points on the surface of a sphere.
## Examples
use <util/rands_sphere.scad>
use <pp/pp_sphere.scad>
number = 1000;
radius = 2;
points = rands_sphere(radius, number);
points = pp_sphere(radius, number);
for(p = points) {
@@ -27,4 +27,4 @@ Pick random points on the surface of a sphere.
%sphere(radius, $fn = 48);
![rands_sphere](images/lib3x-rands_sphere-1.JPG)
![rands_sphere](images/lib3x-pp_sphere-1.JPG)