Skip to main content

loadPCDFile

loadPCDFile(filename, pointType)

Load any PCD file into a PointCloud type.

For example:

import * as PCL from "pcl.js"

await PCL.init()

PCL.loadPCDFile("test.pcd", PCL.PointXYZ)

Parameters:

NameTypeDefaultDescription
filenamestringThe name of the file to load.
pointType (optional)PointTypePointXYZThe resultant point cloud type.

Returns:

NameType
cloudPointCloud