Hi, I need to implement a plugin that updates a mesh shape according to the positions of some "handle vertices" of the mesh. Specifically, I would like to use the OpenFlipper manipulator to move a vertex V, and update all other vertices of the mesh according to the position of V using a certain algorithm. What is the proper way of implementing this in OpenFlipper? The documentation mentions about "Mouse Interface" (http://openflipper.org/Documentation/latest/a00152.html). But it says that "Mouse Move events are never passed to one of the plugins and is only used for scene navigation inside the viewers". Does this mean I should not use mouse move events to implement the update of vertices? Thanks in advance, Bailin
On 15.02.2015 23:48, Bailin Deng wrote:
Hi,
I need to implement a plugin that updates a mesh shape according to the positions of some "handle vertices" of the mesh. Specifically, I would like to use the OpenFlipper manipulator to move a vertex V, and update all other vertices of the mesh according to the position of V using a certain algorithm. What is the proper way of implementing this in OpenFlipper? The documentation mentions about "Mouse Interface" (http://openflipper.org/Documentation/latest/a00152.html). But it says that "Mouse Move events are never passed to one of the plugins and is only used for scene navigation inside the viewers". Does this mean I should not use mouse move events to implement the update of vertices?
Thanks in advance, Bailin _______________________________________________ Openflipper mailing list Openflipper@lists.rwth-aachen.de http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
Hi, the mouse interface is the correct way to do this. I clarified the documentation ( should be on the website soon ). The examine mode is not passed to the plugins, but the picking modes are. So this is where you could implement this. You should take a look at the move plugin. It already implements moving selected vertices, so maybe you don't want to implement that part at all but just react on a mouse relese event if the picking mode is set to the corresponding mode. That way, the move plugin will handle the relocation of handle vertices while your plugin updates the position of the other vertices if the move plugin has finished. Best, Jan Möbius -- Dipl.Inform. Jan Möbius Department of Computer Science VIII Aachen University of Technology (RWTH) Ahornstrasse 55, 52074 Aachen, Germany Phone ++49 (0)241 80-21802 Fax ++49 (0)241 80-22899 mailto:moebius@cs.rwth-aachen.de http://www.rwth-graphics.de
participants (2)
-
Bailin Deng
-
Jan Möbius