Command line -SAVE_CLOUDS ascii encoding format change

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
jannika
Posts: 1
Joined: Tue May 26, 2020 12:58 pm

Command line -SAVE_CLOUDS ascii encoding format change

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

Re: Command line -SAVE_CLOUDS ascii encoding format change

Post 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)
Daniel, CloudCompare admin
Post Reply