VSG Python Bindings #1498
-
Are there plans for Python bindings to VSG? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
I don't have any personal plans. I don't have C++/Python expertise so can't comment on how difficult this would be to add. I also don't know of work in the community related to Python support, but the nature of open source doesn't mean that folks aren't tinkering away. Do you know of other C++ projects that have been able to create and maintain Python bindings? What tools are available to assist this? |
Beta Was this translation helpful? Give feedback.
-
Yes the chrono::project is a C++ project and has also Python bindings. There is also a Python binding to Qt. Since we plan to replace Irrlicht3d with VSG, it would be great to have also a Python binding. I am not a Python expert, but it is quite popular in Universities. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure the VSG lends itself to having Python bindings as you're still in charge of a lot of the kinds of things that people use Python to avoid. If it were to go ahead anyway, based on my experience of using several different Python/C++ interop systems, I think it would be silly to use anything other than pybind11. |
Beta Was this translation helpful? Give feedback.
-
Another approach that I have wondered about is whether we can generated some level of 3rd party language integration via the read/write mechanism built into the VSG. The VSG doesn't have the method calls reflected in this interface, but if it's sufficient to just read members and then write members then sync in one "write" operation then some basic level of being able to interrogate and then set the scene should be possible. |
Beta Was this translation helpful? Give feedback.
I'm not sure the VSG lends itself to having Python bindings as you're still in charge of a lot of the kinds of things that people use Python to avoid.
If it were to go ahead anyway, based on my experience of using several different Python/C++ interop systems, I think it would be silly to use anything other than pybind11.