This section identifies the file type.
First line: TPLC
Section 2. Dimension section
This section specifies the dimension of the PLC: either 2 or 3.
First line: DIMENSION <dim>
Section 3. Points section
This sections contains the coordinates of all the points in the refined PLC.
First line: POINTS <# points>
Remaining lines: <point id> <x coord> <y coord> <z coord>
<point id> should be an integer. <z coord> is omitted if <dim> is 2.
Section 4. Segments section
This section contains the subsegments of each input segment.
First Line: SEGMENTS <# segments>
Remaining lines: <segment id> <# points> <ordered list of points>
The orientation of each segment is preserved from the input file.
Section 5. Faces section
This section contains the triangulation of each input face.
First Line: FACES <# faces>
Each face is then specified in the following format.
<face id> <# triangles>
<list of triangles>
Each triangle in the list is given the ides its 3 vertices. The triangles in each face are consistently oriented in the same direction as the input data.
Section 5. Tetrahedra/Triangle section
In 3D, this section contains a list of tetrahedra.
First Line: TETS <# tetrahedra>
Remaining lines: <list of tetrahedra>
Each tetrahedron is given by a list of 4 point ids.
In 2D, this section contains a list of triangles.