Try this:<br><br>pts->Modified();<br>vtkRenderWindow->Render();<br><br><br>Bill<br><br><br><div class="gmail_quote">2010/4/6 Rakesh Patil <span dir="ltr"><<a href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"> <a></a><br>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><font color="#000000"><br></font><br></div><blockquote><div class="im"><br>---------- Original message ----------<br>From:Darshan Pai< <a href="mailto:darshanpai@gmail.com" target="_blank">darshanpai@gmail.com</a> ><br>
Date: 04 Apr 10 01:22:24<br></div><div class="im">Subject: Re: [vtkusers] How to change data through Actor<br>To: Rakesh Patil <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 href="mailto:rakeshthp@in.com" target="_blank">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 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 href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a 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 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 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></font></blockquote></div><br>
</div></blockquote>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a 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 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 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>