Salome HOME
Replace oe by ?
[modules/smesh.git] / src / Tools / MeshCut / MeshCut_Utils.hxx
1 #ifndef __MESHCUT_UTILS_HXX__
2 #define __MESHCUT_UTILS_HXX__
3
4 extern "C"
5   {
6 #include <med.h>
7   }
8
9 #include <string>
10 #include <vector>
11 #include <map>
12
13 namespace MESHCUT
14   {
15
16     enum TYPE_MAILLE
17     {
18       POI1, SEG2, SEG3, TRIA3, TRIA6, QUAD4, QUAD8, TETRA4, TETRA10, PYRAM5, PYRAM13, PENTA6, PENTA15, HEXA8, HEXA20
19     };
20
21     bool estUnTypeMaille(std::string S);
22     void ERREUR(const char* msg);
23     char* string2char(std::string str);
24     std::string int2string(int k);
25     float char2float(const char* ch);
26     std::string float2string(float f);
27     bool appartient(std::string e, std::string tableau[], int taille);
28     float arrondi(float x);
29     int numNoeudPointe(std::string b1, std::string b2, std::string b3);
30     std::string strip(std::string S);
31     std::string entierSur10_g(int i);
32     std::string entierSur10_d(int i);
33     std::string typeEnsight(std::string type);
34     int Nnoeuds(TYPE_MAILLE type);
35     int NnoeudsGeom(TYPE_MAILLE type);
36     int codeGMSH(std::string type);
37     std::string floatEnsight(float x);
38     bool typeComplexe(std::string type);
39     std::string ASTER8(std::string s);
40     float dObservateur(float a, float b, float c);
41
42     int copieFichier(std::string source, std::string cible);
43     med_geometry_type InstanceMGE(TYPE_MAILLE TYPE);
44     int chrono();
45     TYPE_MAILLE typeMaille(std::string type);
46     std::string MGE2string(med_geometry_type MGE);
47     std::string TM2string(TYPE_MAILLE MGE);
48     TYPE_MAILLE string2TM(std::string stm);
49     std::string coordIndex_ILS(TYPE_MAILLE tm);
50     std::string coordIndex_IFS(TYPE_MAILLE tm);
51     std::string SIGNE(double x);
52     void champType(std::string type, med_entity_type MEM, med_geometry_type MGE, med_idt fid, med_idt fidout,
53                    char *maa, char *nomChamp, char *nomChampMoy, med_field_type typeChamp, char *compChamp,
54                    char *unitChamp, med_int nCompChamp, std::map<std::string, int> REFGAUSS, int ichamp);
55     std::string nomMaille(TYPE_MAILLE tm, int nl);
56     bool appartientVN(int n, std::vector<int> V);
57     float distance2(float x1, float y1, float z1, float x2, float y2, float z2);
58     void conversionCNX(int *CNXtm, TYPE_MAILLE tm, int N);
59
60   }
61
62 #endif