Imath icon indicating copy to clipboard operation
Imath copied to clipboard

pybind11 wrappings for Color, Euler, Frustum, Line, Plane, Quat, Shear, Random

Open cary-ilm opened this issue 4 months ago • 0 comments

This completes the wrappings for the non-array Imath classes. The non-array tests in pyBindImathTest.py pass (mostly).

Reminder that the strategy in introducing pybind11 wrappings is to get the current test for the boost-based bindings, src/python/PyImathTest/pyImathTest.py, to execute successfully with the pybind11 bindings. The test has been copied to src/pybind11/PyBindImathTest/pyBindImathTest.py, with the not-yet-succeeding tests commented out, then as the bindings are completed, un-commenting them out to verify the behavior.

A few issues remain:

  • Doc strings still need to be ported
  • Return values from operators are not all correct, even though the tests pass.
  • A few floating-point conversion issues remain as TODO's in the tests

cary-ilm avatar Jun 18 '25 18:06 cary-ilm