Face format

The face format is used for unstructured data sets. The file has ASCII format. A list of faces is given. A face can have three of four vertices. The values for each vertex are given line by line. The faces are separeted by one or more blank lines.

Example:

0 0 0
1 0 0.1
1 1 0.2
0 1 0.1

1 0 1.1
2 0 2.0
1 1 2.0

2.0 1.0 0.0
2.0 0.0 -0.1
3.0 0.5 0.4
Here three faces are defined. Numbers in floating point and exponential representation are allowed. Comment lines start with a '#'-symbol.

The number of vertices per face are detected automatically. If more than four lines are given for one face only the first four lines are taken into account.

A line can contain more than 3 floating-point numbers. By default the first 3 are taken as (x,y,z)-coordinates. This can be changed by the 'set coord'-command. See the examples.


back