mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
887 B
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:
- @author Filipe Caixeta / http://filipecaixeta.com.br
- @author Mugen87 / https://github.com/Mugen87