Grasshopper

algorithmic modeling for Rhino

Hello I´m new in grasshopper and I´m learning little by little.

I have made a Voronoi cilinder following a post from this forum. Since here everything was ok, now I understand more or less how grasshopper works.

Now I want a little more, I want to make the voronoi cells more condensed and smaller in the upper part of the cylinder (Like a size degrade), i supose that it could be done with atracctors or something like that... but i have no idea how to do it.

If anybody knows how to do it, it wolud be great if he had time to solve it.

Thanks in advance, and sorry for my english...

Views: 580

Attachments:

Replies to This Discussion

To make the voronoi cells smaller at the top, you want to have more points at the top than at the bottom.

Here's a modification of your definition that remaps the Z-coordinate of all the points using a graph mapper. 

Attachments:

Wow!! thanks a lot is excatly what i wanted...

I do not understand what the graph mapper does but im gonna look for a tutorial to undesstand it.

Thank you Very much!

I'm not sure I understand the graph mapper either, but in this case, I think you can think of the x variable as the input and the y value as the output.

So if you have a straight line from 0 to 1, that will map every number to itself.

If you have a curve like the one attached, a number like .2 would be mapped to .5, .5 to .7, etc.  

The only other thing is to convert the Z values to a range from 0-1, then remap them from 0-140 after putting them through the graph. (I am sure there is a better way to do that than my multiply / divide approach)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service