Hi Darshan,<br><br>That i have done.. But how do i set the updated data to the actor..??<br><br>I mean, for example, I get the Unstructured grid from the actor as follows:<br><br>vtkUnstructuredGrid *grid = vtkUnstructuredGrid::SafeCast( actor->GetMapper()->GetInput() );<br><br>vtkPoints *pts = grid->GetPoints();<br><br>// Assign new values to pts<br><br>Next how do I connect this pts to actor "actor" so that the actor clears the old display and renders new display..??<br><br>I mean after i set pts to grid, how do i set this grid to actor..? I tried doing this...<br><br>actor->GetMapper()->GetInput()->ShallowCopy(grid);<br>actor->Modified();<br><br>But i found no change.. It is showing same old display.. <br><br>Any suggestions..??<br><br>Thanks<br><br>Regards<br>Rakesh Patil<br><blockquote><br>---------- Original message ----------<br>From:Darshan Pai< darshanpai@gmail.com ><br>Date: 04 Apr 10 01:22:24<br>Subject: Re: [vtkusers] How to change dat
a through Actor<br>To: Rakesh Patil <rakeshthp@in.com><br><br>You can always get your data back from the actor using Actor->GetMapper()->GetInput(). Then you can change your data .<br><br><div class="gmail_quote">On Sat, Apr 3, 2010 at 5:30 AM, Rakesh Patil <span dir="ltr"><<a target=\"_blank\" target="\"_blank\"" href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>></span> wrote:<br>
<font color="#000000"></font><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="#000000">Hello Users,<br><br>I came to know that it is possible to change the data of a grid using actors. for example, I have already displayed a polyline. Now using this polyline actor, is it possible to change the number of points in this polyline..?? <br>
<br>Changing means i want it to reflect back on the render window..<br><br>Any idea how to do this..??<br><br>Thanks<br>Rakesh Patil<br><br><br></font><div style="border-top: 1px dashed rgb(204, 204, 204); border-bottom: 1px dashed rgb(204, 204, 204); padding: 5px;">
<font color="#000000"><a target=\"_blank\" href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font: 13px arial; color: rgb(30, 86, 161); text-decoration: none;" target="\"_blank\"">Dear <b>vtkusers !</b> Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></font></div>
<font color="#000000"><br>_______________________________________________<br>
Powered by <a target=\"_blank\" href="http://www.kitware.com" target="\"_blank\"">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a target=\"_blank\" href="http://www.kitware.com/opensource/opensource.html" target="\"_blank\"">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a target=\"_blank\" href="http://www.vtk.org/Wiki/VTK_FAQ" target="\"_blank\"">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="\"_blank\"">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></font></blockquote></div><br>
</rakeshthp@in.com></blockquote>