Page 1 of 1

[Done] Ascii scalar names + keyboard shortcut

Posted: Tue Jul 24, 2012 9:23 pm
by Dimitri
Hi Daniel,

With the latest version of our 3D point cloud comparison software we output ascii files (boouuh) and the first line contains the name of the columns (and there are several column). When I skip this line, Cloudcompare guess correctly that the first 3 columns are coordinates, and the 3 next normals, and the others scalars, but it'd be great to have the name of the scalar fields read directly from the header line (rather than having scalar #1 etc...).
The first line of our files read as :
#c1.x c1.y c1.z n1.x n1.y n1.z diff conf_interval etc...

Alternatively, is there a particular header format that Cloudcompare can use to load the name of scalar fields in an ascii file ?

Other question : is there a keyboard shortcut to scroll through the various scalars ? (like arrow up and arrow down ?)

Cheers and congrats for the latest version of CC, it's great !

Dim

Re: Ascii scaler names + keyboard shortcut

Posted: Wed Jul 25, 2012 12:39 pm
by daniel
I like the idea of adding shortcuts for changing the current scalar field! (and it's a very easy request... for once ;).

For the ASCII format, there's no predefined format (the idea is to be the most generic as possible). But we could agree that if only the first line is skipped and that this line has exactly as many elements as the number of columns, then we could use this information for naming scalar fields.

This means that either you don't use any space character in the scalar field names or that you use a different separator for the whole file (semicolon, etc.).

Re: Ascii scaler names + keyboard shortcut

Posted: Wed Jul 25, 2012 2:41 pm
by Dimitri
HI Daniel,

that'd be perfect...I'm used to never use column names without space character.

Cheers


Dim

Re: Ascii scaler names + keyboard shortcut

Posted: Wed Jul 25, 2012 7:19 pm
by daniel
I hope you meant the opposite ;)

It's already done on the trunk. I'll try to issue a new release at the end of the week.

Re: Ascii scaler names + keyboard shortcut

Posted: Wed Jul 25, 2012 8:59 pm
by Dimitri
oups, I'm a bit tired... currently rushing to finish the paper on the 3D point cloud comparison algorithm before the holidays....

Re: Ascii scaler names + keyboard shortcut

Posted: Tue Sep 11, 2012 12:55 pm
by MattPW
Hi guys,

What is the format of the header for an ASCII file type? eg "x y z s r g b"?

Does having an ASCII header line mean that the "open ascii file" dialog will be skipped?

Many thanks, Matt

Re: Ascii scaler names + keyboard shortcut

Posted: Tue Sep 11, 2012 2:04 pm
by daniel
Nope ;)

For the moment only the scalar field names can be extracted from the header line. To be valid this header line must contains as many "words" as columns in the file (so you can't use space characters or equivalent delimiter in your column names).

Re: Ascii scaler names + keyboard shortcut

Posted: Tue Sep 11, 2012 2:06 pm
by Dimitri
By the way, Daniel, thanks for this functionnality. This is ultra useful !