If this is for highlighting an actor then you can also use the outline glow rendering pass.
https://examples.vtk.org/site/Cxx/Rendering/OutlineGlowPass/
If this is for highlighting an actor then you can also use the outline glow rendering pass.
https://examples.vtk.org/site/Cxx/Rendering/OutlineGlowPass/