[vtkusers] In Python, is it possible to use class methods with array pointer inputs ?
Evan Kao
tossin at gmail.com
Tue Aug 16 17:10:14 EDT 2016
Hello all,
I was wondering if there was any way to use class methods that have array
pointer inputs in Python. For example, I was looking at the
vtkPolygon.PointInPolygon
<http://www.vtk.org/doc/nightly/html/classvtkPolygon.html#a02bd9f9ae98053a1923a0231aea12d09>
() method, which takes an array pointer specifying the points. This C++
example <http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon>
suggests getting the pointer by using a vtkPoints->GetVoidPointer() method,
but that doesn't seem to yield anything usable in Python.
Thanks,
Evan Kao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160816/605a4b03/attachment.html>
More information about the vtkusers
mailing list