boost::python 1.60 fixes

This commit is contained in:
Matthias Hochsteger 2016-01-29 15:04:57 +01:00
parent f23d0debb1
commit fc50af5462
2 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,7 @@ DLL_HEADER void ExportCSG()
([] (double x, double y) { return Vec<2>(x,y); }));
bp::register_ptr_to_python<shared_ptr<SPSolid>>();
bp::class_<SPSolid, shared_ptr<SPSolid>, boost::noncopyable> ("Solid", bp::no_init)
.def ("__str__", &ToString<SPSolid>)
.def ("__add__", FunctionPointer( [] ( shared_ptr<SPSolid> self, shared_ptr<SPSolid> other) { return make_shared<SPSolid> (SPSolid::UNION, self, other); }))

View File

@ -296,6 +296,7 @@ DLL_HEADER void ExportNetgenMeshing()
;
bp::register_ptr_to_python<shared_ptr<Mesh>>();
bp::class_<Mesh,shared_ptr<Mesh>,boost::noncopyable>("Mesh", bp::no_init)
// .def(bp::init<>("create empty mesh"))