Grasshopper

algorithmic modeling for Rhino

Hi all,

Im dividing multiple curves by a grafted distance of 1, 2, 3, etc

So if for example I have 4 values of distances and 4 lines/curves I end up with 16 branches.

Each line was divided by each length.

How can I grab:

all points that result from the division of 1unit

all points that result from the division of 2units

all points that result from the division of 3units

all points that result from the division of 4units

And of course, supposing the number of lines changes, the values of the divide also change, and the nr of values of the divide also change.

Thing is Im currently working with 20 lines and 5 values of distance, that makes 100branches!

Thanks for any insight.

Views: 1954

Attachments:

Replies to This Discussion

Hi ShynnSup

They are already together in your definition.. all you need to do is group the sub-branches together using shift paths or path mapper...something like this!..hope it helps.

Attachments:

Right, but I need to mantain the data structure. Right now if I explode the tree right after your procedure, I have all points across all lines.

I need to have a branch for each line, with the list of points inside of it.

Ok!...got your problem now... This should do  it then. I m sure there is a better way to do this through path mapper. But this does it too. Hope this helps!

Cheers!

Attachments:

Alright, but that still does not do it Im afraid :(

Last step would be to select all 101 into a tree.

All 51 into another tree, etc.

I tried selecting each branch individually with tree branch, based on the nr of curves, but it only selects all 51.

I guess I could copy the components and vary the series, but that way makes me lose the parametric nature of the definition.

Thank you for helping me out with this.

Hi Shynn

Okay, The problem is, that you can only get one tree from one component. A single component in Grasshopper can only hold "one" tree with a lot of branches. What you want is to divide one tree into three different trees. It can is possible, but again it would be something like a switch button, that means you would have to select the value for which you require the tree. If you tell me what's your final goal with these values, hopefully, I can help you better. What you are asking for can be done, but it won't assist you with going further with the definition. Anyways I have made the transition parametric, but it requires a manual change in values. The other option obviously is, explode tree with different series of numbers.

Hope this helps, Although tell me what is you final goal, maybe its not the best idea to split them into different trees.

Attachments:

What I am after is dividing an arc by length, and connecting some lines with these points.

Thing is these larcs division length can change, I made it so that a slider controls the division length by in degrees. So at 1, all lines increase by 1° as they move in x.

I wanted to have multiple "panels" of lines, and be able to increase or decrease the number of panels.

Something like this:I actually made a previous thread about this, and a very kind man suggested evaluating the curves instead of dividing, but that pretty much changed the whole definition.

Easy solution, copy the whole definition by the nr of panels desired and change the angle slider on each one.

So I though about a series of numbers. That gives me control over the nr of panels, and also the inclination or the angle these lines will have.

So right now, I have 20 curves, all divided by x, that gives me 20 lists of points and then I connect all these lists to A. B are just points on xy plane.

If I had multiple values inputted into the division component, and could grab the 20 lists of points that were generated after dividing by 1°, and by 2° and by 3°, etc. I could connect all those lists to A in the line component.

Attachments:

If you're okay using a plug-in, then Treesloth has a "divide branches" component that you can use to split out your tree. Use the Tree Statistics and the Create Set components to get the division pattern. The one thing you'll have to do is adjust the number of outputs on the divide branches component in order to match the unique counts...but hopefully this gets you what you're looking for.

Thanks, will give it a try! that might just work.

Hey Shynn

Okay, I saw your definition, its not a good idea to separate the point as individual tree, you should do that in the end after all operations. check file, Hope this helps!

Cheers!

Mr A.

Attachments:

Woa, thank you so much for your time and for helping me out Mr A.
This will do.
Cheers!

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