[vtkusers] Updating cell and point data of vtkDataSet

Rakesh Patil rakeshthp at in.com
Thu Jun 3 22:40:04 EDT 2010


Hi Andrew,Even I'm working on the similar application.. What exactly you are trying to implement?I wanted to display filled contours (color bands) for each time step without changing the geometry.If this is what you are actually trying to implement, then, I also faced this problem.. And i used the second method, to solve it.. But when i run my application, system gets loaded, as memory is consumed, for each time steps.So, i'm also in search of more effective method.May be any seniors here can help you out.RegardsRakesh Patil Original message From:"Андрей Траченко"< goodrone at gmail.com >Date: 3 Jun 10 18:50:10Subject: [vtkusers] Updating cell and point data of vtkDataSetTo: vtkusers at vtk.orgHello,I'm working on an application which solves dynamic FEM problems andhas an interactive GUI which should display current data in realtime.It also has a VTK pipeline containing filters, mappers and actors.Source classes are vtkPolyData and vtkUnstructuredGrid.What is the best
  way to update data fields (assuming geometry is notchanging)? I can think of these ways:1) Overwrite data (tuples in vtkDataArray) on each step, and mark thesource as modified.2) Create new vtkDataArrays on each step, remove old arrays in celland point data, add newly created arrays.Which way is better? Or maybe there is a better one?AndrewPowered by www.kitware.comVisit other Kitware opensource projects at http://www.kitware.com/opensource/opensource.htmlPlease keep messages ontopic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTKFAQFollow this link to subscribe/unsubscribe:http://www.vtk.org/mailman/listinfo/vtkusersGet Yourself a cool, short @in.com Email ID now!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100604/77cd799c/attachment.htm>


More information about the vtkusers mailing list