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:
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
@@ -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);
|
||||
}
|
||||
|
||||

|
||||

|
@@ -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);
|
||||
|
||||

|
||||

|
Reference in New Issue
Block a user