Polygon data path
Read the elements, keep the useful attributes.
PLY files can vary in element names, property layouts, and storage encoding. The loader handles the supported combinations and exposes geometry through the same mesh contract as other formats.
Header
Declare elements, properties, counts, and storage encoding.
Decode
Read vertices, faces, colors, normals, and supported attributes.
Output
Return Mesh objects or Mesh Arrow tables.
Write
Encode compatible mesh data as ASCII PLY text.
Detailed guide
PLY format and API details
The reference below covers header syntax, element/property handling, encodings, decoded attributes, and writer behavior.
Loaders and Writers
| Characteristic | Value |
|---|---|
| File Format | PLY |
| Data Format | Mesh, Mesh Arrow table |
| File Extension | .ply |
| MIME Type | Not standardized |
| File Type | Binary/Text |
| Loader Decoder Type | Synchronous |
| Loader Worker Thread | ✅ Yes |
| Loader Streaming | ❌ No |
| Writer File Type | Text |
| Writer APIs | encode, encodeSync, encodeTextSync |
Supported Encodings
PLY supports ASCII, binary little-endian, and binary big-endian encodings. PLYWriter currently writes ASCII PLY text.
Mesh Data
PLY files describe mesh elements such as vertices and faces. PLYLoader maps common vertex properties to Mesh Arrow table columns by default. Set ply.shape: 'mesh' for the legacy Mesh object. Common attributes include POSITION, NORMAL, TEXCOORD_0, and COLOR_0.