"Help; line between points in list A and the nearest point in list B."


I want to create lines between two lists of points—List A (midpoints of a polygon’s perimeter) and List B (polygon centers). The condition is that each point in List A connects to the nearest point in List B. I tried using Distance and Sort List, but I couldn’t make it work. Please help!

No script is provided

hi
you want some thing like this?

lines between two lists .gh (10.1 KB)

That what you need?


RE lines between two lists .gh (12.8 KB)

Here I uploaded the gh file. This solution doesn’t work for me because the points don’t recognize the nearest center.
problem lines between two list.gh (149.2 KB)

I want that every midpoint off voronoi cell find the nearest center of voronoi cell, and then do the line between both.

something like this ?

shortest_line_in_v-Cell.gh (150.0 KB)

kind regards - tom