Grasshopper

algorithmic modeling for Rhino

Hi,

I want to create some kind of grid, to start with 2 heights.

On the images you can see the green and red dots.
The green ones are not on the same level as the red ones, but are in the center of the each red dot.

How can I go from every red dot to the closest 4 green dots?
(create lines, or 1 big polyline

I have tried to draw this with purple.


Thank you

Views: 990

Attachments:

Replies to This Discussion

Hi,

if you want the diagonals, try this one

Cheers,

Raul

Attachments:

small change...

Here we have another option.

And this..

Attachments:

Thank you very much, you both!

@Raul, I also found the ClosestPoints function, but couldn't connect the dots to use Line after...

You see what I did there...

@Hyungsoo Kim, could you explain how Discontinuity and Graft tree give the same result? How does this work?

First grid's "C" output discontinuity poins are 4 per each cells.

Second grid's "P" output may count as rising center point of first grid cells.

So, their data tree correspond each other exactly. 

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service