From a18ac184b2e957ae8bae475c7cc5022110f52287 Mon Sep 17 00:00:00 2001 From: Gerhard Kitzler Date: Thu, 11 Aug 2016 17:28:55 +0200 Subject: [PATCH] Python support for PRISM --- libsrc/meshing/python_mesh.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index c5438103..9413446c 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -126,6 +126,14 @@ DLL_HEADER void ExportNetgenMeshing() tmp->SetIndex(index); return tmp; } + if (bp::len(vertices) == 6) + { + Element * tmp = new Element(PRISM); + for (int i = 0; i < 6; i++) + (*tmp)[i] = bp::extract(vertices[i]); + tmp->SetIndex(index); + return tmp; + } if (bp::len(vertices) == 8) { Element * tmp = new Element(HEX);