[vtkusers] Moving a vertex

David Doria daviddoria at gmail.com
Wed Sep 22 07:03:44 EDT 2010


On Tue, Sep 21, 2010 at 10:06 PM, rakesh patil
<prakeshofficial at gmail.com> wrote:
> Well,
> I think this is wat is happening. Mouse Down is executed only first time.
> Then mouse move is executed till the mouse is released. So I guess here in
> mouse event you need to update the MovePolyData and render it.
> Like get the mouse position x, y and set this point to MovePolyData.
> then i think it should work. I am at home, so couldn't try. :-)
> Thanks
> Regards
> Rakesh Patil

Ok, finally got it. I ended up calling Start/EndPan() manually. I
still let the TrackballActor take care of the OnMouseMove function.
Works great :)

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MoveAVertex

David



More information about the vtkusers mailing list