Page 1 of 1
Save to several (bin) files
Posted: Thu Dec 04, 2014 3:15 pm
by rainero
Hello,
i would like to save all my loaded clouds to separated files. At The moment, when i select all clouds, i can only save to one combined file. In order to save to single files, i have to select just one cloud and save it. This is very exhausting, when handling 100+ Clouds. Is there a chance you can implement a checkbox in the save dialog to save to several files. Alternatively i would be happy if i could split the combined bin file, usinge the Commandline.
Re: Save to several (bin) files
Posted: Thu Dec 04, 2014 5:20 pm
by daniel
There's no such option because we can't modify the save dialog (it's the system default dialog ;).
So indeed it could be added as an option to the command line mode.
Alternatively CC can already save multiple clouds to multiple ASCII files (you'll need either a rather old version - 2.5.4 - or the latest beta:
http://www.cloudcompare.org/release/Clo ... bin_x64.7z as this functionality has been mistakenly deactivated in the latest releases ;).
Re: Save to several (bin) files
Posted: Fri Dec 05, 2014 10:26 am
by rainero
Thank you for the fast reply. The feature for saving multiple ascii files in nice, but it leads to another problem for me. :)
After saving the clouds im using a matlab script with command line to measure the C2C distance between my fist cloud and all the others. With bin files, it works fully automated. By opening ascii files it leads for every cloud to an import tool for telling the programm which separator to choose and what the cells meaning is. Is there a command for the commandline where i can tell the programm how to handle a ascii cloudfile.
Re: Save to several (bin) files
Posted: Fri Dec 05, 2014 11:14 am
by daniel
Ah! Not yet. In command line mode, the dialog should only appear if CC can't automatically guess the right format.
What is the internal organization of your ASCII files? (columns, separator, etc.)
Re: Save to several (bin) files
Posted: Fri Dec 05, 2014 1:54 pm
by rainero
I use a comma as separator and the standard order of cloudcompare for the columns.
"X,Y,Z,R,G,B,Scalar"
The Import Tool suggests all vlaues and the separator correct. So i just have to confirm the settings and click okay.... 100 Times :)
Re: Save to several (bin) files
Posted: Fri Dec 05, 2014 2:13 pm
by daniel
Oh yes but if there's more than 5 columns, CC can't be 'absolutely' sure.
And isn't there an 'Apply all' button on the dialog? What version are you using?
Re: Save to several (bin) files
Posted: Fri Dec 05, 2014 2:33 pm
by rainero
Ah okay, so if i delete the RGB values, as i dont need them, it should work....
I tried the commandline with CC 2.6.0 and as i call it several times (only 2 clouds at the time), it askes me several times about the format (regardless of 'Apply All').
I try again on monday with deleting RGB values. Thank you very much for your help!
Re: Save to several (bin) files
Posted: Tue Dec 09, 2014 6:20 pm
by rainero
Deleting the RGB values and using the Beta worked. I am now able to automate my full process. :)
Big Thanks to daniel!