Merge branch 'py_exp_ComprAndDelsurfels' into 'master'

Compress and DeleteSurfaceElements to python

export Compress and DeleteSurfaceElement to python. 

Perhaps you prefer having the ElementId-Version of DeleteSurfaceElement instead?

See merge request !26
This commit is contained in:
Joachim Schöberl 2016-12-15 13:03:24 +01:00
commit d3e1f0e8fd

View File

@ -447,6 +447,17 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
return self.AddFaceDescriptor (fd);
}))
.def ("DeleteSurfaceElement", FunctionPointer ([](Mesh & self, int i)
{
return self.DeleteSurfaceElement (i);
}))
.def ("Compress", FunctionPointer ([](Mesh & self)
{
return self.Compress ();
}))
.def ("SetBCName", &Mesh::SetBCName)
.def ("GetBCName", FunctionPointer([](Mesh & self, int bc)->string
{ return self.GetBCName(bc); }))