Grasshopper

algorithmic modeling for Rhino

Is there a way to check if some lines share a common point. Diferent way of asking; I have a list of very tiny lines, and I want to select or dispatch the ones that are conected at the start and end point.

Thanks

Views: 221

Replies to This Discussion

It might work to explode them, flatten the list, join them, explode again, dont flatten and then use list item or dispatch to select the first one or two segments from each branch. This should allow you to filter out most of the lines that share a common end point with other lines.
Recently, for a similar situation, I used explode, join, rebuild with degree=1 and control points =3, then explode again, and then I filtered the resulting line segments based on their tangent vectors, setting a min and max angle as measured from a set of reference tangents.
Hey, thanks man!

I mixed both of your solutions, and it worked like charm. Thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service