More specifically, as shown in the figure, nodes N1 and N2 are made to move to the closest position n1 and n2 respectively on the endside L1.
node n3 is made to move to the closest position n3 on the end side l2.