Skip to main content

Point-cloud format

Keep point attributes alongside positions.

The PCD module reads Point Cloud Data headers and point records, preserving named fields such as normals, color, intensity, and sensor-oriented metadata for downstream applications.

The point record

Describe the fields before decoding the points.

PCD puts a compact schema in an ASCII header and lets the payload use ASCII, binary, or compressed binary storage. loaders.gl maps that description into reusable point-cloud data.

Header

Fields, sizes, types, counts, and organization

Payload

ASCII, binary, or binary-compressed records

Attributes

Coordinates, normals, color, intensity, and custom fields

Output

Point-cloud objects or Mesh Arrow tables

The @loaders.gl/pointclouds/pcd module handles the Point Cloud Data, which stores 3D point cloud data.

Detailed guide

PCD module reference

The sections below cover installation, supported loader and writer entry points, and parser attribution.

Installation​

npm install @loaders.gl/pointclouds
npm install @loaders.gl/core

Loaders and Writers​

Loader or WriterDescription
PCDLoaderLoads PCD point clouds as PointCloud objects or Mesh Arrow tables.
PCDWriterWrites Mesh or Mesh Arrow table point clouds as ASCII PCD text.

Attribution​

PCDLoader is a fork of the THREE.js PCDLoader under MIT License. The forked THREE.js source files contained the following attributions:

Sources and credits​

See the package source and license inventory and the project-wide Attributions and Credits.