Command line. Use splited clouds

Feel free to ask any question here
Post Reply
amigo
Posts: 1
Joined: Thu Aug 24, 2023 3:25 pm

Command line. Use splited clouds

Post by amigo »

Hello everyone, English is not my native language so i will use a translator.
I know about
https://www.cloudcompare.org/forum/view ... 238#p28238
and
https://www.cloudcompare.org/doc/wiki/i ... 8option.29
but my code work better for my data. I did dumb sequential execution of commands and big execution time, but it works.

Code: Select all

"C:\Program Files\CloudCompare\CloudCompare.exe" -AUTO_SAVE OFF -O -GLOBAL_SHIFT -5210000 -660000 -1000 "file1.las" -SS SPATIAL 0.1 -FEATURE PLANARITY 5 -FILTER_SF 0.96 1.0 -SS SPATIAL 2.0 -REMOVE_ALL_SFS -C_EXPORT_FMT LAS -PREC 15 -SAVE_CLOUDS FILE "temp_1.las"
"C:\Program Files\CloudCompare\CloudCompare.exe" -AUTO_SAVE OFF -O -GLOBAL_SHIFT -5210000 -660000 -1000 "file1.las" -SS SPATIAL 0.1 -FEATURE PLANARITY 5 -FILTER_SF 0.0 0.96 -SS SPATIAL 0.5 -REMOVE_ALL_SFS -C_EXPORT_FMT LAS -PREC 15 -SAVE_CLOUDS FILE "temp_2.las"
"C:\Program Files\CloudCompare\CloudCompare.exe" -AUTO_SAVE OFF -O -GLOBAL_SHIFT -5210000 -660000 -1000 "temp_1.las" -O -GLOBAL_SHIFT -5210000 -660000 -1000 "temp_2.las" -MERGE_CLOUDS -C_EXPORT_FMT LAS -PREC 15 -SAVE_CLOUDS FILE "file_0.5.las"
del /f "temp_1.las"
del /f "temp_2.las"
As you can see, the problem is double identical work.

Code: Select all

-SS SPATIAL 0.1 -FEATURE PLANARITY 5
was twice with one source file.
In GUI we can do with one cloud SubSampling Space 0.1m and Geometric features Planarity 5m
after use "Filter by value", select Split we get 2 cloud( *.extract and *.extract.outside).
With 2 clouds we can do:
1st cloud SubSampling SF 0.96-1.0, SubSampling Space 2.0m
2nd cloud SubSampling SF 0.0-0.96, SubSampling Space 0.5m
and after merge and save.
My clouds can be 500kk points, and i have about 15 mins work every step in command line.
How i can do this in command line(work with *.extract and *.extract.outside) and after merge and save? Thank you in advance for your help.
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line. Use splited clouds

Post by daniel »

Sadly it's not possible to apply different commands (or different parameters) to the clouds in memory with the command line mode.
Daniel, CloudCompare admin
Post Reply