X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FHEXABLOCK%2FHexDocument.hxx;h=1f9e49eb039e9fbb180602f903cac61b73674ab4;hb=167be4931bccbbe01e53313d18a9d3dd1484ecb4;hp=9a2307d76026a9019f539162043f5dce93d2ea7a;hpb=9f38d30a4881892bfae2dd94a5f67c49368205e6;p=modules%2Fhexablock.git diff --git a/src/HEXABLOCK/HexDocument.hxx b/src/HEXABLOCK/HexDocument.hxx old mode 100755 new mode 100644 index 9a2307d..1f9e49e --- a/src/HEXABLOCK/HexDocument.hxx +++ b/src/HEXABLOCK/HexDocument.hxx @@ -1,12 +1,12 @@ // class : Document -// Copyright (C) 2009-2013 CEA/DEN, EDF R&D +// Copyright (C) 2009-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -26,6 +26,8 @@ #include "Hex_defines.hxx" #include "HexEltBase.hxx" +#include + #ifdef WIN32 #ifdef max #undef max @@ -107,11 +109,8 @@ public : Elements* disconnectVertex (Hexa* maille, Vertex* noeud); Elements* disconnectEdges (Hexas thexas, Edges edges); - Elements* replace (Quads pattern, Vertex* p1, Vertex* c1, - Vertex* p2, Vertex* c2, Vertex* p3, Vertex* c3); - - Elements* replaceHexas (Quads pattern, Quads cible, Vertex* p1, Vertex* c1, - Vertex* p2, Vertex* c2, Vertex* p3, Vertex* c3); + Elements* replace (Quads pattern, Quads cible, Vertex* p1, Vertex* c1, + Vertex* p2, Vertex* c2); int mergeVertices (Vertex* v1, Vertex* v2); int mergeEdges (Edge* e1, Edge* e2, Vertex* v1, Vertex* v2); @@ -159,6 +158,7 @@ public : Group* getGroup (int nro); Law* getLaw (int nro); Propagation* getPropagation (int nro); + cpchar getFirstExplicitShape(); // ----------------- find Vertex* findVertex (double vx, double vy, double vz); @@ -304,6 +304,18 @@ public : void clearAssoEdges (); void clearAssoQuads (); + // PERIMES + Elements* replaceHexa (Quads pattern, Vertex* p1, Vertex* c1, Vertex* p2, + Vertex* c2, Vertex* p3, Vertex* c3); + Elements* replace (Quads pattern, Vertex* p1, Vertex* c1, Vertex* p2, + Vertex* c2, Vertex* p3, Vertex* c3) + { return replaceHexa (pattern, p1, c1, p2, c2, p3, c3); } + + Elements* replaceHexas (Quads pattern, Quads cible, Vertex* p1, Vertex* c1, + Vertex* p2, Vertex* c2, Vertex* p3, Vertex* c3) + { return replace (pattern, cible, p1, c1, p2, c2); } + + public: ~Document (); @@ -331,8 +343,8 @@ public: void reorderQuads (); // --------------------------------------------------- Evols Hexa5 - cpchar getNextName (EnumElt type, string& name); - string getNextName (EnumElt type); + cpchar getNextName (EnumElt type, std::string& name); + std::string getNextName (EnumElt type); virtual char* makeVarName (char* name); void lockDump();