Capítulo 196 de 859
A loader for the Point Cloud Data (PCD) format.
PCDLoader supports ASCII and (compressed) binary files as well as the following PCD fields:
const loader = new PCDLoader();
const points = await loader.loadAsync( './models/pcd/binary/Zaghetto.pcd' );
points.geometry.center(); // optional
points.geometry.rotateX( Math.PI ); // optional
scene.add( points );
Constructor
| Signature |
|---|
new PCDLoader( manager : LoadingManager ) |
Properties
| Property | Description |
|---|---|
.littleEndian : boolean | Whether to use little Endian or not. |
Methods
| Method | Description |
|---|---|
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) | Starts loading from the given URL and passes the loaded PCD asset to the onLoad() callback. |
.parse( data : ArrayBuffer ) : Points | Parses the given PCD data and returns a point cloud. |