Yet more simple python API

Hi folks,

Over this weekend, I prototyped another layer of simple python interface that is a lot closer to pyvista and vedo. Here is a description:

The functional and postfix part are super easy to implement and maintain. Just a matter of registering certain filters and their short names. There was a little bit more work involved in dusting off the representation-views framework and improving it. There is yet more work to be done there such as volume representations, axes, selection etc. I also did not add support for composite datasets so that’s on my list too.

I would love to hear what you think.

2 Likes

Berk, this looks very nice.

This VTK Python API is now very similar to ParaView’s. Maybe this would be confusing for users of both VTK and ParaView simple?

ParaView does

from paraview.simple import *
s = Sphere(Radius=3.0)
Show()

and VTK does

from vtkmodules.simple_api import *
s = sphere(radius=3.0)
s.show()

I don’t have any suggestions here, just noting the similarity