The .node format

SVR uses the .node format devised by Shewchuk, generalized in the obvious way to higher dimension, to describe sets of vertices in both input and output. The format is a text file, consisting of a header describing the file, then a list of points. Empty lines are ignored, as is anything on the same line after a '#' comment character. The amount or type of whitespace is insignificant. Here is an example file:
6 2 0 0
1 0 0
2 0 1
3 1 0
4 1 1
5 0.5 0.5
6 0.6 0.7
The header: n d nattr nbdry
Four numbers. First one is the number of points that follow. The second is the dimension (2 or 3). The next two are currently ignored but retained for compatibility with Triangle, Pyramid, and TetGen.

The nodes: id x y [z, ...]
The ID is an integer. IDs can start at any number, but must be consecutive from there. For compatibility with Triangle, Pyramid, and TetGen, use either 0 or 1 for the first ID. The next d fields are doubles, the coordinates of the point.

If nattr or nbdry were set to non-zero values, there must be the correct number of attributes and a boundary marker following the last coordinate.


Back to SVR home
Last modified by Benoît Hudson
Thu Oct 4 12:25:39 CDT 2007