Function lvr2::exportScanProjectToPLY
Defined in File ScanProjectUtils.hpp
Function Documentation
-
void lvr2::exportScanProjectToPLY(ScanProjectPtr project, const std::string plyFile, bool firstScanOnly = true, OctreeReductionAlgorithmPtr red = nullptr)
Writes the point cloud data from a scan project to a PLY file. It transforms all point cloud according to the stored transformation into the global coordinate system. Exported are points, normals (if present) and colors (if present).
Normals and colors will only be exported if they exist for all scans.
- Parameters:
project – A scan project
plyFile – The target .ply file
firstScanOnly – If true, only the first scan of each lidar will be exported, otherwise all scans will be loaded, converted written to the target file.