openexr icon indicating copy to clipboard operation
openexr copied to clipboard

M44d/f missing rotation methods in PyIlmBase

Open scott-wilson opened this issue 9 years ago • 6 comments

I noticed that the M44d and M44f in PyIlmBase are missing the setEulerAngles and setAxisAngle methods that are in the IlmBase matrix classes in the master branch. Is this intentional, or should I try my hand at setting up a pull request?

scott-wilson avatar Dec 08 '15 14:12 scott-wilson

Hey @scott-wilson i want to work on this issue kindly help

mridullpandey avatar Feb 27 '20 01:02 mridullpandey

Honestly, I only have the vaguest idea of where to start. You'll probably want to ask someone with a few more commits under their belt.

scott-wilson avatar Feb 27 '20 02:02 scott-wilson

This requires dealing with boost python, which can be challenging. The best way to approach it is to mimic what's already there. Look at the implementation of a method such as setScale, in PyImathMatrix33.cpp. Copy the various bits of code that implement setScale to implement setEulerAngles. Obviously, the guts of the function will be different, but the overall pattern of the wrapping will be similar. setAxisAngle will be a bit trickier since it takes 2 arguments, a scale and an tuple.

cary-ilm avatar Feb 27 '20 21:02 cary-ilm

@scott-wilson @cary-ilm Hey, if this has not been resolved yet, can I take on this issue?

devansh289 avatar Mar 22 '20 23:03 devansh289

I haven't touched it. From my opinion, it's all yours

scott-wilson avatar Mar 23 '20 00:03 scott-wilson

Fine with me if you'd like to take a stab at it, although as I mention, it requires dealing with boost python, which can be confusing. The best way to approach it is to copy and paste from similar routines.

cary-ilm avatar Mar 23 '20 15:03 cary-ilm