1 // Copyright (C) 2006-2014 EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef __MESHCUT_UTILS_HXX__
21 #define __MESHCUT_UTILS_HXX__
37 POI1, SEG2, SEG3, TRIA3, TRIA6, QUAD4, QUAD8, TETRA4, TETRA10, PYRAM5, PYRAM13, PENTA6, PENTA15, HEXA8, HEXA20
40 bool estUnTypeMaille(std::string S);
41 void ERREUR(const char* msg);
42 char* string2char(std::string str);
43 std::string int2string(int k);
44 float char2float(const char* ch);
45 std::string float2string(float f);
46 bool appartient(std::string e, std::string tableau[], int taille);
47 float arrondi(float x);
48 int numNoeudPointe(std::string b1, std::string b2, std::string b3);
49 std::string strip(std::string S);
50 std::string entierSur10_g(int i);
51 std::string entierSur10_d(int i);
52 std::string typeEnsight(std::string type);
53 int Nnoeuds(TYPE_MAILLE type);
54 int NnoeudsGeom(TYPE_MAILLE type);
55 int codeGMSH(std::string type);
56 std::string floatEnsight(float x);
57 bool typeComplexe(std::string type);
58 std::string ASTER8(std::string s);
59 float dObservateur(float a, float b, float c);
61 int copieFichier(std::string source, std::string cible);
62 med_geometry_type InstanceMGE(TYPE_MAILLE TYPE);
64 TYPE_MAILLE typeMaille(std::string type);
65 std::string MGE2string(med_geometry_type MGE);
66 std::string TM2string(TYPE_MAILLE MGE);
67 TYPE_MAILLE string2TM(std::string stm);
68 std::string coordIndex_ILS(TYPE_MAILLE tm);
69 std::string coordIndex_IFS(TYPE_MAILLE tm);
70 std::string SIGNE(double x);
71 void champType(std::string type, med_entity_type MEM, med_geometry_type MGE, med_idt fid, med_idt fidout,
72 char *maa, char *nomChamp, char *nomChampMoy, med_field_type typeChamp, char *compChamp,
73 char *unitChamp, med_int nCompChamp, std::map<std::string, int> REFGAUSS, int ichamp);
74 std::string nomMaille(TYPE_MAILLE tm, int nl);
75 bool appartientVN(int n, std::vector<int> V);
76 float distance2(float x1, float y1, float z1, float x2, float y2, float z2);
77 void conversionCNX(int *CNXtm, TYPE_MAILLE tm, int N);