diff --git a/tboxVtk/lineExtractor.py b/tboxVtk/lineExtractor.py index df305b5c77c48fbff39f830080ebf1ea4a2fd569..3eb9320db4db2c214bdf68332f1bb44a823ea062 100644 --- a/tboxVtk/lineExtractor.py +++ b/tboxVtk/lineExtractor.py @@ -55,7 +55,8 @@ class LineExtractor: # create a threshold containing the physical group (tag) to cut thresh = vtk.vtkThreshold() - thresh.ThresholdBetween(tag,tag) + thresh.SetLowerThreshold(tag) + thresh.SetUpperThreshold(tag) thresh.SetInputConnection(self.grid) thresh.SetInputArrayToProcess(0, 0, 0, vtk.vtkDataObject.FIELD_ASSOCIATION_CELLS, tag_name) # "tag" is the default name set in tboxVtk::VtkExport::save thresh.Update()