diff --git a/Geo/MHexahedron.h b/Geo/MHexahedron.h index ce71e918c7f42f912f7b769e1d1f410bb2681183..7fa2f57ac7fca046202fbea5c5a796e3d9a114e7 100644 --- a/Geo/MHexahedron.h +++ b/Geo/MHexahedron.h @@ -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; } diff --git a/Geo/MQuadrangle.h b/Geo/MQuadrangle.h index e906007750b1975141aa72f861e08ab2170c4f14..c0c27727d4e46960cdb4d15577a270092eb6c4bc 100644 --- a/Geo/MQuadrangle.h +++ b/Geo/MQuadrangle.h @@ -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() diff --git a/Geo/MTetrahedron.h b/Geo/MTetrahedron.h index 537a094922a5e72169f57db69d77ec7e3cb81c19..f5884bae2b87b473073711222e9af0d0b5b78666 100644 --- a/Geo/MTetrahedron.h +++ b/Geo/MTetrahedron.h @@ -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); } diff --git a/Geo/MTriangle.h b/Geo/MTriangle.h index ff94dd4d87267b33386b84017b19b8d7b5fbe2db..5f7874839aca8582ce276493a8946bb969791890 100644 --- a/Geo/MTriangle.h +++ b/Geo/MTriangle.h @@ -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;