Move mesh in plugin

Questions related to plugins development
Post Reply
we0704
Posts: 11
Joined: Tue Jul 02, 2013 2:27 am

Move mesh in plugin

Post by we0704 »

hello,
Do I have the access to move the mesh in my plugin?
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Move mesh in plugin

Post by daniel »

Do you mean progamatically or interactively?

Programmatically: you have full access to the 3D entities classes as they are all in the qCC_db library (see ccHObject::applyGLTransformation in particular to apply a 4x4 transformation matrix).

Otherwise the interactive segmentation mode can be enabled or disabled with a single method call on the active 3D view (you can get it with ccMainAppInterface::getActiveGLWindow). You also have full access to the ccGLWindow class as it's part of the qCC_gl library. The method is ccGLWindow ::setInteractionMode and you have to connect to the 'rotation' signal (you can see how all this work in the ccGraphicalTransformationTool class of the main project).
Daniel, CloudCompare admin
we0704
Posts: 11
Joined: Tue Jul 02, 2013 2:27 am

Re: Move mesh in plugin

Post by we0704 »

I got it,thank you
Post Reply