You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Take better advantage of vtk.util.numpy_support #4
In common.py there are many examples of looping over vtk arrays and insert values into python lists or numpy arrays. These should instead be converted using numpy_support functions.
Furthermore, there might be for-loops that can be vectorized, providing some speed-up to the algorithms.
Activity
rlizzo commentedon Nov 6, 2018
If you're not aware, native numpy support is available via VMTK 1.4. Check out the tutorial here: http://www.vmtk.org/tutorials/WorkingWithNumpyArrays.html
Also, tutorials from kitware which are really useful: