Page 1 of 1

How to save a file using the command line?

Posted: Thu Feb 09, 2023 6:48 am
by chc810
I use the command line tool cloudcompare and aim to calculate the roughness of several thousand point clouds. All point clouds are stored in a folder and I would like to save the new output point cloud, i.e. the point cloud with the roughness fields, to another folder after the calculation is complete.
My command line is as follows:

Code: Select all

cloudcompare.CloudCompare -SILENT -O ./1/example_pc.ply -ROUGH 0.1 -C_EXPORT_FMT PLY -SAVE_CLOUDS ./2/example_pc.ply
However, I found that I could not save the file successfully and my save directory was always empty. The generated file always exists under the folder where the point cloud was entered, and generates both a .bin and a .ply
file. Please help me how to improve this, thanks!

Re: How to save a file using the command line?

Posted: Thu Feb 09, 2023 6:41 pm
by daniel
To avoid the creation of the BIN file, you can use -AUTO_SAVE OFF

I guess the output director exists?

And can you use double quotes maybe around the file paths? Or if it's not sufficient, set an absolute path?