[vtkusers] Cython

Cory Quammen cory.quammen at kitware.com
Sat Jan 16 07:59:19 EST 2016


Nil,

VTK is C++ library that provides Python language bindings, so all the
VTK parts you call in your Python code are invoking compiled C++
functions. There is no need to cythonize them.

Cory

On Fri, Jan 15, 2016 at 11:30 AM, Nil Goyette <nil.goyette at imeka.ca> wrote:
> Hi all,
>
> I tried making a part of my pytthon code faster and vtk is the only part
> which I can't change anything. In fact, I can't find any information on
> cythonizing vtk. Maybe because one should use C++ if he wants a fast version
> :) or maybe because there's simply not much information on the subject.
>
> Is there some specific advices to vtk? Where to find the cdef?
> Or it's simply the general advices like: get a pointer to the data asap to
> be in C mode, then cdef everything?
>
> Nil
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Cory Quammen
R&D Engineer
Kitware, Inc.


More information about the vtkusers mailing list