Dear John,
How to make this a polygon?
An example:
Many thanks to you Akira.
Reading the file into lua tables is good sense, and thank you for the string manipulations to pass to metafun().
From your teaching I changed this assignment:
t1 = tostring(x[1])
t2 = tostring(y[1])
s = s.."("..t1.."cm,"..t2.."cm)"
s = s.." withpen pencircle scaled 1bp;"
to close the polygon.