CloudCompare CLI select attribute columns

Feel free to ask any question here
Post Reply
kaaiinn
Posts: 6
Joined: Wed Jan 11, 2023 7:53 pm

CloudCompare CLI select attribute columns

Post 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)
daniel
Site Admin
Posts: 7853
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: CloudCompare CLI select attribute columns

Post by daniel »

Ah no, that's one limitation of the command line sadly...
Daniel, CloudCompare admin
kaaiinn
Posts: 6
Joined: Wed Jan 11, 2023 7:53 pm

Re: CloudCompare CLI select attribute columns

Post 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!
kaaiinn
Posts: 6
Joined: Wed Jan 11, 2023 7:53 pm

Re: CloudCompare CLI select attribute columns

Post 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
Izzis
Posts: 1
Joined: Wed Mar 05, 2025 12:51 pm

Re: CloudCompare CLI select attribute columns

Post 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.
Post Reply