Skip to content
Snippets Groups Projects
Commit fd05e80c authored by Adrien Crovato's avatar Adrien Crovato
Browse files

Update threshold deprecated function for VTK9

parent b69b6ff1
No related branches found
No related tags found
1 merge request!11amfe v1.0.7
Pipeline #21545 passed
...@@ -55,7 +55,8 @@ class LineExtractor: ...@@ -55,7 +55,8 @@ class LineExtractor:
# create a threshold containing the physical group (tag) to cut # create a threshold containing the physical group (tag) to cut
thresh = vtk.vtkThreshold() thresh = vtk.vtkThreshold()
thresh.ThresholdBetween(tag,tag) thresh.SetLowerThreshold(tag)
thresh.SetUpperThreshold(tag)
thresh.SetInputConnection(self.grid) 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.SetInputArrayToProcess(0, 0, 0, vtk.vtkDataObject.FIELD_ASSOCIATION_CELLS, tag_name) # "tag" is the default name set in tboxVtk::VtkExport::save
thresh.Update() thresh.Update()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment