Professional Documents
Culture Documents
1 Introduction
The purpose of this document is to provide the basis for an exchange format for geometries so various
modelling environment and image digitisation software can exchange shapes labelled with simulation/data
analysis results.
The basic data structure to be exchanged are 2D and 3D cell complexes. The exact shape of each cell
can either be left to the reader, or specified (e.g. simplicial subdivision). Other extensions will be agreed
on when the need arises.
2.2 Header.
The header has the following structure:
ply
format [FORMAT] [VERSION]
comment [COMMENT]
element [TYPE] [NUMBER]
property [TYPE] [NAME]
...
end_header
The two first lines must correspond to the ones above. Comments may appear anywhere and should
simply be ignored. The order in which the element appears defines their order of appearance in the body
of the file. As for the properties, they are attached to the last element described, and their order define
the order in correspond to their order in the body of the file.
The format must be one of ascii, binary_little_endian or binary_big_endian and be followed
by a version number. The present document will be using the version 1.0.
Properties can be either single values or lists. The types accepted are listed in table 1. In the case of
lists, the syntax become:
property list [TYPE_SIZE] [TYPE_VALUE] [NAME]
Where TYPE_SIZE is the type used to give the number of values and TYPE_VALUE the type of the values
in the list.
1
name type number of bytes
char character 1
uchar unsigned character 1
short short integer 2
ushort unsigned short integer 2
int integer 4
uint unsigned integer 4
float single-precision float 4
double double-precision float 8
Element Description
vertex 0D cells
edge 1D cells
face 2D cells
volume 3D cells
2
Name Type Description
id uint 0-based id of the subdivided cell
type uchar Type of subdivision