Grasshopper

algorithmic modeling for Rhino

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

Views: 1354

Attachments:

Replies to This Discussion

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?
thank you Shawn im trying the cull list points, didnt know this option,
P
Hey TAZ this was exactly what i was looking for,
i copy urs and it works perfectly,
thanks a loooot,
P

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service