New plugin - tutorial

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

New plugin - tutorial

Post by adams »

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: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: New plugin - tutorial

Post by daniel »

Please look at https://github.com/cloudcompare/trunk/b ... 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: 4
Joined: Tue Nov 24, 2015 7:42 am

Re: New plugin - tutorial

Post by adams »

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: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: New plugin - tutorial

Post by daniel »

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

Post by TommyMager »

Hi! I'm not a professional programmer, either. Need few tips on CC plugins. The link above is dead.
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: New plugin - tutorial

Post by daniel »

Indeed, here is the new link / document:
https://github.com/CloudCompare/CloudCo ... IBUTING.md
Daniel, CloudCompare admin
Post Reply