Page 1 of 1

CloudCompare CLI select attribute columns

Posted: Wed Jan 11, 2023 8:00 pm
by kaaiinn
Not sure if I am missing something here..

Trying to use the CLI to open a point cloud, do some noise filtering and subsampling, generate normals then save it.
The point cloud input is a .pts file in XYZsRGB format, however I cant seem to find the option of selecting this through the CLI... it seems to default to XYZRGBs.

tl;dr is there a way to input column attributes via the CLI to XYZsRGB (then also export a pts as XYZsRGBNxNyNz)

Re: CloudCompare CLI select attribute columns

Posted: Thu Jan 12, 2023 7:38 am
by daniel
Ah no, that's one limitation of the command line sadly...

Re: CloudCompare CLI select attribute columns

Posted: Thu Jan 12, 2023 8:19 am
by kaaiinn
ahh oh well, slightly frustrating. I guess I'll open each point cloud, save it in another format and then carry out the CLI after that.

Thanks for your help, +1 to add a -FORMAT command so you can do things like -FORMAT XYZSRGB for ascii point clouds!

Re: CloudCompare CLI select attribute columns

Posted: Wed Mar 05, 2025 12:46 pm
by kaaiinn
aware this is now 2 years old, however my issue has resurfaced!
I am currently adding a header in to the .pts files, however some of them are 160GB+ so you can imagine the processing times on these is horrendous.

Would still love to be able to use the CLI to open a pointcloud but dictate its format, like you can do in the UI

something like:
-O <file> -format xyzsrgb

Re: CloudCompare CLI select attribute columns

Posted: Wed Mar 05, 2025 12:54 pm
by Izzis
kaaiinn wrote: Wed Mar 05, 2025 12:46 pm aware this is now 2 years old, however my issue has resurfaced!
I am currently adding a header in to the .pts files, however some of them are 160GB+ so you can imagine the processing times on these is horrendous.

Would still love to be able to use the CLI to open a pointcloud but dictate its format, like you can do in the UI

something like:
-O <file> -format xyzsrgb
There’s no direct CLI option for specifying formats like in the UI, but you can use custom scripts or third-party tools to automate and speed up the conversion process for large files.