Grasshopper

algorithmic modeling for Rhino

I am new to Grasshopper and have a simple question:

How do I plot random points within a unit circle or sphere?

I already downloaded a script that can plot random points within a cube or square, but don't know how to apply the technique to circles.

Thanks!

Views: 6351

Replies to This Discussion

The PopGeo component.

You have to create a surface (or mesh) from your circle, then use the [Populate Geometry] geometry component.

--

David Rutten

david@mcneel.com

Tirol, Austria

I just tried that and encountered two issues:

1. the PopGeo component only populates the perimeter of the circle, not the inside.

2. (if it does not already do so by default) I would like the population to occur based on the parametric function for a circle. I.e. the points should be denser toward the middle.

Thanks again!

Hi.

This could be one way. Try this out. Best.

Attachments:

Hello Mira!

I can see your rectangles´radius grow from the center of the circle, so I assume their radius follows the same function as the random point generator.

Only thing that comes to my mind is trying to use the "cull duplicated points" with a tolerance according to the radius you have used.

Anyway, there are some threads which I think will be usefull to you:

http://www.grasshopper3d.com/forum/topics/removing-overlapping-lines

Regards,

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service