mirror of
https://github.com/NGSolve/netgen.git
synced 2026-05-31 01:06:10 +08:00
export Mesh.SecondOrder
This commit is contained in:
@@ -237,6 +237,14 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
||||
li.append (py::cast(self[i]));
|
||||
return li;
|
||||
}))
|
||||
.def_property_readonly("points",
|
||||
FunctionPointer ([](const Element & self) -> py::list
|
||||
{
|
||||
py::list li;
|
||||
for (int i = 0; i < self.GetNP(); i++)
|
||||
li.append (py::cast(self[i]));
|
||||
return li;
|
||||
}))
|
||||
;
|
||||
|
||||
py::class_<Element2d>(m, "Element2D")
|
||||
@@ -601,6 +609,15 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
||||
Refinement().Refine(self);
|
||||
}))
|
||||
|
||||
.def ("SecondOrder", FunctionPointer
|
||||
([](Mesh & self)
|
||||
{
|
||||
if (self.GetGeometry())
|
||||
self.GetGeometry()->GetRefinement().MakeSecondOrder(self);
|
||||
else
|
||||
Refinement().MakeSecondOrder(self);
|
||||
}))
|
||||
|
||||
.def ("SetGeometry", FunctionPointer
|
||||
([](Mesh & self, shared_ptr<NetgenGeometry> geo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user