.node format.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.7The header:
n d nattr nbdry
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.