Creating Polygon

Hello everyone!

I am trying to create a closed polygon from the four points divided into three segments in the list as shown. I want the line to stop after it reaches the 4th point but it jumps from 4th point to the first point of the next segment. Can you please help me with it?

Thanksss!

works normally here…

Hello Mr user3174.
You must provide more information in order to be helped. A screen copy doesn’t help a lot. PLEASE provide a usable script with data internalised.

Thanks, I figured it out. Previously, it was creating diagonal lines but then I reversed the points on one node and it started working perfectly.