@loaders.gl/pointclouds
Point-cloud decoders and writers for LAS/LAZ, PCD and PLY. PLY keeps both point-cloud and mesh/face output; there is one implementation for both uses.
npm install @loaders.gl/core @loaders.gl/pointclouds
import {parse, parseSync} from '@loaders.gl/core';
import {PLYLoader} from '@loaders.gl/pointclouds/ply';
import {PLYLoaderWithParser} from '@loaders.gl/pointclouds/ply';
const table = await parse(bytes, PLYLoader);
const mesh = parseSync(bytes, PLYLoaderWithParser, {ply: {shape: 'mesh'}});
Package and format roots expose metadata loaders. Parser-bearing loaders use named implementation entrypoints, and each format retains its writer APIs. Worker bundles belong to pointclouds. The built-in LAS/LAZ implementation remains available without the optional compatibility backends.
COPC and Potree tileset traversal remain in @loaders.gl/tiles-3d; point decoding does not require installing that runtime. Shared Arrow helpers come from core rather than tables. See Modules for the complete package map.
Sources and credits
See the pointclouds notice inventory and Attributions and Credits.
Format guides
Package exports
All exported subpaths (9)
These are the package's public exports, including format entry points, parsers, writers, sources, and worker assets.
| Format | Import subpath |
|---|---|
@loaders.gl/pointclouds/las | |
@loaders.gl/pointclouds/las-worker.js | |
@loaders.gl/pointclouds/las/bundled | |
@loaders.gl/pointclouds/pcd | |
@loaders.gl/pointclouds/pcd-worker.js | |
@loaders.gl/pointclouds/pcd/bundled | |
@loaders.gl/pointclouds/ply | |
@loaders.gl/pointclouds/ply-worker.js | |
@loaders.gl/pointclouds/ply/bundled |