Page 1 of 2

How to export properties such as Box center and Box dimensions

Posted: Wed Mar 18, 2015 9:03 am
by hsx1990
Hi,

I am very new to CloudCompare ,and I want to konw how to export properties such as Box center and Box dimensions

Re: How to export properties such as Box center and Box dimensions

Posted: Wed Mar 18, 2015 4:52 pm
by daniel
By default you can only copy and paste those values from the entity properties (click on the corresponding section the use the 'CTRL+C' shortcut).

An other method ''Tools > Sandbox > Export cloud(s) info' saves in a CSV file some info on the selected clouds (name, number of points, gravity center). It's easy to modify the code to output other properties (if you can compile the project yourself).

Re: How to export properties such as Box center and Box dimensions

Posted: Thu Mar 19, 2015 8:20 am
by Haowyr
Hello,

This might interest me a lot, is there anyway to get this .csv from the command line already or not?

Re: How to export properties such as Box center and Box dimensions

Posted: Thu Mar 19, 2015 8:47 am
by daniel
No, not from the command line right now.

Re: How to export properties such as Box center and Box dimensions

Posted: Thu Mar 19, 2015 12:02 pm
by hsx1990
Because I'm very new to CloudCompare and I can't compile the project myself, will you improve this function in the future?

Re: How to export properties such as Box center and Box dimensions

Posted: Thu Mar 19, 2015 2:12 pm
by daniel
Well, we can add this to the TODO list but this will clearly not be a priority... If you can find the help of a developer it could hasten things up.

Re: How to export properties such as Box center and Box dimensions

Posted: Fri Mar 20, 2015 1:41 am
by hsx1990
Thank you!

Re: How to export properties such as Box center and Box dimensions

Posted: Thu Feb 22, 2018 5:23 pm
by Jvz
Hello Daniel,

I am interested in save in a .csv file only the Box center and Box dimension of several files.

You commented that It's easy to modify the code to output other properties. How can I do that?

Thank you in advance,

Jvz

Re: How to export properties such as Box center and Box dimensions

Posted: Fri Feb 23, 2018 8:51 am
by daniel
Yes, it basically consists in 'hacking' the code of the 'Tools > Batch export > Export cloud info' method.

You can find it in the big 'mainwindow.cpp' file, and the method is called MainWindow::doActionExportCloudInfo.

The current versions saves various pieces of info, but you should be able to comment a lot of lines. And to get the bounding-box extents, just call the 'getBoundingBox' method of each 'cloud' instance.

Re: How to export properties such as Box center and Box dimensions

Posted: Tue Aug 21, 2018 7:56 pm
by Pranjal
Hi,

I wanted to do the same, export the Box center and Box Dimension properties along with the given label. Has there been any progress regarding that. Or anyone maybe hacked the code and compiled the project which can be used by others. Any sources and links will be appreciated.

Kind Regards
Pranjal Biswas