Page 1 of 1

Point pairs picking usage in Main.cpp

Posted: Tue Dec 03, 2019 9:02 am
by burak92
Dear Daniel,

I am trying to build the CloudCompare 2.8.1 version in visual studio 15. I followed instructions BUILD.md file. I have used CMake-gui to set QT 5 Root path to C:\Qt\Qt5.8.0\5.8\msvc2015_64, and checked the QAnimation plugin to build it too.

I didn't change any other settings, apart from CMake install prefix set to C:\cloud compare\CloudCompare-2.8.1\Trunk install.

I have built the CloudCompareProjects.sln on the debug mode without any errors. I set the CloudCompare as startup Project, changed the debugging command property to C:\cloud compare\CloudCompare-2.8.1\Trunk build\qCC\Debug\CloudCompare.exe

İt works with QT interface !!

1) I would like to use only “point pairs picking registration” functions and class in my main.cpp solution
http://www.cloudcompare.org/doc/qCC/htm ... n_dlg.html
I use point pairs picking registration as Tools -> Registration -> Align (Point pairs picking) from QT interface. Therefore, I would like to use only “point pairs picking registration” function without QT.

2) I have two point clouds which are ordered to point pair registration How can I load my two point cloud for registration as a input and run the functions in my main.cpp? I do not want to use QT UI and pointPickingTool, I want to use only back-end functions for my point cloud. What should I do? Could you help me about this issue...

OS Version: Windows 10
CC Version: trunk 2.8.1
VS 2015
Qt 5.8.0

Thank you for your interest.
Best Regards.

Re: Point pairs picking usage in Main.cpp

Posted: Wed Dec 04, 2019 10:30 am
by daniel
The 'debug' command should be pointing to the installed version of CloudCompare.

Something like: 'C:\cloud compare\CloudCompare-2.8.1\Trunk install\CloudCompare_debug\CloudCompare.exe'.

Another potential issue is if you miss some dependency DLLs (but here it shouldn't be the case).

Re: Point pairs picking usage in Main.cpp

Posted: Wed Dec 04, 2019 3:34 pm
by daniel
Oh, and to answer your second question, you will have to inspire yourself from

Code: Select all

https://github.com/CloudCompare/CloudCompare/blob/master/qCC/ccPointPairRegistrationDlg.cpp#L1092
(this is how the 'Align' tool calls the HornRegistrationTools class from CC_CORE_LIB.