1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-25 05:51:41 +02:00
Files
dotSCAD/docs/lib3x-rands_sphere.md
Justin Lin 91b56e3a5a update doc
2022-06-14 09:00:48 +08:00

575 B

rands_sphere

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

rands_sphere