New plugin - tutorial

For any question about plugins!
adams
Posts: 2
Joined: Tue Nov 24, 2015 7:42 am

New plugin - tutorial

Postby adams » Tue Nov 24, 2015 9:05 pm

Hello,

Have u got any tutorial "how make new plugin to CC"?

I have some idea, but i'm not professional programmer, so i need some advices to do it :)

I wanna make plugin with other Variants of the ICP Algorithm.

What do u think about it?

Cheers,
Adam

daniel
Site Admin
Posts: 3243
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: New plugin - tutorial

Postby daniel » Tue Nov 24, 2015 9:59 pm

Please look at https://github.com/cloudcompare/trunk/blob/master/designing_a_new_qCC_plugin.rtf. And generally the best way to learn is to look at plugins with a similar workflow.

Otherwise there are other discussions on the forum about this subject. And of course you can ask more questions here.
Daniel, CloudCompare admin

adams
Posts: 2
Joined: Tue Nov 24, 2015 7:42 am

Re: New plugin - tutorial

Postby adams » Thu Nov 26, 2015 11:10 pm

Ok, thanks for advice. I will check it.

I have other question
I'm trying to write some scripts in python and i have real problem with this function:

ICP for 2 clouds > i get .txt file with matrix

Then i would like to use this matrix again for other cloud, but i still got error message
"Failed to read transformation matrix file
'test_3_L2__REGISTRATION_MATRIX_2015-11-27_00h06.txt' "

I tried to change name of .txt file, but it still doesn't work

It's part of my script in python:

Code: Select all

openFile=os.system("CloudCompare -AUTO_SAVE OFF -O -GLOBAL_SHIFT -450000 -450000 0 " + filePath1
+ " -CROP2D Z " + text + " -O -GLOBAL_SHIFT -450000 -450000 0 " + filePath2 + " -ICP " +
" -CLEAR_CLOUDS " + " -O -GLOBAL_SHIFT -450000 -450000 0 " + filePath1 + " -APPLY_TRANS " + fpath )


fpath is the name of .txt file

daniel
Site Admin
Posts: 3243
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: New plugin - tutorial

Postby daniel » Fri Nov 27, 2015 7:40 am

Have you tried providing the full path to the transformation maybe?

Otherwise can you post the file contents?
Daniel, CloudCompare admin

TommyMager
Posts: 1
Joined: Thu May 11, 2017 7:49 am

Re: New plugin - tutorial

Postby TommyMager » Thu May 11, 2017 7:54 am

Hi! I'm not a professional programmer, either. Need few tips on CC plugins. The link above is dead.

daniel
Site Admin
Posts: 3243
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: New plugin - tutorial

Postby daniel » Thu May 11, 2017 8:39 am

Daniel, CloudCompare admin


Return to “Plugins”

Who is online

Users browsing this forum: No registered users and 1 guest