ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/aster/src/mgopt_posttraitement.h
Revision: 798
Committed: Wed Jun 1 14:41:30 2016 UTC (9 years, 3 months ago) by mckenzie
Content type: text/plain
File size: 3557 byte(s)
Log Message:
ajout d'une nouvelle methode de lissage pour le post traitement de l'optimisation topologique.

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_MAILLAGE* fem,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
54 int lissage_chen2005(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double epsilon, double sigma, int iter_max);
55 int lissage_jiao2012(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, int iter_max);
56 int lissage_chen2008(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double sigma, double gamma, double epsilon, int iter_max);
57 int lissage_nana2015(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, int iter_max);
58 int lissage_taubin1995(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double lambda, double nu, double epsilon, double sigma, double gamma_, int filtre, int iter_max, int itr_taubin );
59 int cycle_taubin1995(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double lambda, double nu);
60 double varience_taubin1995(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, int affichage);
61 void reactivation(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2);
62 void gain_poids(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2);
63 void conserve(int origine);
64 void copieorigine(class FEM_MAILLAGE* mai);
65 int etat[10];
66 double ponderation_gaussian(double s,double sigma);
67 double ponderation_laplacian(double s,double sigma);
68 double ponderation_elfallahford(double s,double sigma);
69 int affichageactif;
70 void oriente_tri(MG_TRIANGLE_PEAU* tri,double *xyz);
71 MG_NOEUD* get_noeud_peau(FEM_NOEUD* no,MG_MAILLAGE* mai);
72
73
74
75
76 OT_PARAMETRES params;
77
78
79 };
80
81 //---------------------------------------------------------------------------
82 #endif