mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
fixes thanks to etromme
This commit is contained in:
parent
977c358d7b
commit
924edbb3ad
@ -81,7 +81,7 @@ NGX_INLINE DLL_HEADER Ng_Element Ngx_Mesh :: GetElement<1> (size_t nr) const
|
||||
if (mesh->GetDimension() == 3)
|
||||
ret.mat = mesh->GetCD2NamePtr(el.edgenr-1);
|
||||
else
|
||||
ret.mat = nullptr;
|
||||
ret.mat = mesh->GetMaterialPtr(el.si);
|
||||
}
|
||||
|
||||
ret.points.num = el.GetNP();
|
||||
|
@ -213,6 +213,13 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
||||
(*instance)[i] = py::extract<PointIndex>(vertices[i])();
|
||||
instance->SetIndex(index);
|
||||
}
|
||||
else if (py::len(vertices) == 5)
|
||||
{
|
||||
new (instance) Element(PYRAMID);
|
||||
for (int i = 0; i < 5; i++)
|
||||
(*instance)[i] = py::extract<PointIndex>(vertices[i])();
|
||||
instance->SetIndex(index);
|
||||
}
|
||||
else if (py::len(vertices) == 6)
|
||||
{
|
||||
new (instance) Element(PRISM);
|
||||
|
Loading…
Reference in New Issue
Block a user