PLY (file format)

PLY (file format)

PLY is a computer file format known as the Polygon File Format or the Stanford Triangle Format.

The format was principally designed to store three dimensional data from 3D scanners. It supports a relatively simple description of a single object as a list of nominally flat polygons. A variety of properties can be stored including: color and transparency, surface normals, texture coordinates and data confidence values. The format permits one to have different properties for the front and back of a polygon.

There are two versions of the file format, one in ASCII, the other in binary.

The File Format

A complete description of the PLY format is beyond the scope of this article - but one may obtain a good understanding of the basic concepts from the following description:

Files are organised as a header, that specifies the elements of a mesh and their types, followed by the list of elements itself, usually vertices and faces - eventually other entities such as edges, samples of range maps, and triangle strips can be encountered.

The header of both ASCII and binary files is ASCII text. Only the numerical data that follows the header is different between the two versions.

The header always starts with the line:

ply

...which helps to identify this as a genuine 'PLY' file. The second line indicates which variation of the PLY format this is. It should be one of:

format ascii 1.0 format binary_little_endian 1.0 format binary_big_endian 1.0

Future versions of the standard will change the revision number at the end - but 1.0 is the only version currently in use.

Comments may be placed in the header by using the word 'comment' at the start of the line. Everything from there until the end of the line should then be ignored. eg:

comment This is a comment!

The 'element' keyword introduces a description of how some particular data element is stored and how many of them there are. Hence, in a file where there are 12 vertices, each represented as a floating point (X,Y,Z) triple, one would expect to see:

element vertex 12 property float x property float y property float z

...other 'property' lines might indicate that colours or other data items are stored at each vertex and indicate the data type of that information. Regarding the data type there are two variants, depending on the source of the ply file, the type can be specified with one of "char uchar short ushort int uint float double", or one of "int8 uint8 int16 uint16 int32 uint32 float32 float64". For an object with ten polygonal faces, one might see:

element face 10 property list uchar int vertex_index

The word 'list' indicates that the data is a list of values - the first of which is the number of entries in the list (represented as a 'uchar' in this case) and each list entry is (in this case) represented as an 'int'.

...at the end of the header, there must always be the line:

end_header

In the ASCII version of the format, the vertices and faces are each described one to a line with the numbers separated by white space. In the binary version, the data is simply packed closely together at the 'endianness' specified in the header and with the data types given in the 'property' records. For the common "property list..." representation for polygons, the first number for that element is the number of vertices that the polygon has and the remaining numbers are the indices of those vertices in the preceding vertex list.

See also

* STL (file format)
* MeshLab: an open source Windows, Mac OS X and Linux application for visualizing, processing and converting three dimensional meshes to or from the PLY file format.
* Mathematica A technical computing system that can work with PLY files.

References

* [http://local.wasp.uwa.edu.au/~pbourke/dataformats/ply/ PLY - Polygon File Format]
* [http://www.cc.gatech.edu/projects/large_models/ply.html Some tools for working with PLY files]
* [http://www.cs.princeton.edu/~diego/professional/rply/ A software library for reading and writing PLY files]
* [http://graphics.stanford.edu/data/3Dscanrep/ A repository of 3D models stored in the PLY format]


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • STL (file format) — Infobox file format name = STL icon = caption = extension = .stl mime = type code = uniform type = magic = owner = 3D Systems released = latest release version = latest release date = genre = Stereolithography container for = contained by =… …   Wikipedia

  • Ply — A ply is a strand layer of material, such as yarn, rope, plastic, wood, or paper. Plywood is so called because it is a laminate of several thin layers of wooden material. Two ply toilet paper has two separable layers, each about as thick as… …   Wikipedia

  • PLY — Format de fichier de polygones PLY est un format de fichier informatique connu sous le nom de Polygon File Format (Format de Fichier de Polygones) ou le Stanford Triangle Format. The Le Digital Michelangelo Project à l Université Stanford utilisa …   Wikipédia en Français

  • Format de Fichier de Polygones — PLY est un format de fichier informatique connu sous le nom de Polygon File Format (Format de Fichier de Polygones) ou le Stanford Triangle Format. The Le Digital Michelangelo Project à l Université Stanford utilisa le format PLY pour un scanner… …   Wikipédia en Français

  • Format de fichier de polygones — The Le Digital Michelangelo Project à l Université Stanford utilisa le format PLY pour un scanner 3D de très haute résolution de David , sculpture de Michelangelo. PLY est un format de fichier informatique connu sous le nom de …   Wikipédia en Français

  • Wavefront .obj file — For other uses, see Obj (disambiguation). OBJ geometry format Filename extension .obj Internet media type application/x tgif? Developed by Wavefront Technologies Type of format 3D model format OBJ (or .OBJ) is a ge …   Wikipedia

  • Liste von Dateinamenserweiterungen/P — In dieser Liste sind übliche Dateinamenserweiterungen aufgelistet, die in einigen Betriebssystemen zur Unterscheidung von Dateiformaten verwendet werden. In anderen Betriebssystemen erfolgt die Dateitypenidentifikation hauptsächlich über den… …   Deutsch Wikipedia

  • STL (формат файла) — STL Расширение .stl MIME application/sla [1] Разработан 3D Systems Опубликован 1987[2] Тип формата 3д модели Стандар …   Википедия

  • OpenSceneGraph — Stable release 3.0.1 / July 31, 2011; 2 months ago (2011 07 31) Preview release 2.9.16 / June 9, 2011; 4 months ago …   Wikipedia

  • Comparison of 3D computer graphics software — 3D computer graphics software refers to programs used to create 3D computer generated imagery. Contents 1 General information 2 Operating system support 3 Features 4 …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”