Cluster mesh with random lines_ Anemone algorithm

Goodmorning everyone . I hope someone can help me. My goal is to group mesh faces according to random lines distributed on the mesh. The problem is that in some cases overlaps are created at the edges of the clusters.
The definition uses anemone.
Any advice is welcome.cluster_mesh_rnd_lines__0 cluster_mesh_rnd_lines_1 cluster_mesh_with_random_lines.gh (21.1 KB)
Thanks

You don’t need to use Anemone to cluster mesh faces by proximity to lines - you can simply sort by distance:
cluster_mesh_with_random_lines.gh (20.5 KB)

4 Likes

Daniel Pilker. You are definitely right. Less is more. I think your solution also works with more complex geometries, such as polylines and curves so it’s perfect. Many thanks

1 Like

Yes - it’s essentially a sort of discretized Voronoi

1 Like

Great!!