<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I already do that in the animation callback. The grid moves as a whole. What doesn't happen is updates to the positions of the grid points.</span></div><div><br></div> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> David Doria <daviddoria@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Gregory Propf <gregorypropf@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "vtkusers@vtk.org" <vtkusers@vtk.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, June 1, 2012 4:24 AM<br> <b><span
style="font-weight: bold;">Subject:</span></b> Re: [vtkusers] updating points in vtkUnstructuredGrid<br> </font> </div> <br>On Fri, Jun 1, 2012 at 4:10 AM, Gregory Propf <<a ymailto="mailto:gregorypropf@yahoo.com" href="mailto:gregorypropf@yahoo.com">gregorypropf@yahoo.com</a>> wrote:<br>> Can someone tell me how to get the actor for an vtkUnstructuredGrid to<br>> actually update (I'm doing an animation) when I change the underlying points<br>> with Python code like:<br>><br>> pts = self.aPolyLineGrid.GetPoints()<br>> for i in range(len(self.elementList)):<br>> pts.SetPoint(i,self.elementList[i].loc.toTuple())<br>><br>> I follow this with self.aPolyLineGrid.Update() but nothing changes on screen<br>> though I've verified that the points list is changing. Oddly, when I<br>>
use self.edgeActor.SetPosition(self.centerOfMass.x,self.centerOfMass.y,self.centerOfMass.z)<br><br>Try calling renderWindow->Render()<br><br>David<br><br><br> </div> </div> </div></body></html>