Grasshopper

algorithmic modeling for Rhino

Hi there, very new here, but having fun already.

Is there a way to set a given number of points in grasshopper (that could then be assigned to be circles, squares, whatever) randomly within a space?

Say I define a square of 1000x1000 units, and I want 100 points randomly placed within that square.

If that makes any sense, could you be so kind to point me in the right direction of how I might get started?

Thanks all.
N

Views: 13047

Replies to This Discussion



I'm not sure if that's what you're looking for.
I'm not sure if that's what you're looking for.
Attachments:
version:Grasshopper 0.6.0019
Thank you. Just by looking at the jpeg, it appears to be way over my head, but I might as well give it a shot at understanding it. But yes, the effect is what I was thinking of.

Are the A B C and D in the box corners component defining the space that the points are being plotted inside of?

Thanks again,
N
Here's a shorter way of doing it:

* In the expression editor of the N input type "N*2"
another way,

just draw surface in rhino and set it "Srf" component on a left hand side.
Attachments:
Thanks so much everyone.

Raul, that one makes quite a bit of sense to me surprisingly. Although admittedly, I have no clue what the purpose of the Item (list item) component is doing exactly.
if u have an array (points in your case) then every element has index and value.

point[index]=value

point[1]
point[2]
point[3]
point[...]
point[n]

Item (list item) takes all points and selects particular point according to index what is generated randomly and does that as many times as u generate random numbers
Hi, Can anyone let me know from where i can download the latest GH version,..??

Thank you
Thanks dude,..

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service