From 0dbd1c2adee1cb270f172635e2a679af7e10d5ac Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Thu, 4 Jan 2018 15:30:18 +0100 Subject: [PATCH] [MeL] Fix face nodes of hex 20 element. For the face #1 the last node is not 11 but 16. This also corresponds with the edge numbering. --- MeshLib/Elements/HexRule20.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/MeshLib/Elements/HexRule20.cpp b/MeshLib/Elements/HexRule20.cpp index db015b98552..6d546930be5 100644 --- a/MeshLib/Elements/HexRule20.cpp +++ b/MeshLib/Elements/HexRule20.cpp @@ -18,15 +18,13 @@ #include "Line.h" namespace MeshLib { - -const unsigned HexRule20::face_nodes[6][8] = -{ - {0, 3, 2, 1, 11, 10, 9, 8}, // Face 0 - {0, 1, 5, 4, 8, 17, 12, 11}, // Face 1 - {1, 2, 6, 5, 9, 18, 13, 17}, // Face 2 - {2, 3, 7, 6, 10, 19, 14, 18}, // Face 3 - {3, 0, 4, 7, 11, 16, 15, 19}, // Face 4 - {4, 5, 6, 7, 12, 13, 14, 15} // Face 5 +const unsigned HexRule20::face_nodes[6][8] = { + {0, 3, 2, 1, 11, 10, 9, 8}, // Face 0 + {0, 1, 5, 4, 8, 17, 12, 16}, // Face 1 + {1, 2, 6, 5, 9, 18, 13, 17}, // Face 2 + {2, 3, 7, 6, 10, 19, 14, 18}, // Face 3 + {3, 0, 4, 7, 11, 16, 15, 19}, // Face 4 + {4, 5, 6, 7, 12, 13, 14, 15} // Face 5 }; const unsigned HexRule20::edge_nodes[12][3] = -- GitLab