Failed to update polydata -

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view

Failed to update polydata -

Kang Zhao

I wanted to update polydata after Render().

In my test, I made some changes to the original
(shipped with VTK python release), by adding a Keydown event ('x'),
which calls updatePolydata() to update the polydata
(wxVTKRenderWindow.srcdata). The function looks as follows.

def updatePolydata(self):
self.srcdata = vtk.vtkConeSource()

I expected the new "Cone" will be drawn to the screen, but it didn't

Did I misunderstand anything about how to update the polydata and piplines?

Here is my testing environment:

OS: Windows 7 (64-bit)
Python: 2.7.7 (32 bit)
wxPython: wxPython2.8-win32-unicode-
VTK: vtkpython-6.1.0-Windows-32bit.exe

My testing script is attached.

Thanks for your help in advance.


Powered by

Visit other Kitware open-source projects at

Please keep messages on-topic and check the VTK FAQ at:

Follow this link to subscribe/unsubscribe: (31K) Download Attachment
Reply | Threaded
Open this post in threaded view

Re: Failed to update polydata -

Did you check you enter the

if not self.GetUpdateRegion().IsEmpty() or self.__handle:

loop in the Render() method?