<br clear="all">Hi vtk users, <div><br></div><div>I'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->SetInteractor(this->GetInteractor());</div><div> pointWidget->PlaceWidget(polydata->GetBounds()); </div>
<div> pointWidget->SetPosition(pos[0],pos[1],pos[2]); //position selected by mouse (using vtkPropPicker class)</div><div> pointWidget->EnabledOn();</div><div> pointWidget->TranslationModeOff();</div><div> pointWidget->AllOff();</div>
<div>pointWidget->OutlineOff();</div><div>pointWidget->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->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>