LONI Triangle Model Format
This following description is obtained from LONI
ShapeTools edu.ucla.loni.ccb.shapeio.tm.parser.TmAsciiShapeParser.
The conventional suffix for a LONI Triangle Model files is `.tm'.
Syntax:
nVertices nFaces
{vertex coordinates, one per line, as X Y Z tuples}
{triangle face indices, three per line}
Note: The index of the third point of a triangle face
may have a "-" prefixed. This sign may indicate orientation.
It is ignored when the file is read.
Note: vertex indices start at 1, not 0. These are adjusted
by subtracting 1 before the face definitions are stored.
Example:
8 12
0.000000 0.000000 0.000000
0.000000 0.000000 1.000000
0.000000 1.000000 0.000000
0.000000 1.000000 1.000000
1.000000 0.000000 0.000000
1.000000 0.000000 1.000000
1.000000 1.000000 0.000000
1.000000 1.000000 1.000000
1 2 -4
4 3 -1
1 5 -6
6 2 -1
2 6 -8
8 4 -2
3 4 -8
8 7 -3
1 3 -7
7 5 -1
5 7 -8
8 6 -5