1 %ignore SbPlane::intersect(const SbLine& l, SbVec3f& intersection) const; 2 %ignore SbPlane::intersect(const SbPlane & pl, SbLine & line) const; 3 4 %feature("autodoc", "intersect(SbLine) -> SbVec3f") SbPlane::intersect; 5 %feature("autodoc", "intersect(SbPlane) -> SbLine") SbPlane::intersect; 6 7 %extend SbPlane { __eq__(const SbPlane & u)8 int __eq__(const SbPlane & u) { return *self == u; } __ne__(const SbPlane & u)9 int __ne__(const SbPlane & u) { return *self != u; } 10 intersect(const SbLine & l)11 PyObject * intersect(const SbLine& l) 12 { 13 SbVec3f * point = new SbVec3f; 14 self->intersect(l, *point); 15 return SWIG_NewPointerObj((void *)point, SWIGTYPE_p_SbVec3f, 1); 16 } 17 intersect(const SbPlane & pl)18 PyObject * intersect(const SbPlane & pl) 19 { 20 SbLine * line = new SbLine; 21 self->intersect(pl, *line); 22 return SWIG_NewPointerObj((void *)line, SWIGTYPE_p_SbLine, 1); 23 } 24 } 25 26