Grasshopper

algorithmic modeling for Rhino

I have to create a simple grid made by only segment..

I have tried with this definition, I hoped to get back segments form line... but it doesn't work.. I cant figure out why... 

Anyone can help me?

Thank you..

bye

Views: 2173

Attachments:

Replies to This Discussion

Hi Giudo

A problem related to the data structure.
Here is a sample result. At the intersection (CCX) to "flatten" be A or on B.


If you want to keep the data structure basis, review some false definition, May sc'est possible.

Rémy.

Attachments:

Remy Thank you so much... it is what I was looking for... 

I have just a question... Is the fist time that I use clean tree button..

Why should I use it? 

Why the news are not in the same position?

Bye

Guido

Giudo,

The clean tree remove data with null intersection.

If you would keep the data, you need to build a different GH definition.

Do you need help with the above.

GH will match lists with the same tree path and then match list items.

CCX intersects the ellipse with each line and puts the intersection points on an individual list for each line. Your horizontal and vertical lines are created in the same way and end up having the same tree structure.

GH will find a single horizontal line in A at the same path it finds a single vertical line in B. Both will intersect and give one point. GH will then move to the next branch in A and match a similar branch in B.

If you want to match/(intersect) each item in A to each item in B, either flatten both and use CrossReference or have one input in a tree that has a branch for each line and the other input in a flat list.

Now GH will parse each branch in A and match this to the List in B. According to LongestList behaviour, the single list item in A will be repeated (intersected with) each item in list B.

btw.: you can put your porizontal and vertical intersection points with the ellipse into a PLine and skip the sorting.

Thank you Hannes now it is more clear to me...

Bye

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service