Grasshopper

algorithmic modeling for Rhino

Need to create a pline between each 0,1,2,3 index in multiple branches

I would like to create a pline, or curve between same index numbers of different branches. A have been going through the book and tutorials but i can't find anything that explains how this is done.

All i managed to do is extract one index from every branch and flatten it. That creates one line, but i need more of them.


Also, forgive me for spamming the message board. I am new here, and i'm not sure how things work. I hope i'm not skipping the RTFM part :(

Views: 1594

Attachments:

Replies to This Discussion

I don't know if this is possible while retaining the tree structure of the divided points. However, if you flatten the data, then use 2 series components, you can create the polylines. See if the attached definition helps.
Attachments:
It works fine when all of the curves are divided by the same amount. If i were to use length division and curves of different lengths it doesn't work.

Is what i'm asking terribly complicated?
Is there something that creates a list of all the branches/trees in one node output?
What would you expect to be created at the end of the list where the points are "mismatched"? Would the polyline just go between the remaining points, or would they all connect to the the last point of the short lists?

I think the "one node output" you're looking for is the Flatten component, which puts all of the values in one long list.
Does this make any sense?

If i have 10 curves, 5 of them have 4 points, 3 of them have 7 points, and 2 othem have 8 points. I would like to have 4 polylines between all 10 of them, 3 poly lines between 3 of them, and one poolyline between two of them.

It would also be very nice if i could control it so that only the successive ones can be connected

so if {0:0:0} has 8 points and {0:0:1} has 8, as do {0:0:5} and {0:0:6} i would like to have this as two polylines, not one continoous that would in this case jump three branches (or curves that are shorter).

Does this make any sense?
I uploaded something completely different by mistake.
Attachments:
Hi, i didnt understand your explanation, but i saw your image, so i hope this help you..

There are some null elements, but you can use the clean component (or not...).
The first part is just to find the max length of points...

Attachments:
It's 2:40 am, so as far as i can comprehend atm, i think that this is it :) Many thanks.

I did play with the tree item node, but all i was able to do is to get it to connect one row. I'm not quite sure though, that i understand what is going on, since i'm not familiar with most of these nodes that you've added.

Could you provide a brief overview, as to what was the problem in this case, and how did you approach it? I'll try to analyze this on my own in the meantime. One thing that i can definitely say is that i had no idea what makes P different from T in the item node. It seemed to me that i should connect them the way you did, but without the param viewer in between. The Information that goes into P is just how many branches there are, and what are they, without the info they each contain?
Why did you need to sort the branches?

I have modified the geometry a bit. Is it possible to make a "break" in this case. I'm not sure if im using the right terminology since you didn't understand my previous explanatino but i will give it a shot.

If i understand correctly, when i divide the isocurves by using the divide node, it outputs a tree list. Each curve produces a branch, which contains point data. Each of these points has an index, but the total amount of points differes from branch to branch.

I would like to tell grasshopper to query each successive branch for the same index point, and if it doesn't find it, stop the polyline, and then continue. So when in this case, i'm missing two points from somewhere in the middle of the list there should be two branches that have less points? And these, being in where they are in this particular model, sould be something like {0:0:6} and {0:0:7}?

Can i say connect each index 7 from branches 1-5, until you reach branch 6 where the largest index is 6, stop polyline, query next until you get to index 7 again, continue?
Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service