I want to read/write
cyclic path definitions from/to files. For example, while running
asymptote code, I want to build up an arbitrary
cyclic path and write that path information to an external file for later inclusion in another
Is there already an easy solution for this?
If not, my thought is to loop thru the
path nodes and use the
postcontrol functions to
write a string of the form...
path p = (0,0)..controls (0,100) and (100,100)..(100,0) and so on
to an external file and then include that file in the later
asymptote run. Does anyone know of an easier way?