Tags of the lines created in a for loop
I am connecting hundres of points to create lines and embed the lines in my mesh. I have also a big surface connected by four lines (shown by red arrows in the fig) in my box and want to transfinite it. But the point is that after creating that numerous lines, tag of the prevoius four lines is completely changed and I cannot find how to detect them. Another issue is that these four lines are segmented into smaller ones, because some points are located on them (shown by yellow circles). I put some counter after creating my line in for loops but still I cannot find the tag of my main four lines. So, I appreciate if anyone let me kno how can I transfinite that surface. I also uploaded my data set and python script here. I appreciate any help in advance.