ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/aster/src/mgopt_posttraitement.h
Revision: 629
Committed: Wed Jan 14 21:25:18 2015 UTC (10 years, 7 months ago) by nana
Content type: text/plain
File size: 3167 byte(s)
Log Message:
Methodologie de lissage

File Contents

# Content
1 //---------------------------------------------------------------------------
2
3 #ifndef lissageH
4 #define lissageH
5
6 #ifdef WINDOWS_VERSION
7 #ifdef BUILT_DLL_OPTIMISATION
8 #define DLLPORTOPTIMISATION __declspec(dllexport)
9 #else
10 #define DLLPORTOPTIMISATION __declspec(dllimport)
11 #endif
12 #else
13 #define DLLPORTOPTIMISATION
14 #endif
15
16 #include <vector>
17 #include <tpl_map_entite.h>
18 #include <string>
19 #include "ot_parametres.h"
20
21 class DLLPORTOPTIMISATION MGOPT_POSTTRAITEMENT
22 {
23 public :
24 MGOPT_POSTTRAITEMENT();
25 ~MGOPT_POSTTRAITEMENT();
26
27 void posttraite(class FEM_SOLUTION* sol, class MG_GESTIONNAIRE& gest2,char *params);
28 void posttraite(char *fichier);
29 void active_affichage(void (*fonc)(char*));
30 void (*affiche)(char *mess);
31
32
33
34
35 private:
36 void lire_params(char *fichier);
37 void adapte_seuil(class FEM_MAILLAGE* fem,FEM_SOLUTION *solution);
38 class MG_MAILLAGE* extract_skin_par_decoupage(class FEM_SOLUTION* sol,double limit,MG_GESTIONNAIRE& gest2,std::string nom="");
39 class MG_MAILLAGE* extract_skin_maille_entiere(FEM_MAILLAGE* mai,MG_GESTIONNAIRE &gest2);
40 void suppression_peaux_isoles(class MG_MAILLAGE* mgmai);
41 void liste_wij(double w_ij);
42
43 int interpole_segment(class FEM_NOEUD* no1,FEM_NOEUD* no2,std::vector<class MG_NOEUD*> *tab,double limit,class MG_MAILLAGE *mai,int creation=1);
44 int test_du_point_milieu(class MG_NOEUD* no1,MG_NOEUD* no2,class FEM_ELEMENT3* tet);
45 class MG_TRIANGLE_PEAU* insere_triangle(class MG_ELEMENT_TOPOLOGIQUE* topo,class MG_NOEUD *mgnoeud1,class MG_NOEUD *mgnoeud2,class MG_NOEUD *mgnoeud3,class MG_MAILLAGE* mg_maillage,int origine);
46 MG_TRIANGLE_PEAU* recherche_voisin(MG_NOEUD* mg_noeud1,MG_NOEUD* mg_noeud2,MG_TRIANGLE_PEAU* triref);
47 void determine_peau(std::vector<MG_TRIANGLE_PEAU*> * peau);
48 int est_non_manifold(MG_NOEUD* no);
49 double calcul_angle(MG_TRIANGLE_PEAU* ft1,MG_TRIANGLE_PEAU* ft2);
50 std::vector<std::vector<MG_TRIANGLE_PEAU*> *> lst_peau;
51 int extract_skin(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2,int &nbpeau,int &nbmaniare,int &nbmanino,int *mai2_id);
52
53 int lissage_chen2005(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double epsilon, double sigma, int iter_max);
54 int lissage_jiao2012(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, int iter_max);
55 int lissage_chen2008(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double sigma, double gamma, double epsilon, int iter_max);
56 int lissage_nana2015(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, int iter_max);
57 void reactivation(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2);
58 void gain_poids(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2);
59 void conserve(int origine);
60 void copieorigine(class FEM_MAILLAGE* mai);
61 int etat[10];
62 double ponderation_gaussian(double s,double sigma);
63 double ponderation_laplacian(double s,double sigma);
64 double ponderation_elfallahford(double s,double sigma);
65 int affichageactif;
66 void oriente_tri(MG_TRIANGLE_PEAU* tri,double *xyz);
67 MG_NOEUD* get_noeud_peau(FEM_NOEUD* no,MG_MAILLAGE* mai);
68
69
70
71
72 OT_PARAMETRES params;
73
74
75 };
76
77 //---------------------------------------------------------------------------
78 #endif