Adding HEADER to ASCII files during export

Feel free to ask any question here
Post Reply
vojtek
Posts: 10
Joined: Wed Apr 01, 2015 8:41 am

Adding HEADER to ASCII files during export

Post by vojtek »

Hi

Is there an option to include HEADER in ASCII files (pts, etc.) while processing files using Command Line version of CC?
I know I can specify that option in GUI version...

Could not find any info on that neither in manual nor in forum :(

Kind regards
Wojtek
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Adding HEADER to ASCII files during export

Post by daniel »

Okay, I've added two new options to the command line mode (after C_EXPORT_FMT):
* 'ADD_HEADER' to add a header with each column's name
* 'ADD_PTS_COUNT' to add the number of points at the beginning of the saved file

You'll find the beta version here:
http://www.cloudcompare.org/release/Clo ... in_x64.zip
Daniel, CloudCompare admin
vojtek
Posts: 10
Joined: Wed Apr 01, 2015 8:41 am

Re: Adding HEADER to ASCII files during export

Post by vojtek »

thx
I'll give it a try
sumi76
Posts: 1
Joined: Wed Oct 28, 2015 9:32 am

Re: Adding HEADER to ASCII files during export

Post by sumi76 »

Hi there,

I'm trying to export a point cloud on the command line:
CloudCompare -C_EXPORT_FMT ASC -PREC 3 -EXT txt -O mycloud.bin -NO_TIMESTAMP -SAVE_CLOUDS

This works, however when I add -ADD_HEADER, CC just hangs.
Was this behaviour reported before?
Using CC 2.6.2 64bit on Win7.

Thanks in advance!
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Adding HEADER to ASCII files during export

Post by daniel »

Must be a bug ;)

I'll check this ASAP.
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Adding HEADER to ASCII files during export

Post by daniel »

Okay I've fixed the bug (there was an infinite loop!).

The fixed beta version is here: http://www.cloudcompare.org/release

Thanks for the feedback!
Daniel, CloudCompare admin
Post Reply