Skip to content
Snippets Groups Projects
Commit 904a56f3 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

pp

parent c4c6086e
No related branches found
No related tags found
No related merge requests found
......@@ -269,9 +269,9 @@ class MHexahedron20 : public MHexahedron {
}
virtual MVertex *getVertexVTK(int num)
{
static const int map[20] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 13,
9, 16, 18, 19, 17, 10, 12, 14, 15 };
return getVertex(map[num]);
static const int map[20] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 13,
9, 16, 18, 19, 17, 10, 12, 14, 15};
return getVertex(map[num]);
}
virtual int getNumEdgeVertices() const { return 12; }
virtual int getNumEdgesRep(bool curved);
......@@ -380,9 +380,9 @@ class MHexahedron27 : public MHexahedron {
}
virtual MVertex *getVertexVTK(int num)
{
static const int map[27] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 13, 9, 16, 18, 19, 17, 10, 12, 14,15, 22,
23, 21, 24, 20, 25, 26};
return getVertex(map[num]);
static const int map[27] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 13, 9, 16, 18, 19,
17, 10, 12, 14,15, 22, 23, 21, 24, 20, 25, 26};
return getVertex(map[num]);
}
virtual int getNumEdgeVertices() const { return 12; }
virtual int getNumFaceVertices() const { return 6; }
......
......@@ -432,7 +432,7 @@ class MQuadrangleN : public MQuadrangle {
virtual int getTypeForVTK() const
{
if(_order== 2 && _vs.size() + 4 == 9) return 28;
if(_order== 2 && _vs.size() + 4 == 8) return 23;
if(_order== 2 && _vs.size() + 4 == 8) return 23;
return MQuadrangle::getTypeForVTK();
}
virtual void reverse()
......
......@@ -241,8 +241,8 @@ class MTetrahedron10 : public MTetrahedron {
}
virtual MVertex *getVertexVTK(int num)
{
static const int map[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 9, 8};
return getVertex(map[num]);
static const int map[10] = {0, 1, 2, 3, 4, 5, 6, 7, 9, 8};
return getVertex(map[num]);
}
virtual MVertex *getVertexDIFF(int num){ return getVertexBDF(num); }
virtual MVertex *getVertexINP(int num){ return getVertexBDF(num); }
......
......@@ -327,7 +327,10 @@ class MTriangleN : public MTriangle {
Msg::Error("no tag matches a p%d triangle with %d vertices", _order, 3+_vs.size());
return 0;
}
virtual int getTypeForVTK() const { return (_order==2) ? 22 : MTriangle::getTypeForVTK(); }
virtual int getTypeForVTK() const
{
return (_order == 2) ? 22 : MTriangle::getTypeForVTK();
}
virtual void reverse()
{
MVertex *tmp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment