Skip to content

Commit 77fb29d

Browse files
fix _vtk import
1 parent 74fe0e3 commit 77fb29d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/emimesh/extract_surfaces.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import shutil
1010
import itertools
1111

12-
from pyvista.core import _vtk_core as _vtk
12+
from vtkmodules.vtkCommonDataModel import vtkPlaneCollection
13+
from vtkmodules.vtkFiltersGeneral import vtkClipClosedSurface
1314
from pyvista.core.filters import _get_output, _update_alg
1415
from pyvista.core.utilities.helpers import generate_plane
1516

@@ -19,9 +20,9 @@
1920
def clip_closed_surface(surf, normal='x', origin=None, tolerance=1e-06, inplace=False, progress_bar=False):
2021

2122
plane = generate_plane(normal, origin)
22-
collection = _vtk.vtkPlaneCollection()
23+
collection = vtkPlaneCollection()
2324
collection.AddItem(plane)
24-
alg = _vtk.vtkClipClosedSurface()
25+
alg = vtkClipClosedSurface()
2526
alg.SetGenerateFaces(True)
2627
alg.SetInputDataObject(surf)
2728
alg.SetTolerance(tolerance)

0 commit comments

Comments
 (0)