Hello!

I’m stuck on figuring any method, that could be used to find clusters of curves, that are near each other.

I have curves that are representing building facades, and I want to group them by specific buildings.

I only get so far, that I find which other curves are close to 1 specific curve.

Result is, I’m getting a list for each curve with possible adjacent curves.

I need to somehow combine branches, that have at least 1 overlapping index.

I have a milkbox component that can eliminate duplicate curves, so I only need to join the branches.

Any help much appreciated!

Best regards,

Janis

Curve clustering.gh (11.6 KB)