mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
Element2D exported to Python
This commit is contained in:
parent
39ae75500a
commit
2f4ff3ab2b
@ -114,7 +114,18 @@ void ExportNetgenMeshing()
|
||||
return li;
|
||||
}))
|
||||
;
|
||||
|
||||
|
||||
bp::class_<Element2d>("Element2D")
|
||||
.add_property("index", &Element2d::GetIndex, &Element2d::SetIndex)
|
||||
.add_property("vertices",
|
||||
FunctionPointer([](const Element2d & self) -> bp::list
|
||||
{
|
||||
bp::list li;
|
||||
for (int i = 0; i < self.GetNV(); i++)
|
||||
li.append(self[i]);
|
||||
return li;
|
||||
}))
|
||||
;
|
||||
ExportArray<Element>();
|
||||
ExportArray<Element2d>();
|
||||
ExportArray<MeshPoint,PointIndex::BASE,PointIndex>();
|
||||
|
Loading…
Reference in New Issue
Block a user