python, shared ptr

This commit is contained in:
Joachim Schoeberl
2014-09-25 20:23:31 +00:00
parent 3b5a612ddf
commit 4dda85ac90
15 changed files with 52 additions and 38 deletions

View File

@@ -84,13 +84,15 @@ void ExportNetgenMeshing()
.def("__str__", &ToString<PointIndex>)
.add_property("nr", &PointIndex::operator int)
;
/*
bp::class_<Point<3>> ("Point")
.def(bp::init<double,double,double>())
;
bp::class_<MeshPoint,bp::bases<Point<3>>>("MeshPoint")
.def(bp::init<Point<3>>())
*/
bp::class_<MeshPoint /* ,bp::bases<Point<3>> */ >("MeshPoint")
// .def(bp::init<Point<3>>())
.add_property("p", FunctionPointer([](const MeshPoint & self)
{
bp::list l;