VTKDataSource and UnStructuredGrid

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

VTKDataSource and UnStructuredGrid

Brennan Williams
I've built an unstructured grid, ug, and added cell_data to it.
I then create a VTKDataSource...

self.src=VTKDataSource(data=self.ug)

If I want to update or change the cell data I tried updating the
ug.cell_data.scalars...

self.ug.cell_data.scalars=newarray

and then did a...

self.src.update()

but I see from doing a print_traits on self.src that the cell_data in
self.src has not changed.

Should I be doing a....

self.src.data.cell_data.scalars=newarray

Is VTKDataSource taking a copy of the data from the unstructured grid
rather than pointing to self.ug.cell_data?

Brennan


_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev