Skip to content
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

Complete pybind11 wrappings for V2, V3, V4, and add pyBindImathTest #472

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cary-ilm
Copy link
Member

@cary-ilm cary-ilm commented Mar 5, 2025

This does three things:

  1. Completes the vector class wrapping, so all previous functionality is supported, including interoperability between vector classes (i.e. V2i + V2f), and interoperability between vectors and tuples and lists (i.e. V2i(1,2) + [1,2]).

  2. Adds src/pybind11/PyBindImathTest/pyBindImathTest, which is a duplicate of the original test script for the Boost-based bindings, with the not-yet-implemented features commented out for now.

  3. Adds wrappings for miscellaneous functions in PyImathFun.cpp, which are needed by the vector tests.

The vector class tests pass, so the pybind11 functionality is now consistent with existing Boost-based bindings.

All new wrappings should un-comment out the appropriate tests and validate that they pass.

This does three things:

1. Completes the vector class wrapping, so all previous functionality
   is supported, including interoperability between vector classes
   (i.e. V2i + V2f), and interoperability between vectors and tuples
   and lists (i.e. V2i(1,2) + [1,2]).

2. Adds src/pybind11/PyBindImathTest/pyBindImathTest, which is a
   duplicate of the original test script for the Boost-based bindings,
   with the not-yet-implemented features commented out for now.

3. Adds wrappings for miscellaneous functions in PyImathFun.cpp, which
   are needed by the vector tests.

The vector class tests pass, so the pybind11 functionality is now
consistent with existing Boost-based bindings.

All new wrappings should un-comment out the appropriate tests and
validate that they pass.

Signed-off-by: Cary Phillips <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant