Page 1 of 1

Output own filenames with command line (2.5D volume)

Posted: Fri Oct 12, 2018 12:24 pm
by Vince
Hello,

I am using CC for a long time but for the last few days I am trying to automate treatments with command lines.
I would like to know how to give its own names to the two results files of the -VOLUME command (2.5D volume estimation).

Here is an example of my command line:

CloudCompare -AUTO_SAVE OFF -O D:\2016_mod1.ply -O D:\2016_mod2.ply -CROP2D Z 4 599 500 596 545 611 547 621 514 -SAVE_CLOUDS ALL_AT_ONCE FILE D:\2016_mod1_mod2_crop -VOLUME -GRID_STEP 0.085

I can give his own name (D:\2016_mod1_mod2_crop.bin) to the results of the -CROP2D.

All I'm trying to do the same with -VOLUME causes a CC crash. Some examples:

...-VOLUME -GRID_STEP 0.085 FILE D:\result1 D:\result2
...-VOLUME -GRID_STEP 0.085 FILE "D:\result1 D:\result2"
...-VOLUME -GRID_STEP 0.085 -SAVE CLOUDS FILE D:\result1 D:\result2
...-VOLUME -GRID_STEP 0.085 -SAVE CLOUDS FILE "D:\result1 D:\result2"
.......

Always CC says "Ne répond pas" as you can see on the image.

Is there anything to do ?

Thank you
Vincent

Re: Output own filenames with command line (2.5D volume)

Posted: Fri Oct 12, 2018 8:03 pm
by daniel
Hum, that's "interesting" ;). I'll need some time to investigate.

Re: Output own filenames with command line (2.5D volume)

Posted: Sun Oct 14, 2018 7:55 pm
by daniel
Okay that's fixed (it was indeed a bug, the tool was not expecting any other command after its own options). The new version is available online.

And by the way, the correct syntax to save multiple files is:

Code: Select all

-SAVE_CLOUDS FILE "input1 input2 result"
(mind the quotes, and the fact that there are 3 clouds after the tool runs: the 2 input clouds that remain and the resulting difference grid as a 3rd cloud)

Re: Output own filenames with command line (2.5D volume)

Posted: Mon Oct 15, 2018 8:23 am
by Vince
OK, Thank you for your quick reply.
But the filename of the "VolumeCalculationReport_2018-10-15_09h53.txt" is always set automatically?

Re: Output own filenames with command line (2.5D volume)

Posted: Mon Oct 15, 2018 9:48 pm
by daniel
Yes the report is generated automatically because it's not stored after the tool (command) has been processed.

One would have to add a specific option to set the report output filename (this is not very complicated by the way).

Re: Output own filenames with command line (2.5D volume)

Posted: Tue Oct 16, 2018 7:40 am
by Vince
OK
thank a lot it's effectively not complicated.