Output own filenames with command line (2.5D volume)

Feel free to ask any question here
Post Reply
Vince
Posts: 7
Joined: Fri Oct 12, 2018 8:36 am

Output own filenames with command line (2.5D volume)

Post 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
Attachments
Image1.png
Image1.png (19.73 KiB) Viewed 3592 times
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post by daniel »

Hum, that's "interesting" ;). I'll need some time to investigate.
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post 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)
Daniel, CloudCompare admin
Vince
Posts: 7
Joined: Fri Oct 12, 2018 8:36 am

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

Post by Vince »

OK, Thank you for your quick reply.
But the filename of the "VolumeCalculationReport_2018-10-15_09h53.txt" is always set automatically?
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post 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).
Daniel, CloudCompare admin
Vince
Posts: 7
Joined: Fri Oct 12, 2018 8:36 am

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

Post by Vince »

OK
thank a lot it's effectively not complicated.
Post Reply