CSVFile[T, filename] writes the tissue object T to the specified file.
CSVFile[T, filename, True] writes the tissue object T to the specified file in flattened format, without explicit reference to the edges.
CSVToTissue[filename] reads the specified CSV file and returns a Tissue object. The file may be in either normal or flat tissue form; if the file contains a FlatTissue, the data is converted into a Tissue object first.
The format is as follows:
n,dimensions n,vertices n,edges n,faces x,y x,y ... i,j i,j ... p,q,r,.. p,q,r,.. ...
where the strings dimensions, vertices, edges and faces are required; n is an integer; x,y (or x,y,z) are the coordinates of the ith vertex; i,j are the vertex indices of the pth edge; and p,q,r,... are the edge indices of the kth cell.
If the file is saved in flat form, the format is
n,dimensions n,vertices n,faces x,y x,y ... s,t,u,.. s,t,u,... ...
where s,t,u,... are the vertex indices of the kth cell, and everything else is as defined for the first case.