[vtkusers] Debugging VTK in Python - finding exact class of VTK object

D L lackodan at outlook.com
Tue Jun 7 09:54:53 EDT 2016


Good to know, thanks! I probably should've mentioned I'm using VTK 6.3. 

Looking forward to trying VTK 7, seems like there are a lot of interesting changes, but for now I have to stick to the version that comes bundled with Anaconda.

~ Daniel

From: david.gobbi at gmail.com
Date: Tue, 7 Jun 2016 07:40:50 -0600
Subject: Re: [vtkusers] Debugging VTK in Python - finding exact class of VTK object
To: lackodan at outlook.com
CC: vtkusers at vtk.org

On Tue, Jun 7, 2016 at 7:24 AM, Ben Boeckel <ben.boeckel at kitware.com> wrote:
On Tue, Jun 07, 2016 at 12:47:20 +0200, D L wrote:

> Is there any other python or VTK function I can use?



There should be a `GetClassName()` method you can use.

And in VTK 7, each VTK class is its own Python type:
type(vtkImageData())<type 'vtkCommonDataModelPython.vtkImageData'>
 - David 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160607/52af6e62/attachment.html>


More information about the vtkusers mailing list