From c65431c2e49d669c34fc6abf7125a5bb1fd4784f Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 9 May 2018 11:23:06 +0200 Subject: [PATCH] [MeL] Add Tet4 to Tet10 conversion. --- MeshLib/MeshGenerators/QuadraticMeshGenerator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MeshLib/MeshGenerators/QuadraticMeshGenerator.cpp b/MeshLib/MeshGenerators/QuadraticMeshGenerator.cpp index 912da9d70a5..65837ab12b5 100644 --- a/MeshLib/MeshGenerators/QuadraticMeshGenerator.cpp +++ b/MeshLib/MeshGenerators/QuadraticMeshGenerator.cpp @@ -13,6 +13,7 @@ #include "MeshLib/Elements/Hex.h" #include "MeshLib/Elements/Line.h" #include "MeshLib/Elements/Quad.h" +#include "MeshLib/Elements/Tet.h" #include "MeshLib/Elements/Tri.h" #include "MeshLib/MeshEditing/DuplicateMeshComponents.h" #include "MeshLib/Node.h" @@ -58,6 +59,10 @@ std::unique_ptr<MeshLib::Element> createQuadraticElement( { return convertLinearToQuadratic<MeshLib::Tri6>(e); } + if (e.getCellType() == MeshLib::CellType::TET4) + { + return convertLinearToQuadratic<MeshLib::Tet10>(e); + } if (e.getCellType() == MeshLib::CellType::QUAD4) { return convertLinearToQuadratic<MeshLib::Quad8>(e); -- GitLab