CloudCompare icon indicating copy to clipboard operation
CloudCompare copied to clipboard

Ascii file comment lines

Open amnipar opened this issue 4 years ago • 2 comments

Describe the feature you would like We are generating pointclouds in a project, and it would be useful to add comments in the middle of the file, not only in the beginning. As an example, a cloud contains multiple 2d scanlines, and we would like to store metadata for each scanline, such as timestamp, servo angle, etc. I did not find documentation about comment line delimiter anywhere, so I looked at the code of AsciiOpenDlg.cpp. It seems that the current software recognizes lines starting with // as comments. There has been also the option of #, but it has been commented out. I was wondering why, was there a problem with this option? It would be slightly better to have single character to identify comments, but of course I can work with // as well.

Another request would be to document this comment line possibility so others would not need to go looking at the code.

Describe alternatives you've considered Instead of line comments, I have considered using a separate metadata file.

Is your feature request related to a problem? Please describe. Related to solving a minor problem in a project, namely storing metadata of scanlines.

Additional context

amnipar avatar Jun 15 '20 09:06 amnipar

Well, I don't see any problem with adding the '#' character as comment line delimiter. However if you want to use it, it will only work with the next versions (2.12 and later).

And for the documentation, I guess we could add a dedicated page on the wiki.

dgirardeau avatar Jun 15 '20 17:06 dgirardeau

Sounds good! Thanks. It's not a problem to wait for the next version, I can get started with // comments.

amnipar avatar Jun 16 '20 07:06 amnipar