Skip to content.
Find topic
Search text
General webs
Main (Wiki home)
TWiki docs
CCB Quicklinks
FAQ
?
How to use Wiki
Web tools
Recent changes
Topic list
Verbose topic list
Access statistics
Notify me of changes
Web preferences
Help
Text formatting rules
TWiki documentation
Sandbox (test) web
SHIVA
>
TMFormat
More...
Printable version
Attach a file
Edit this page
---++LONI Triangle Model Format This following description is obtained from LONI [[CCB.ShapeToolsLibrary][ShapeTools]] edu.ucla.loni.ccb.shapeio.tm.parser.TmAsciiShapeParser. The conventional suffix for a LONI Triangle Model files is `.tm'. Syntax: <pre>nVertices nFaces</pre> {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: <verbatim> 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 </verbatim>