Adding and wrapping a custom namespace within VTK

You can use custom constructors, the Python wrappers handle them just fine. If you want to use them, then just don’t derive your class from vtkObject. The restriction against custom constructors has everything to do with vtkObject::New() and nothing to do with wrapping.

Edit: vtkVariant is a good example of a class that has many custom constructors.

1 Like