Hi all, i have been having a problem trying to get a set of random points in a sphere, i used bounding box, but the Sphere Fit component DONT work for me, maybe is not developed yet? im attaching the ghx, thanks for any help!! Pablo, pd:my grasshopper version is 0.6.0059
Permalink Reply by taz on September 29, 2010 at 7:53pm
I believe [Sphere Fit] is creating a best-fit sphere for your points, thus some points are inside the sphere and some are outside. It's not a "bounding sphere" that will encompass all your points.
If you want random points which fill a sphere you could try something like this:
I've not tried this but could you also define a set of random points and test for inclusion inside the sphere based on distance from the center then cull the list of points?