Dear community,
I am interested in merging point clouds that are produced by the `-EXTRACT_CC` function. The problem is, that, I would like to generate their original cloud indexes into a Scalar Field (SF), similarly to what is possible in the GUI version of Cloud Compare.
Could you please provide any suggestions on how to accomplish this using the Command Line mode of Cloud Compare?
Thank you!
...
previous code
...
-EXTRACT_CC {CCoctreelevel} {CCpts} \
-SELECT_ENTITIES -CLOUD -ALL \
-here i need to merge with the indexes
-SAVE_CLOUDS \
Command Line – Merge with Original Cloud Index
Re: Command Line – Merge with Original Cloud Index
Currently the command line code doesn't allow for this. One would have to upgrade it...
Daniel, CloudCompare admin
Re: Command Line – Merge with Original Cloud Index
Maybe it would be 'easier' with CloudCompy (CloudCompare Python wrapper).
Daniel, CloudCompare admin
Re: Command Line – Merge with Original Cloud Index
Well you can hack your way to achive the same... probably it is generated by script so easier to use command files
Code: Select all
-O cloud1.bin
-SELECT_ENTITIES -LAST 1
-SF_ADD_CONST orig_index 1
-O cloud2.bin
-SELECT_ENTITIES -LAST 1
-SF_ADD_CONST orig_index 2
.
.
.
-O cloudn.bin
-SELECT_ENTITIES -LAST 1
-SF_ADD_CONST orig_index n
Re: Command Line – Merge with Original Cloud Index
Thank you for your replies and suggestions, I appreciate it!
I will try it with the python.
Good luck!
I will try it with the python.
Good luck!
Re: Command Line – Merge with Original Cloud Index
If the clouds not very big you can always save all files into their own files then reread them with a script where you could do that what i wrote earlier, but it means that you need to write/reread everything so it is a waste of time.
Re: Command Line – Merge with Original Cloud Index
This is actually what I did. Since the clouds are very tiny, they don't even process too long.
Thanks for your suggestion.
Thanks for your suggestion.