2018-08-24 14:29:01 -07:00

887 B

PCDLoader

A point cloud format defined by the Point Cloud Library

Currently only ascii and binary subformats are supported. Compressed binary files are currently not supported.

References

Usage

import {PCFLoader, loadFile} from 'loaders.gl';

loadFile(url, PCFLoader)
.then(({header, attributes}) => {
  // Application code here, e.g:
  // return new Geometry(attributes)
});

Loads position, normal, color attributes.

Attribution/Credits

This loader is a light adaption of the PCDLoader example in the THREE.js code base. The THREE.js source files contain the following attributions: