mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +05:00
cd2names to python export
This commit is contained in:
parent
dd72bf984a
commit
e7e90d1a68
@ -402,6 +402,8 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
py::return_value_policy::reference)
|
py::return_value_policy::reference)
|
||||||
.def("GetNFaceDescriptors", &Mesh::GetNFD)
|
.def("GetNFaceDescriptors", &Mesh::GetNFD)
|
||||||
|
|
||||||
|
.def("GetNCD2Names", &Mesh::GetNCD2Names)
|
||||||
|
|
||||||
|
|
||||||
.def("__getitem__", FunctionPointer ([](const Mesh & self, PointIndex pi)
|
.def("__getitem__", FunctionPointer ([](const Mesh & self, PointIndex pi)
|
||||||
{
|
{
|
||||||
@ -445,6 +447,9 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
.def ("GetMaterial", FunctionPointer([](Mesh & self, int domnr)
|
.def ("GetMaterial", FunctionPointer([](Mesh & self, int domnr)
|
||||||
{ return string(self.GetMaterial(domnr)); }))
|
{ return string(self.GetMaterial(domnr)); }))
|
||||||
|
|
||||||
|
.def ("GetCD2Name", &Mesh::GetCD2Name)
|
||||||
|
.def("SetCD2Name", &Mesh::SetCD2Name)
|
||||||
|
|
||||||
.def ("AddPointIdentification", [](Mesh & self, py::object pindex1, py::object pindex2, int identnr, int type)
|
.def ("AddPointIdentification", [](Mesh & self, py::object pindex1, py::object pindex2, int identnr, int type)
|
||||||
{
|
{
|
||||||
if(py::extract<PointIndex>(pindex1).check() && py::extract<PointIndex>(pindex2).check())
|
if(py::extract<PointIndex>(pindex1).check() && py::extract<PointIndex>(pindex2).check())
|
||||||
|
Loading…
Reference in New Issue
Block a user