Grasshopper

algorithmic modeling for Rhino

Split list into two lines : the non-intersecting and the cross

Hello,

I'm trying to split a list of lines , I simply use the split tree and type the index to sort,

is there a more convenient option that can sort automatically by its condition of lines,

like the non-intersecting and the cross, Thank you!

Views: 655

Attachments:

Replies to This Discussion

To satisfy my understanding, you have a list of lines, some of which intersect each other, some of which do not. You want to separate them out into two lists, and you do not care particularly about exactly which lines intersect, only that they do?

The attached shows how to separate a collection of curves into those that intersect other curves and those that don't.

Attachments:

Hi! Thank you David, the solution is right onto the question.  What if some lines intersect each other at the end points, but only just those others intersecting in the mid-part like X-cross are the desired to be sorted together; for those if not true, then sorted to the false map.

Attachments:

How about you just marginally shorten all the curves and only intersect those modified ones? You can use the extend component with negative lengths.

How simple! Thank you again!

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