<br clear="all">Hi vtk users, <div><br></div><div>I&#39;m trying to move a vertex of a mesh by mouse interaction.</div><div>In order to do that, I pick a point on my mesh using vtkPropPicker class. This position is set as start position in the  vtkPointWidget class..</div>
<div><br></div><div><div>My code for widget is:</div><div><br></div><div>vtkPointWidget *pointWidget = vtkPointWidget::New();</div><div> pointWidget-&gt;SetInteractor(this-&gt;GetInteractor());</div><div> pointWidget-&gt;PlaceWidget(polydata-&gt;GetBounds()); </div>
<div> pointWidget-&gt;SetPosition(pos[0],pos[1],pos[2]); //position selected by mouse (using vtkPropPicker class)</div><div> pointWidget-&gt;EnabledOn();</div><div> pointWidget-&gt;TranslationModeOff();</div><div> pointWidget-&gt;AllOff();</div>
<div>pointWidget-&gt;OutlineOff();</div><div>pointWidget-&gt;GetDefaultRenderer();</div><div><br></div><div>After this code I move the widget by mouse, but a new position is not returned.</div><div><br></div><div>pointWidget-&gt;GetPosition() returns me pos[0],pos[1],pos[2].(the initial position) and this position is returned straightforward and not after I drag the point by mouse.</div>
<div><br></div><div>Thank you for your help.</div><div>Elena</div><br>
</div>