Page 1 of 1

Automating a process in CC

Posted: Thu Jan 25, 2018 4:46 pm
by OTH_TM
Hi all,

I'm using CloudCompare to scale and compare a point cloud to a CAD .stl file and apply a particular color scale to the point could. I'm wondering if it is possible to automate this process? So that I can pre set all the parameters and the programm will process the point cloud/mesh distance and output a colored point cloud?

Thank you!

Re: Automating a process in CC

Posted: Thu Jan 25, 2018 7:42 pm
by daniel
You can use the command line tool to do this (http://www.cloudcompare.org/doc/wiki/in ... _line_mode).

You can call the distances computation tool, and (with the latest 2.10.alpha version) you can load a color scale from a XML file (saved with the 'Color Scale Manager') and apply it to the active scalar field.

See the C2C_DIST or C2M_DIST and the SF_COLOR_SCALE options.

Re: Automating a process in CC

Posted: Mon Jan 29, 2018 9:22 am
by OTH_TM
Thank you! That's greate this is what i was looking for.

Is it also possible to use the "scale / multiply" function via console mode?

Re: Automating a process in CC

Posted: Mon Jan 29, 2018 5:59 pm
by daniel
Not directly, but you can use the 'APPLY_TRANS' option to apply a 4x4 matrix with the scale on the 3 first values of the diagonal :
S 0 0 0
0 S 0 0
0 0 S 0
0 0 0 1