Grasshopper

algorithmic modeling for Rhino

Hello all.

I took a break from grasshopper and now along with hanging my head in shame at losing the little knowledge I had, I am struggling at figuring out what the best way to begin drawing a definition for this project.

I am trying to create a somewhat 'randomized' gradient of points contained in a rectangle, the top of the rectangle having very few points, and the bottom with the most density.


I have been playing around with attractor points from curves, but that hasn't gotten me very far.

I'm not looking for anyone to do this for me, just seeking some advice as to the right direction to begin.

Thanks,
N

Views: 2973

Replies to This Discussion

One simple approach would be to first create an even field of random points and then pass the one of the random generators through a graph mapper and adjust the curve to cause more of the points to fall to one end of the field.

Here's another, slightly more involved way to approach it:

1. create an even, random field of points
2. sort them in the direction of the gradient (decompose the points into xyz and sort by z value, for instance)
3. plug the sorted points into the jitter component and use a slider to control the amount of jitter
4. use "split list" to extract one half of the list (use list length/2 as the index)
5. adjust the jitter amount - at 0 you'll get a solid block of the top half of the random points, at 1 you'll get a random set of 50% of the points, but somewhere in between you'll get the appearance of a gradient.

Let me know if any of this is unclear... hope this gets you started.

Andrew
Thanks Andrew.

Could you explain what you mean by an even field of random points? The rest seems to make a surprising amount of sense right now though. I'm hopeful!

Looking forward to giving this a shot.

N
Did you simply mean even as in non-gradient? So, a regular random field? The term 'even random' has puzzled me.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service