@@ -12,28 +12,28 @@ namespace PyBindImath {
1212
1313// Function to register the Euler class methods
1414 template <class T >
15- void register_euler_methods (pybind11::class_<Imath ::Euler<T>, Imath ::Vec3<T>>& c) {
15+ void register_euler_methods (pybind11::class_<IMATH_NAMESPACE ::Euler<T>, IMATH_NAMESPACE ::Vec3<T>>& c) {
1616 c.def (pybind11::init<>())
17- .def (pybind11::init<const Imath ::Vec3<T>&, typename Imath ::Euler<T>::Order>(), pybind11::arg (" v" ), pybind11::arg (" order" ) = Imath ::Euler<T>::XYZ)
18- .def (pybind11::init<T, T, T, typename Imath ::Euler<T>::Order>(), pybind11::arg (" x" ), pybind11::arg (" y" ), pybind11::arg (" z" ), pybind11::arg (" order" ) = Imath ::Euler<T>::XYZ)
17+ .def (pybind11::init<const IMATH_NAMESPACE ::Vec3<T>&, typename IMATH_NAMESPACE ::Euler<T>::Order>(), pybind11::arg (" v" ), pybind11::arg (" order" ) = IMATH_NAMESPACE ::Euler<T>::XYZ)
18+ .def (pybind11::init<T, T, T, typename IMATH_NAMESPACE ::Euler<T>::Order>(), pybind11::arg (" x" ), pybind11::arg (" y" ), pybind11::arg (" z" ), pybind11::arg (" order" ) = IMATH_NAMESPACE ::Euler<T>::XYZ)
1919 .def (pybind11::self == pybind11::self)
2020 .def (pybind11::self != pybind11::self)
21- .def (" toMatrix33" , &Imath ::Euler<T>::toMatrix33)
22- .def (" toMatrix44" , &Imath ::Euler<T>::toMatrix44)
23- .def (" toQuat" , &Imath ::Euler<T>::toQuat)
24- .def (" order" , &Imath ::Euler<T>::order)
25- .def (" setOrder" , &Imath ::Euler<T>::setOrder)
26- .def (" makeNear" , &Imath ::Euler<T>::makeNear)
27- .def (" extract" , pybind11::overload_cast<const Imath ::Matrix33<T>&>(&Imath ::Euler<T>::extract))
28- .def (" extract" , pybind11::overload_cast<const Imath ::Matrix44<T>&>(&Imath ::Euler<T>::extract))
29- .def (" extract" , pybind11::overload_cast<const Imath ::Quat<T>&>(&Imath ::Euler<T>::extract))
30- .def (" toXYZVector" , &Imath ::Euler<T>::toXYZVector)
31- .def (" __str__" , [](const Imath ::Euler<T>& e) {
21+ .def (" toMatrix33" , &IMATH_NAMESPACE ::Euler<T>::toMatrix33)
22+ .def (" toMatrix44" , &IMATH_NAMESPACE ::Euler<T>::toMatrix44)
23+ .def (" toQuat" , &IMATH_NAMESPACE ::Euler<T>::toQuat)
24+ .def (" order" , &IMATH_NAMESPACE ::Euler<T>::order)
25+ .def (" setOrder" , &IMATH_NAMESPACE ::Euler<T>::setOrder)
26+ .def (" makeNear" , &IMATH_NAMESPACE ::Euler<T>::makeNear)
27+ .def (" extract" , pybind11::overload_cast<const IMATH_NAMESPACE ::Matrix33<T>&>(&IMATH_NAMESPACE ::Euler<T>::extract))
28+ .def (" extract" , pybind11::overload_cast<const IMATH_NAMESPACE ::Matrix44<T>&>(&IMATH_NAMESPACE ::Euler<T>::extract))
29+ .def (" extract" , pybind11::overload_cast<const IMATH_NAMESPACE ::Quat<T>&>(&IMATH_NAMESPACE ::Euler<T>::extract))
30+ .def (" toXYZVector" , &IMATH_NAMESPACE ::Euler<T>::toXYZVector)
31+ .def (" __str__" , [](const IMATH_NAMESPACE ::Euler<T>& e) {
3232 std::stringstream stream;
3333 stream << " Euler(" << e.x << " , " << e.y << " , " << e.z << " , " << e.order () << " )" ;
3434 return stream.str ();
3535 })
36- .def (" __repr__" , [](const Imath ::Euler<T>& e) {
36+ .def (" __repr__" , [](const IMATH_NAMESPACE ::Euler<T>& e) {
3737 std::stringstream stream;
3838 stream << " Euler(" << e.x << " , " << e.y << " , " << e.z << " , " << e.order () << " )" ;
3939 return stream.str ();
@@ -43,7 +43,7 @@ namespace PyBindImath {
4343// Function to register the Euler class in the module
4444 template <class T >
4545 void register_euler (pybind11::module & m, const char * name) {
46- pybind11::class_<Imath ::Euler<T>, Imath ::Vec3<T>> c (m, name);
46+ pybind11::class_<IMATH_NAMESPACE ::Euler<T>, IMATH_NAMESPACE ::Vec3<T>> c (m, name);
4747 register_euler_methods<T>(c);
4848 }
4949
@@ -54,31 +54,31 @@ namespace PyBindImath {
5454
5555 // Enums for Euler Orders
5656 pybind11::enum_<Imath::Euler<float >::Order>(m, " Order" )
57- .value (" XYZ" , Imath ::Euler<float >::XYZ)
58- .value (" XZY" , Imath ::Euler<float >::XZY)
59- .value (" YZX" , Imath ::Euler<float >::YZX)
60- .value (" YXZ" , Imath ::Euler<float >::YXZ)
61- .value (" ZXY" , Imath ::Euler<float >::ZXY)
62- .value (" ZYX" , Imath ::Euler<float >::ZYX)
63- .value (" XZX" , Imath ::Euler<float >::XZX)
64- .value (" XYX" , Imath ::Euler<float >::XYX)
65- .value (" YXY" , Imath ::Euler<float >::YXY)
66- .value (" YZY" , Imath ::Euler<float >::YZY)
67- .value (" ZYZ" , Imath ::Euler<float >::ZYZ)
68- .value (" ZXZ" , Imath ::Euler<float >::ZXZ)
57+ .value (" XYZ" , IMATH_NAMESPACE ::Euler<float >::XYZ)
58+ .value (" XZY" , IMATH_NAMESPACE ::Euler<float >::XZY)
59+ .value (" YZX" , IMATH_NAMESPACE ::Euler<float >::YZX)
60+ .value (" YXZ" , IMATH_NAMESPACE ::Euler<float >::YXZ)
61+ .value (" ZXY" , IMATH_NAMESPACE ::Euler<float >::ZXY)
62+ .value (" ZYX" , IMATH_NAMESPACE ::Euler<float >::ZYX)
63+ .value (" XZX" , IMATH_NAMESPACE ::Euler<float >::XZX)
64+ .value (" XYX" , IMATH_NAMESPACE ::Euler<float >::XYX)
65+ .value (" YXY" , IMATH_NAMESPACE ::Euler<float >::YXY)
66+ .value (" YZY" , IMATH_NAMESPACE ::Euler<float >::YZY)
67+ .value (" ZYZ" , IMATH_NAMESPACE ::Euler<float >::ZYZ)
68+ .value (" ZXZ" , IMATH_NAMESPACE ::Euler<float >::ZXZ)
6969 .export_values ();
7070
7171 // Enums for Axis
7272 pybind11::enum_<Imath::Euler<float >::Axis>(m, " Axis" )
73- .value (" X" , Imath ::Euler<float >::X)
74- .value (" Y" , Imath ::Euler<float >::Y)
75- .value (" Z" , Imath ::Euler<float >::Z)
73+ .value (" X" , IMATH_NAMESPACE ::Euler<float >::X)
74+ .value (" Y" , IMATH_NAMESPACE ::Euler<float >::Y)
75+ .value (" Z" , IMATH_NAMESPACE ::Euler<float >::Z)
7676 .export_values ();
7777
7878 // Enums for InputLayout
7979 pybind11::enum_<Imath::Euler<float >::InputLayout>(m, " InputLayout" )
80- .value (" XYZLayout" , Imath ::Euler<float >::XYZLayout)
81- .value (" IJKLayout" , Imath ::Euler<float >::IJKLayout)
80+ .value (" XYZLayout" , IMATH_NAMESPACE ::Euler<float >::XYZLayout)
81+ .value (" IJKLayout" , IMATH_NAMESPACE ::Euler<float >::IJKLayout)
8282 .export_values ();
8383 }
8484
0 commit comments