Grasshopper

algorithmic modeling for Rhino

Dividing Curves and using these points to generate lines or polylines

Hello Group,
I am fighting with GH to make something really simple, Grrr! I would have already finished my model but I wanted to solve it with GH.
I explain and it is rather simple:

I have x amount of curves. I divide them all using the same "Divide" box. Consequently, It generates me a list of points for each of these curves. Then, I simply want to make lines or polylines connecting these points, respectively to their order in the lists.

Obviously, I could put a divide box for each of the curves, which sort separetly the points per curves. Then, when there is 200 Curves!

I know that there is a simple logic I am not getting here.
Thanks for your help!
Sf

Views: 10240

Replies to This Discussion

Could you explain what you mean by:

Then, I simply want to make lines or polylines connecting these points, respectively to their order in the lists.

That is, what's the final result, is it 200 polylines instead of the original curves or do you want to connect the points in some other way.
Lars,
Shena, ur e lagget? (my good swedish.. I studied Desgin in Goetheburg at the HDK, that was in 2002!)

Ok, thanks for your interest! I'll try to be more explicit.

I have these curves (0:0), (0:1), (0:2), etc and they all have the same amount of points so N:x (I divide them all with the same divide box)

Then, I want to create single lines from 0:0:1 to 0:1:1, 0:0:2 to 0:1:2, etc... That is what I mean by "respecting the list order".

It is really straight forward.

I found this tutorial and I am watching it presently...but not sure yet if this will clearly tell me how I can achieve that.
http://www.designalyze.com/2009/04/27/columbia-grasshopper-class-pa...

Thanks for your help.
Sam
Thanks Luis, that was what I was looking for.
Now, I have to understand the logic of it!
Luis,
I am having a problem here...
The list have 9 branches, which contain a serie of points... You see it shows (0:0:0) to (0:0:8)...
But the lastest output shows only (0:0:0) with the list of 11 points (where 2 are null). Why is it so?
The problem is that I generate only one or the first polyline of the X division wanted!

How can I fix that?
Thanks for your help...
Sam
Attachments:
Look at the structure of the Paths after the Divide Component...the first and last item on your list of curves is not a curve...I need to see how you are feeding the curves into the component.
Have a look at the picture....
I am intersecting vertical plane into a freeform surface.
I was aware that the first and the last planes are not intersecting the freeform surface. I thought that could create a problem into your definition (but why should it?)
Ok, I tried to skip the first and the last points of this arc division but couldnt find the right way to do it... I tried the sub list in logic tools.. I wanted the range from 1 to N (N=the lenght of the list).. but it doesnt accept anything else than a integer..
Anyway, I see that there is still some basic logic that needs to "click" in my brain!

Obrigado Luis
Attachments:
Luis,
Using that definition, would it be difficult to add a shift before the final polyline is drawn. So instead of going from the same item of each list, it would constantly shift of one or more point.
It is a way for me to make a triangulation inside my grid.
Thanks again for your help.S
Hi...just bit of time...
To answer the first question...tree structures are not totally necessary at first... see first example...
To 'panel' from the generated points...a bit of shifting added to the original definition should do it...included in the second def...

Hope they help!
Attachments:
Luis,
thanks, that is working good. I must say, I dont get 100% the logic. For instance, why using shift before dividing the curve?

Great help thanks
Sam

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service