how to construct py::object from MyClass* while MyClass binding is not using pybind11 #3786
qingfengxia
started this conversation in
Ideas
Replies: 1 comment
-
https://stackoverflow.com/questions/54871216/pybind11-return-c-class-with-an-existing-python-binding-to-python |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
vtk is a C++ lib, it has python binding, but it is not written by pybind11. Here I have vtk c++ header, but no access to vtk' python binding code/headers.
In C++ side, I have MyClass as
vtkClassname
, in python I can use the bindiing likevtk.vtkClassname
, without writing pybind11 binding class, is that possible to write code like this below?is that possbile to add code into pybind11.h, in order to do something like this?
Thank you very much
qingfeng
Beta Was this translation helpful? Give feedback.
All reactions