8 #ifndef _PyImathPlane_h_
9 #define _PyImathPlane_h_
12 #define HBOOST_BIND_GLOBAL_PLACEHOLDERS
13 #include <hboost/python.hpp>
20 template <
class T> hboost::python::class_<IMATH_NAMESPACE::Plane3<T> >
register_Plane();
34 static PyObject *
wrap (
const IMATH_NAMESPACE::Plane3<T> &pl);
35 static int convert (PyObject *p, IMATH_NAMESPACE::Plane3<T> *pl);
42 typename hboost::python::return_by_value::apply < IMATH_NAMESPACE::Plane3<T> >
::type converter;
43 PyObject *p = converter (pl);
51 hboost::python::extract <IMATH_NAMESPACE::Plane3f> extractorPf (p);
52 if (extractorPf.check())
55 pl->normal.setValue (e.normal);
56 pl->distance =
T(e.distance);
60 hboost::python::extract <IMATH_NAMESPACE::Plane3d> extractorPd (p);
61 if (extractorPd.check())
64 pl->normal.setValue (e.normal);
65 pl->distance =
T(e.distance);
hboost::python::class_< IMATH_NAMESPACE::Plane3< T > > register_Plane()
static PyObject * wrap(const IMATH_NAMESPACE::Plane3< T > &pl)
GLint GLint GLsizei GLint GLenum GLenum type
Plane3< double > Plane3d
Plane of type double.
Plane3< float > Plane3f
Plane of type float.
static int convert(PyObject *p, IMATH_NAMESPACE::Plane3< T > *pl)