How to correctly construct 3D elements with a square base in gmsh Api?
Good afternoon dear developers and gmsh community. How can I correctly construct 3D elements using the API with a square base from a triangulated mesh? Specifically, I am interested in pyramids and hexahedrons. I'm working in C# and the following code crashes my application. Before constructing the 3D elements, I call gmshModelMeshRecombine. After calling gmshModelMeshGenerate(3) I get an error. After calling gmshLoggerGetLastError I get the error text "Pyramid top vertex already classified on volume 1 (!= 2) - non-manifold quad boundaries not supported yet". After calling gmshModelRemove() my application crashes. If I change Mesh.Algorithm3D, the code will work correctly, but only tetrahedrons will be generated. Are there other ways to generate 3D elements with a square base without calling gmshModelMeshRecombine? source.cs