Allow Python path objects for filenames
The different readers (e.g. STL, VTK, etc.) only accept a string path. It would be a good addition to accept path objects from the pathlib
Python standard library.
The following is a minimal example:
from pathlib import Path
import vtk
reader = vtk.vtkSTLReader()
path = Path()
filename = path / "mesh.stl"
reader.SetFileName(filename)
which gives the error:
TypeError: SetFileName argument 1: string or None required