Page 1 of 1

How to programmatically kill a hung CC CLI windows batch

Posted: Sat Nov 27, 2021 4:24 pm
by Sivaranjani
Hi,

I am running a windows batch script on hundreds of 3D elements, such that for each 3D element, I am calling CloudCompare.exe through CLI and sample it, find C2C distance to another cloud and so on. Sometimes, it happens that for some elements, the C2C Distance calculation is being computed for a long time (sometimes even hours), right now I am killing such process through Ctrl+C, and then I type 'N' (the windows cmd prompts whether to kill the entire batch process and I specify 'N') to continue ahead with the batch process. I am finding a way to programmatically perform the same, like if a CloudCompare operation takes longer than few mins, I kill the same and proceed for next line of code from the batch script. I am a newbie to CloudCompare CLI and these ways of batch scripting, so I might be missing something evident, Please help me with your ideas and available solutions. Thank you.

Re: How to programmatically kill a hung CC CLI windows batch

Posted: Sun Nov 28, 2021 9:37 pm
by daniel
Ah, I can't help on the scripting part, but I guess the very long computation time comes from the fact that the two clouds are very far apart. Using a 'maximum distance' cloud help reducing a lot the computation time (C2C -MAX_DIST XXX).

Re: How to programmatically kill a hung CC CLI windows batch

Posted: Tue Nov 30, 2021 11:58 am
by Sivaranjani
Thanks.