-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce next-generation Python bindings using nanobind
#659
base: devel
Are you sure you want to change the base?
Conversation
1b44305
to
492fda8
Compare
For your information, after a quick test based on https://stackoverflow.com/questions/8233252/boostpython-and-weak-ptr-stuff-disappearing, nanobind seems as bad as boost python to handle weak pointers. |
Thanks, this is good to know in the future. Almost certainly, weak pointers will be an object management nightmare whatever the bindings generator is. Anyhow, there is a definite advantage of upgrading our bindings, namely simplifying maintenance, getting modern features (and up-to-date docs), eliminating the Boost.Python dependency, ability to use the Python 3.12+ stable ABI - which are things Boost.Python simply doesn't have and never will 😃 |
250c871
to
fca6511
Compare
Add more to Transform3s binding
fca6511
to
8703fff
Compare
This (draft) pull request adds a second set of Python bindings (under the provisional module
coal.v2
, with extensioncoal_pywrap_v2
) using the modern nanobind bindings generator.The new nanobind-based API can be imported as a replacement for the old one by importing:
Task checklist
python/broadphase/broadphase.cc
)python/gjk.cc
)python/math.cc
)python/distance.cc
)python/octree.cc
)python/collision.cc
)python/collision-geometries.cc
)CollisionObject