-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add default arguments to ICP function? #163
Comments
Hi, you're right, the current implementation in CloudComPy requires at least 8 arguments, and only 5 are optional. It should be easy to define more arguments as optional, I'll add that to my TODO list! |
Thanks! In the meantime, do you know what the actual defaults are for each of the arguments as they were used in the command line version of the ICP function? The best I can tell from the documentation along with the CloudCompare GUI (and separate docs is
|
Sorry, I forgot your question! From the code (https://github.com/CloudCompare/CloudCompare/blob/master/qCC/ccCommandLineCommands.cpp) line 6631, you can get some default values in command mode (C++ names are quite similar to the names used in GUI or Command Mode)
Best regards, |
No worries, thanks for pointing me to the defaults! |
Hi,
Overview
I wanted to use the
cc.ICP
function similar to when we used it in the command line call to CloudCompare. However, I found that the function would not run without named argument definitions for everything despite not being required in the command line option.Question
Given the command line version of the ICP function works without specifying every individual argument, then I'm assuming it's working with internal defaults. It appears the CloudComPy ICP function already has some pre-defined defaults, so can the other argument defaults be added as well, please?
Context
In the command line script, we only defined the overlap and the random sampling limit:
Initial attempt
In CloudComPy, we tried doing the following, which gave us the error:
Second attempt
I thought maybe the issue is that the function has no defaults and therefore is expecting arguments. I thus used the arguments as defined in
test010.py
from Section 4.1 in the documentation, and this worked.The text was updated successfully, but these errors were encountered: