Commit f65b01c
authored
Complete pybind11 wrappings for V2, V3, V4, and add pyBindImathTest (AcademySoftwareFoundation#472)
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 <cary@ilm.com>1 parent 2859857 commit f65b01c
9 files changed
Lines changed: 11326 additions & 101 deletions
File tree
- .github/workflows
- src/pybind11
- PyBindImathTest
- PyBindImath
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | | - | |
| 124 | + | |
| 125 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments