How to save a file using the command line?

Feel free to ask any question here
Post Reply
chc810
Posts: 5
Joined: Tue Jan 17, 2023 12:01 pm

How to save a file using the command line?

Post 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!
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post 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?
Daniel, CloudCompare admin
Post Reply