<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div>Hi,<br><br>The first example <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MoveAVertexUnstructuredGrid" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MoveAVertexUnstructuredGrid</a><span> seems to have no difference with the <a target="_blank" href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MoveAVertex">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MoveAVertex</a> example.</span><br><br>So for the moment I use a vtkCompositeDataGeometryFilter and then use vtkCleanPolyData on the output of the vtkCompositeDataGeometryFilter. And it seems to work.<br><br>But because I have only one vtkPolyData now, I am quite block because I would like to hide some blocks. But, I have only one actor because only one vtkPolyData.<br><br>I think I will try to loop
 <span id="result_box" class="short_text" lang="en"><span class="hps"></span><span class="hps"> through</span> <span class="hps">all blocks</span></span> and convert each block in a vtkPolyData et change the points in order to point to the global array points (In order to move vertices that are shared by several blocks). And, I could use an Actor for each polydata and make them visible or not. I don't know yet if it will work. It is just a test.<br><br>Thank you.<br></div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> David Doria &lt;daviddoria@gmail.com&gt;<br><b><span style="font-weight: bold;">À :</span></b> R M &lt;mlokida@yahoo.fr&gt;<br><b><span style="font-weight: bold;">Cc :</span></b> vtkusers@vtk.org<br><b><span style="font-weight: bold;">Envoyé le
 :</span></b> Ven 12 août 2011, 16h 30min 50s<br><b><span style="font-weight: bold;">Objet&nbsp;:</span></b> Re: [vtkusers] Re : Click and drag a vertex of a vtkUnstructuredGrid<br></font><br>On Thu, Aug 11, 2011 at 8:54 AM, R M &lt;<a ymailto="mailto:mlokida@yahoo.fr" href="mailto:mlokida@yahoo.fr">mlokida@yahoo.fr</a>&gt; wrote:<br>&gt; Apparently not. The interaction to select points works with a<br>&gt; vtkInteractorStyleTrackballActor class and it seems to only works with<br>&gt; vtkPolyData.<br>&gt;<br>&gt; May be I should convert my unstructured grid into a polydata ?<br><br>You could use a polydata for the interaction but still update the<br>unstructuredGrid points:<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MoveAVertexUnstructuredGrid" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MoveAVertexUnstructuredGrid</a><br><br>Or you could do the unstructuredGrid-&gt;PolyData conversion that you
 mentioned:<br><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter</a><br><br>David<br></div></div>



</div></body></html>