Skip to content

Commit

Permalink
simplify vtk import
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Feb 4, 2021
1 parent e3ecc95 commit a7fc126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dash_vtk/utils/vtk.py
Original file line number Diff line number Diff line change
@@ -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 = {
Expand All @@ -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()
Expand Down

0 comments on commit a7fc126

Please sign in to comment.