mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
Exposed Alfeld splits
This commit is contained in:
parent
6b346926ec
commit
890f59b8b4
@ -1350,7 +1350,15 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
||||
}), py::arg("adaptive")=false, py::call_guard<py::gil_scoped_release>())
|
||||
|
||||
.def("ZRefine", &Mesh::ZRefine)
|
||||
|
||||
.def("Split2Tets", &Mesh::Split2Tets)
|
||||
.def ("SplitAlfeld", FunctionPointer
|
||||
([](Mesh & self)
|
||||
{
|
||||
NgLock meshlock (self.MajorMutex(), true);
|
||||
Refinement & ref = const_cast<Refinement&> (self.GetGeometry()->GetRefinement());
|
||||
::netgen::HPRefinement (self, &ref, SPLIT_ALFELD, 1, 0.5, true, true);
|
||||
}
|
||||
), py::call_guard<py::gil_scoped_release>())
|
||||
.def ("SecondOrder", [](Mesh & self)
|
||||
{
|
||||
self.GetGeometry()->GetRefinement().MakeSecondOrder(self);
|
||||
|
Loading…
Reference in New Issue
Block a user