empty mesh constructor for python

This commit is contained in:
Christoph Lehrenfeld 2014-12-11 14:53:39 +00:00
parent df327f8665
commit 50e5b2ef7b

View File

@ -121,6 +121,14 @@ void ExportNetgenMeshing()
{
return self.AddPoint (Point3d(p));
}))
.def("__init__", bp::make_constructor
(FunctionPointer ([]()
{
auto tmp = new Mesh();
return tmp;
})),
"create empty mesh"
)
;