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 (21.1 KB)

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

1 Like

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