Version: 9.16.0
MeshCut_Utils.hxx
Go to the documentation of this file.
1// Copyright (C) 2006-2026 CEA, EDF
2//
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.
7//
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.
12//
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
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef __MESHCUT_UTILS_HXX__
21#define __MESHCUT_UTILS_HXX__
22
23#include <med.h>
24
25#include <string>
26#include <vector>
27#include <map>
28
29namespace MESHCUT
30 {
31
33 {
35 };
36
37 bool estUnTypeMaille(std::string S);
38 void ERREUR(const char* msg);
39 char* string2char(std::string str);
40 std::string int2string(int k);
41 float char2float(const char* ch);
42 std::string float2string(float f);
43 bool appartient(std::string e, std::string tableau[], int taille);
44 float arrondi(float x);
45 int numNoeudPointe(std::string b1, std::string b2, std::string b3);
46 std::string strip(std::string S);
47 std::string entierSur10_g(int i);
48 std::string entierSur10_d(int i);
49 std::string typeEnsight(std::string type);
50 int Nnoeuds(TYPE_MAILLE type);
51 int NnoeudsGeom(TYPE_MAILLE type);
52 int codeGMSH(std::string type);
53 std::string floatEnsight(float x);
54 bool typeComplexe(std::string type);
55 std::string ASTER8(std::string s);
56 float dObservateur(float a, float b, float c);
57
58 int copieFichier(std::string source, std::string cible);
59 med_geometry_type InstanceMGE(TYPE_MAILLE TYPE);
60 int salome_chrono();
61 TYPE_MAILLE typeMaille(std::string type);
62 std::string MGE2string(med_geometry_type MGE);
63 std::string TM2string(TYPE_MAILLE MGE);
64 TYPE_MAILLE string2TM(std::string stm);
65 std::string coordIndex_ILS(TYPE_MAILLE tm);
66 std::string coordIndex_IFS(TYPE_MAILLE tm);
67 std::string SIGNE(double x);
68 void champType(std::string type, med_entity_type MEM, med_geometry_type MGE, med_idt fid, med_idt fidout,
69 char *maa, char *nomChamp, char *nomChampMoy, med_field_type typeChamp, char *compChamp,
70 char *unitChamp, med_int nCompChamp, std::map<std::string, int> REFGAUSS, int ichamp);
71 std::string nomMaille(TYPE_MAILLE tm, int nl);
72 bool appartientVN(int n, std::vector<int> V);
73 float distance2(float x1, float y1, float z1, float x2, float y2, float z2);
74 void conversionCNX(med_int *CNXtm, TYPE_MAILLE tm, int N);
75
76 }
77
78#endif
Definition: MeshCut_Carre.hxx:26
float distance2(float x1, float y1, float z1, float x2, float y2, float z2)
Definition: MeshCut_Utils.cxx:1030
TYPE_MAILLE typeMaille(std::string type)
Definition: MeshCut_Utils.cxx:598
std::string int2string(int k)
Definition: MeshCut_Utils.cxx:67
bool estUnTypeMaille(std::string S)
Definition: MeshCut_Utils.cxx:35
std::string typeEnsight(std::string type)
Definition: MeshCut_Utils.cxx:184
std::string ASTER8(std::string s)
Definition: MeshCut_Utils.cxx:475
int codeGMSH(std::string type)
Definition: MeshCut_Utils.cxx:399
int copieFichier(std::string source, std::string cible)
Definition: MeshCut_Utils.cxx:517
std::string MGE2string(med_geometry_type MGE)
Definition: MeshCut_Utils.cxx:635
std::string entierSur10_g(int i)
Definition: MeshCut_Utils.cxx:132
int NnoeudsGeom(TYPE_MAILLE type)
Definition: MeshCut_Utils.cxx:312
void ERREUR(const char *msg)
Definition: MeshCut_Utils.cxx:47
std::string float2string(float f)
Definition: MeshCut_Utils.cxx:79
void champType(std::string type, med_entity_type MEM, med_geometry_type MGE, med_idt fid, med_idt fidout, char *maa, char *nomChamp, char *nomChampMoy, med_field_type typeChamp, char *compChamp, char *unitChamp, med_int nCompChamp, std::map< std::string, int > REFGAUSS, int ichamp)
Definition: MeshCut_Utils.cxx:826
TYPE_MAILLE
Definition: MeshCut_Utils.hxx:33
@ QUAD8
Definition: MeshCut_Utils.hxx:34
@ SEG3
Definition: MeshCut_Utils.hxx:34
@ QUAD4
Definition: MeshCut_Utils.hxx:34
@ PYRAM5
Definition: MeshCut_Utils.hxx:34
@ HEXA20
Definition: MeshCut_Utils.hxx:34
@ SEG2
Definition: MeshCut_Utils.hxx:34
@ PYRAM13
Definition: MeshCut_Utils.hxx:34
@ TETRA10
Definition: MeshCut_Utils.hxx:34
@ POI1
Definition: MeshCut_Utils.hxx:34
@ TRIA6
Definition: MeshCut_Utils.hxx:34
@ HEXA8
Definition: MeshCut_Utils.hxx:34
@ PENTA6
Definition: MeshCut_Utils.hxx:34
@ PENTA15
Definition: MeshCut_Utils.hxx:34
@ TETRA4
Definition: MeshCut_Utils.hxx:34
@ TRIA3
Definition: MeshCut_Utils.hxx:34
TYPE_MAILLE string2TM(std::string stm)
Definition: MeshCut_Utils.cxx:711
std::string entierSur10_d(int i)
Definition: MeshCut_Utils.cxx:158
std::string strip(std::string S)
Definition: MeshCut_Utils.cxx:123
bool typeComplexe(std::string type)
Definition: MeshCut_Utils.cxx:451
int Nnoeuds(TYPE_MAILLE type)
Definition: MeshCut_Utils.cxx:225
med_geometry_type InstanceMGE(TYPE_MAILLE TYPE)
Definition: MeshCut_Utils.cxx:536
int salome_chrono()
Definition: MeshCut_Utils.cxx:593
float dObservateur(float a, float b, float c)
Distance à laquelle doit se tenir l'observateur sur un axe pour voir sous 90° un objet centré de dime...
Definition: MeshCut_Utils.cxx:512
bool appartientVN(int n, std::vector< int > V)
Definition: MeshCut_Utils.cxx:1018
std::string SIGNE(double x)
Definition: MeshCut_Utils.cxx:816
char * string2char(std::string str)
Definition: MeshCut_Utils.cxx:53
float arrondi(float x)
Definition: MeshCut_Utils.cxx:95
std::string coordIndex_IFS(TYPE_MAILLE tm)
Definition: MeshCut_Utils.cxx:782
int numNoeudPointe(std::string b1, std::string b2, std::string b3)
Definition: MeshCut_Utils.cxx:105
bool appartient(std::string e, std::string tableau[], int taille)
Definition: MeshCut_Utils.cxx:87
std::string coordIndex_ILS(TYPE_MAILLE tm)
Definition: MeshCut_Utils.cxx:748
std::string floatEnsight(float x)
Definition: MeshCut_Utils.cxx:438
std::string nomMaille(TYPE_MAILLE tm, int nl)
Definition: MeshCut_Utils.cxx:1013
void conversionCNX(med_int *CNXtm, TYPE_MAILLE tm, int N)
Conversion HL-MED d'une table de connectivités.
Definition: MeshCut_Utils.cxx:1038
float char2float(const char *ch)
Definition: MeshCut_Utils.cxx:74
std::string TM2string(TYPE_MAILLE MGE)
Definition: MeshCut_Utils.cxx:674