How can I connect triangles' points but with closed polylines?

3. Attach minimal versions of all the relevant files