[vtkusers] Re : Click and drag a vertex of a vtkUnstructuredGrid
David Doria
daviddoria at gmail.com
Fri Aug 12 10:30:50 EDT 2011
On Thu, Aug 11, 2011 at 8:54 AM, R M <mlokida at yahoo.fr> wrote:
> Apparently not. The interaction to select points works with a
> vtkInteractorStyleTrackballActor class and it seems to only works with
> vtkPolyData.
>
> May be I should convert my unstructured grid into a polydata ?
You could use a polydata for the interaction but still update the
unstructuredGrid points:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MoveAVertexUnstructuredGrid
Or you could do the unstructuredGrid->PolyData conversion that you mentioned:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter
David
More information about the vtkusers
mailing list