Grasshopper

algorithmic modeling for Rhino

Hi everyone,
Just beginning to work with grasshopper, so its probably a simple question...

I'm dealing with a voronoi cells network, need to create a line between each cell's control point and that cell's center.
I know this involves some data matching, which i'm strugling to understand at the moment..
Would appreciate any help as well as some explanations!
Thanks beforehand!

Views: 735

Replies to This Discussion

I've made a sample definition, please take a look at it!

Again, need to connect two streams of points as described above...

Thx.

 

Attachments:

Try right clicking on the 'P' input of your 'PCen' component and using 'graft'.

Basically, CPoly produces one branch per polygon, while PCen produces one item for each polygon, and all the items are in one branch.

If you graft PCen, you'll have one point per branch (and therefore one branch per polygon).

You can also graft the output of Voronoi, so each cell is going to his own branch.

(Then connect a Line component to cell centers and cell points, as the default data matching on components is Longest List, Line will try to connect all the cell controls points with the one center point in corresponding branch).

Thanks guys, that worked! I'm on a step closer to understanding this stuff)

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