Grasshopper

algorithmic modeling for Rhino

How can I reorder these points to make them have the same order in each branch, I mean start from the same end of the curve?

Views: 912

Attachments:

Replies to This Discussion

Here you can see clearly the problem.

Try this:

It works on the assumption that the ends of your curves are going to be more or less regularly spaced out.

 

Attachments:

Thanks a lot! Danny!

It looks a bit complicated than I thought, I do tried flip,but it didn't work.

You have to identify which ones to flip. That's the summary of what this does.

1) Draw a polyline based on all the start points of you curves

2) Explode the polyline into segments

3) Measure the segments

4) If greater then Average length then Assume that the curve has changed direction from the one before.

5) Set a pattern of which side the "target" is set. (by this I mean if there is a series of curves that all need flipping then we have to account for this)

6) Set a 0s and 1s pattern for which curves to flip and which to leave

7) Dispatch

8) Flip or not

9) Merge

10) Ta Daaaaa 

:-D!

haha!Thanks!

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