Grasshopper

algorithmic modeling for Rhino

I do an example to explane better my idea.

Hypothesize to have a list of 5 curves:

3 with similar lenght (1,2451 1,2448 1,2452)

2 with similar lenght (2,4431 2,4428)

The curves are disposed in a flat data structure.
The goal is to create a branch structure with 2 paths with curves of similar lenght
For example, with a function command with a round operator we can equalize similar data, but when we do that the GH doesn't recognize equal data to sort that data as branches.

Do you think is it possible with the actual GH version?

If it is not possible, I give the question to David: do you think it would be good (and possible) to create a command that recognize similar or equal data, or an into command automatic branching creation button when we have similar or equal data?

It is a sort of "inverse branching".

Thank you,

Carlo

Views: 417

Replies to This Discussion

There are several ways to do this. If you know beforehand roughly the different lengths that the curves should approximate, you can try something like this:


Beware, if the random amount is too loose the same curve might end up in more than one branch.
Hi carlo

another way is to sort the lines according their length

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service