mirror of
https://github.com/NGSolve/netgen.git
synced 2026-05-31 01:06:10 +08:00
fixes thanks to etromme
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user