Skip to main content

Point-cloud format

A simple point-cloud interchange.

PCD describes point records with a compact header and ASCII or binary payload. loaders.gl maps those records to the shared point-cloud and Mesh Arrow shapes used by applications and writers.

Point records

Keep the attributes, choose the representation.

The PCD header declares the fields, sizes, types, and layout of each point. Once decoded, applications can use the same point or typed-column path as other point-cloud formats.

Header

Fields, dimensions, point count, viewpoint, and storage layout.

Encodings

ASCII, binary, and the format-specific binary-compressed variant.

Output

PointCloud objects or Mesh Arrow tables.

Write

Encode compatible point data as ASCII PCD text.

Detailed guide

PCD format and API details

The reference below documents header fields, supported encodings, decoded attributes, and loader/writer behavior.

Loaders and Writers​

CharacteristicValue
File FormatPoint Cloud Data
Data FormatPointCloud, Mesh Arrow table
File Extension.pcd
MIME TypeNot standardized
File TypeText/Binary
Loader Decoder TypeSynchronous
Loader Worker Thread✅ Yes
Loader Streaming❌ No
Writer File TypeText
Writer APIsencode, encodeSync, encodeTextSync

Supported Encodings​

PCD files have an ASCII header. Point records can be stored as ASCII, binary, or compressed binary data. PCDWriter currently writes ASCII PCD text.

Point Cloud Data​

PCD files are organized around named numeric fields. PCDLoader maps common fields such as x, y, z, normals, and color data to Mesh Arrow table columns by default, or legacy PointCloud attributes when pcd.shape: 'mesh' is selected.