diff --git a/libsrc/csg/python_csg.cpp b/libsrc/csg/python_csg.cpp index df164f21..8977ead0 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -210,6 +210,7 @@ DLL_HEADER void ExportCSG() ([] (double x, double y) { return Vec<2>(x,y); })); + bp::register_ptr_to_python>(); bp::class_, boost::noncopyable> ("Solid", bp::no_init) .def ("__str__", &ToString) .def ("__add__", FunctionPointer( [] ( shared_ptr self, shared_ptr other) { return make_shared (SPSolid::UNION, self, other); })) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index a9ed0a72..bf557275 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -296,6 +296,7 @@ DLL_HEADER void ExportNetgenMeshing() ; + bp::register_ptr_to_python>(); bp::class_,boost::noncopyable>("Mesh", bp::no_init) // .def(bp::init<>("create empty mesh"))