Page 1 of 1

Command line -SAVE_CLOUDS ascii encoding format change

Posted: Tue May 26, 2020 1:11 pm
by jannika
Dear Daniel,

I would like to use the command line version to import a pointcloud, apply a transformation and export that pointcloud as an ascii-file.

The Code I am using is:

Code: Select all

CloudCompare -O -SKIP 1 -GLOBAL_SHIFT AUTO "OrigPC.asc"  -APPLY_TRANS "RotationMatrix.txt" -AUTO_SAVE OFF -SAVE_CLOUDS FILE "TransPC.asc"
This seems to work, but the encoding format changes from UTF-8 to ANSI and therefore the data is not readable any more.

If I export the data in a .bin-file and then export it via

Code: Select all

CloudCompare -O "TransPC.bin" -C_EXPORT_FMT ASC -PREC 12 -SEP SPACE -SS SPATIAL 0.000000001
it works fine (but the automatically created name is really long).

I was wondering if I am missing something when using the -SAVE_CLOUDS command or if this encoding format change is not a CloudCompare problem but resulting from the settings of my personal computer.

Best regards,
Jannika

Re: Command line -SAVE_CLOUDS ascii encoding format change

Posted: Wed May 27, 2020 7:36 am
by daniel
Hi,

Not sure about the output encoding. We just create very standard ASCII files with the default system encoding I guess.

And why does it become 'unreadable'? In CloudCompare or in another software? If it's in CC, can you maybe share the file with me? (admin [at] cloudcompare.org)