As can be seen in figure below, I have some lines (finite length) between any two joints (red points), such as the line between joints J1 and J2. I have also some points such a
You can't use Voronoi diagram for ending points of segments.