Page 1 of 1

Save ply from command-line without preserving global shift

Posted: Tue Jun 29, 2021 1:40 pm
by Hakim
Is there a way for CloudCompare command (when called from the command-line) to act like when the `Preserve global shift on save` is unchecked (in Global shift/scale popup window), i.e. to transform 'big' coordinates by re-centering and translation?

I'm trying to convert an e57 point-cloud to ply and since the xy coordinates are many order of magnitudes bigger than z, I need to transform these coordinates upon saving the resulting ply file. I know I can do it by opening the ply file in CloudCompare UI, unchecking that checkbox, and saving again the ply, but I'm trying to automate that with a bash script.

For the time being, my command looks like the following:

CloudCompare -O -GLOBAL_SHIFT AUTO file.e57 -C_EXPORT_FMT PLY -SAVE_CLOUDS

Re: Save ply from command-line without preserving global shift

Posted: Tue Jun 29, 2021 2:16 pm
by Hakim
My bad, I think adding `-DROP_GLOBAL_SHIFT` to my command gave the result I was expecting.

Re: Save ply from command-line without preserving global shift

Posted: Wed Jun 30, 2021 7:48 pm
by daniel
Yes ;)