Point pairs picking usage in Main.cpp

Feel free to ask any question here
Post Reply
burak92
Posts: 1
Joined: Tue Dec 03, 2019 6:16 am

Point pairs picking usage in Main.cpp

Post 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.
Attachments
visualstudio2.JPG
visualstudio2.JPG (187.51 KiB) Viewed 1208 times
Visual studio.JPG
Visual studio.JPG (169.96 KiB) Viewed 1208 times
cmake.JPG
cmake.JPG (196.21 KiB) Viewed 1208 times
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Point pairs picking usage in Main.cpp

Post 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).
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Point pairs picking usage in Main.cpp

Post 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.
Daniel, CloudCompare admin
Post Reply