Browse Source

Update to vtkInterface.py

Eager Beaver 6 years ago
parent
commit
5ff0f4dbd7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cardiacSPECT/vtkInterface.py

+ 2 - 2
cardiacSPECT/vtkInterface.py

@@ -30,8 +30,8 @@ def numpyToVTK(numpy_array, shape, data_type=None):
     v.SetSpacing(1,1,1)
     v.GetPointData().SetScalars(
         vtk.util.numpy_support.numpy_to_vtk(
-            numpy_array,deep=True, array_type=data_type))
-
+            numpy_array.ravel(),deep=True, array_type=data_type))
+    v.Update()
     return v