mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Merge branch 'quickfix_1d_index' into 'master'
export edgenr to python as well See merge request !21
This commit is contained in:
commit
f70edcb247
@ -201,6 +201,8 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
for (int i = 0; i < 2; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
(*instance)[i] = py::extract<PointIndex>(vertices[i])();
|
(*instance)[i] = py::extract<PointIndex>(vertices[i])();
|
||||||
instance -> si = index;
|
instance -> si = index;
|
||||||
|
// needed for codim2 in 3d
|
||||||
|
instance -> edgenr = index;
|
||||||
if (len(surfaces))
|
if (len(surfaces))
|
||||||
{
|
{
|
||||||
instance->surfnr1 = py::extract<int>(surfaces[0])();
|
instance->surfnr1 = py::extract<int>(surfaces[0])();
|
||||||
@ -231,8 +233,12 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
}))
|
}))
|
||||||
.def_property_readonly("index", FunctionPointer([](const Segment &self) -> size_t
|
.def_property_readonly("index", FunctionPointer([](const Segment &self) -> size_t
|
||||||
{
|
{
|
||||||
return self.edgenr;
|
return self.si;
|
||||||
}))
|
}))
|
||||||
|
.def_property_readonly("edgenr", FunctionPointer([](const Segment & self) -> size_t
|
||||||
|
{
|
||||||
|
return self.edgenr;
|
||||||
|
}))
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user