From a7fc126f31a3e182b18242d84865ead5cc77a6f0 Mon Sep 17 00:00:00 2001 From: Sebastien Jourdain Date: Thu, 4 Feb 2021 14:12:32 -0700 Subject: [PATCH] simplify vtk import --- dash_vtk/utils/vtk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dash_vtk/utils/vtk.py b/dash_vtk/utils/vtk.py index 5ddd878..3e1ab19 100644 --- a/dash_vtk/utils/vtk.py +++ b/dash_vtk/utils/vtk.py @@ -1,7 +1,7 @@ import dash_vtk -import vtk from vtk.util.numpy_support import vtk_to_numpy +from vtk.vtkFiltersGeometry import vtkGeometryFilter # Numpy to JS TypedArray to_js_type = { @@ -28,7 +28,7 @@ def to_mesh_state(dataset, field_to_keep=None): if dataset.IsA('vtkPolyData'): polydata = dataset else: - extractSkinFilter = vtk.vtkGeometryFilter() + extractSkinFilter = vtkGeometryFilter() extractSkinFilter.SetInputData(dataset) extractSkinFilter.Update() polydata = extractSkinFilter.GetOutput()