mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-14 15:10:34 +05:00
boost::python 1.60 fixes
This commit is contained in:
parent
f23d0debb1
commit
fc50af5462
@ -210,6 +210,7 @@ DLL_HEADER void ExportCSG()
|
|||||||
([] (double x, double y) { return Vec<2>(x,y); }));
|
([] (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)
|
bp::class_<SPSolid, shared_ptr<SPSolid>, boost::noncopyable> ("Solid", bp::no_init)
|
||||||
.def ("__str__", &ToString<SPSolid>)
|
.def ("__str__", &ToString<SPSolid>)
|
||||||
.def ("__add__", FunctionPointer( [] ( shared_ptr<SPSolid> self, shared_ptr<SPSolid> other) { return make_shared<SPSolid> (SPSolid::UNION, self, other); }))
|
.def ("__add__", FunctionPointer( [] ( shared_ptr<SPSolid> self, shared_ptr<SPSolid> other) { return make_shared<SPSolid> (SPSolid::UNION, self, other); }))
|
||||||
|
@ -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)
|
bp::class_<Mesh,shared_ptr<Mesh>,boost::noncopyable>("Mesh", bp::no_init)
|
||||||
// .def(bp::init<>("create empty mesh"))
|
// .def(bp::init<>("create empty mesh"))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user