ASCII export variables - what are they?

Any question about the main GUI application (frontend)
Post Reply
T1230321
Posts: 12
Joined: Mon Oct 10, 2022 9:12 am

ASCII export variables - what are they?

Post by T1230321 »

Hi everyone,

I want to save/export a scan in ASCII format.

Can someone tell me what the export options refer to in the pop-up window?

Thanks
Attachments
Export question.png
Export question.png (158.31 KiB) Viewed 36146 times
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: ASCII export variables - what are they?

Post by daniel »

- coordinates precision: number of digits for coordinate values (X, Y, Z)
- scalar precision: number of digits for scalar field values (distance, intensity, etc.)
- separator: separator character between the above values (use a comma to create a CSV file for instance)
- order: order of the values (columns)
- header option: to add a description header (starts with '//' and then you'll find the name of each column)
- number of points: simply the total number of points on the first line (that's expected if you want to create a valid 'PTS' file for some other tools)
- colors:
* use float values (between 0 and 1) instead of integer (between 0 and 255) for R, G and B components
* save the alpha (transparency) component as well
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: ASCII export variables - what are they?

Post by daniel »

And I'm not sure this question should be in the 'Developers' section...
Daniel, CloudCompare admin
T1230321
Posts: 12
Joined: Mon Oct 10, 2022 9:12 am

Re: ASCII export variables - what are they?

Post by T1230321 »

Sorry for the incredibly late reply! Thank you for your help on this topic. Apologies if I posted it in the wrong place - I wasn't aware of the different subsections on the forum. Thanks again
mikesteen
Posts: 2
Joined: Thu Aug 03, 2023 8:05 am

Re: ASCII export variables - what are they?

Post by mikesteen »

Hello Daniel and thank you for the work you perform.
Forgive me for the question, but is it possible to save an ascii file in the following order: Point coordinates, Normal, SF?
If it is not possible how can it be solved?
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: ASCII export variables - what are they?

Post by daniel »

The 2 orders available are 'point, color, SFs, normal' or 'point, SFs, color, normal'.

So no it's not possible ;). And the only choice you have is to add a 3rd option in the existing code (shouldn't be too hard, but you need to code in C++ ;).
Daniel, CloudCompare admin
mikesteen
Posts: 2
Joined: Thu Aug 03, 2023 8:05 am

Re: ASCII export variables - what are they?

Post by mikesteen »

Hi Daniel, really sorry only now I saw the reply.
What if I reversed the columns of normals with the columns of scalars on Excel? That seems to work
DA523
Posts: 166
Joined: Mon May 25, 2020 4:02 pm

Re: ASCII export variables - what are they?

Post by DA523 »

Yes, you can edit with MS-Excel or librieCalc
But both are limited to 1 million rows?
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: ASCII export variables - what are they?

Post by daniel »

Maybe Notepad++ can help also (it handles much larger files, but it might not handle properly with the 'columns' if the characters are not properly aligned in the file - or there's a specific feature I don't know, this tool is pretty powerful after all).
Daniel, CloudCompare admin
Post Reply