From 61479ed2a4cdff10a7b53eb942c37ddb3ab57a5f Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Thu, 25 Sep 2014 11:30:38 +0000 Subject: [PATCH] py --- libsrc/csg/python_csg.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libsrc/csg/python_csg.cpp b/libsrc/csg/python_csg.cpp index 18e42029..59dd4e9c 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -99,8 +99,13 @@ void ExportCSG() bp::scope local_scope(module); - bp::class_> ("Point3d", bp::init()) ; - bp::class_> ("Vec3d", bp::init()) ; + bp::class_> ("Point3d", bp::init()) + .def(bp::self+Vec<3>()) + ; + bp::class_> ("Vec3d", bp::init()) + .def(bp::self+bp::self) + ; + bp::class_, boost::noncopyable> ("Solid", bp::no_init) ;