Grasshopper

algorithmic modeling for Rhino

# Cull identical Curves

Hello everyone,

I created a grid of 4 points and i connected every point with every point. So all 4 points have 3 lines. But i want to simplify that because with that logic there are identical curves twice.

Currently there are 12 Lines but acctually i just need 6 Lines. Is there a possibility to cull identical lines?

Views: 2908

Attachments:

### Replies to This Discussion

Hello,

the solution is to use the Cross Reference component, like this:

You can learn how it works here.

Good luck.

karamba also has got a built-in remove duplicate lines component which works acceptably fast using a KD-Tree .. of course bottom-up solutions are better :)

As does Kangaroo)

it also has the interconnect component which was made for exactly this problem of making all connections between a set of points without producing duplicates, from before the diagonal data-matching option was added:

Thank you for the multiple solutions, but is there a way to order the lines to the individual points again that i know something like that:
Line 0 3 4 came from point 1
Line 4 5 1 came from point 2
Line 0 2 3 came from point 3
...

Do you mean this?

Attachments:

If you look at the picture i posted first, you can see that the lines are assigned to every point individually. But the way you did it, it is not really parametricly if you want to change the number of the grid cells.

I basicly want points on a grid and i want the information for every point which lines leave from this point. And non of the lines should be double.

This works for the simple case of a single cell.

Attachments:

Sounds like you need the topology information of your line network.

The Topologizer&NetworkCleanUp component gives this, as well as removing duplicates.

You could also use SpiderWeb

by phillip