How to export properties such as Box center and Box dimensions

Feel free to ask any question here
hsx1990
Posts: 3
Joined: Wed Mar 18, 2015 8:55 am

How to export properties such as Box center and Box dimensions

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

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

Post 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).
Daniel, CloudCompare admin
Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

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

Post by Haowyr »

Hello,

This might interest me a lot, is there anyway to get this .csv from the command line already or not?
daniel
Site Admin
Posts: 7332
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post by daniel »

No, not from the command line right now.
Daniel, CloudCompare admin
hsx1990
Posts: 3
Joined: Wed Mar 18, 2015 8:55 am

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

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

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

Post 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.
Daniel, CloudCompare admin
hsx1990
Posts: 3
Joined: Wed Mar 18, 2015 8:55 am

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

Post by hsx1990 »

Thank you!
Jvz
Posts: 1
Joined: Tue Feb 20, 2018 7:23 pm

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

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

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

Post 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.
Daniel, CloudCompare admin
Pranjal
Posts: 2
Joined: Tue Aug 21, 2018 1:22 pm

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

Post 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
Post Reply