[vtkusers] Does anybody know how to use vtkIdType in Python?

Jérôme jerome.velut at gmail.com
Mon Jan 11 09:10:33 EST 2010


Hi,

In python, as far as I remember, the type of the data is given by the first
affectation. And in vtkType.h,
vtkIdType is a simple c++ define of int (basically speaking. It seems to
handle 64/32 integer cases.).
I think you should not have to give such a type to your "id"...

Can you be more precise about your problem? eg giving code, error messages,
etc. ?

Jerome

2010/1/11 Youbing Zhao <zhaoyoubing at gmail.com>

> Dear Guys,
>
> I'm try to call vtkPolyData.InsertNextCell(1, id) in Python which requires
> a vtkIdType variable as the second input.
>
> But I have no idea of setup a vtkIdType variable. I tried vtk.vtkIdType,
> but it's not in the module.
>
> Does anybody has the experience?
>
> Thank you very much
>
> Youbing
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100111/2953a357/attachment.htm>


More information about the vtkusers mailing list