I’m trying to threshold datasets in a vtkMultiBlockDataSet, but the filter returns a None type - I’m working in Python 3.8.2 and vtk 9.0.1
The code fragment is shown below and export is returned as None
The input is a vtkMultiBlockDataSet containing vtkUnstrucutredGrids. I’ve exported it and confirmed using Paraview that it’s in good shape - and I can do the threshold in Paraview.
Does vtkThrehold support multiblock datasets?
Thanks in advance for amy help…
threshold_filter = vtk.vtkThreshold() threshold_filter.SetInputData(mesh) threshold_filter.ThresholdByLower(tolerance) threshold_filter.SetInputArrayToProcess(0, 0, 0, vtk.vtkDataObject.FIELD_ASSOCIATION_POINTS, "Distance") threshold_filter.Update() export = threshold_filter.GetOutput()