Anybody has an idea how to do the following: Lets say we have a collection of lines/curves. They are connected to other lines in our selection, but they form different “clusters”. All I need to figure out is how to automatically get the count of these “clusters”.
The most straightforward/terse solution I can think of (without going into graph territory), is to mesh the lines/polylines, join/weld these, and split this into disjoint pieces. Here’s an example using Weaverbird: