Apply vtkTubeFilter() to edges of an vtkUnstructuredGrid


I would like to create tubes around the edges of an vtkUnstructuredGrid. The vtkTubeFilter() is what I have used previously but that requires having the edges which I would get from vtkExtractEdges(). However, I I have not worked out how to do this with an Unstructured Grid. I expect that this is rather simple. Any hints would be appreciated.

You just need to run a Geometry filter before your edge extraction. That way, you get a polydata from your vtkUnstructuredGrid.