Mesh information like points, faces and cells is to be stored into separate files:
e.g. for points file:
# points data: x y z
x1 y1 z1
x2 y2 z2
# cells data: cell type and points index - clockwise (6: tri; 9:quad)
9 3 1 2 0
9 2 5 6 1
6 2 3 5
here # is comment, and N_Points is the size of vector used to store these information.
I used to store these information directly to ascII files with just numbers, in which each line has same format.
For AscII file with comments, name-value pair and numbers, it is more readable, but I have no idea how to read different type of lines from txt file properly. I appreciate any tips to get this simple job done.