-
Notifications
You must be signed in to change notification settings - Fork 10
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
Adding Eigen::Affine3d #13
Comments
You'd need to do 2 things:
Note: for the declaration of ctypedef int Affine "Affine" I think @haudren tried this or something related in the past as well (but I might be remembering wrong) |
@gergondet : Yes I tried to use those things in the past, but it was in a bit more complex situation. Here you are in a typical "bind an enum" case. Thus you can use any of the following things: cdef extern int one "eins", two "zwei"
cdef extern float three "drei"
cdef struct spam "SPAM":
int i "eye"
cdef enum surprise "inquisition":
first "alpha"
second "beta" = 3 (taken from here ) I would recommend going with the third style, as it neatly maps the Python from the C++ (and nobody expects the Spanish inquisition). Note that the |
I'm thinking of adding Eigen::Affine3d https://github.com/RLovelett/eigen/blob/master/Eigen/src/Geometry/Transform.h to this, could you advise me on where I'll need to make changes?
The text was updated successfully, but these errors were encountered: