ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/aster/src/mgopt_posttraitement.h
Revision: 905
Committed: Tue Sep 19 18:58:56 2017 UTC (7 years, 11 months ago) by amroune
Content type: text/plain
File size: 4617 byte(s)
Log Message:
ajout d'une méthode de lissage des arètes dans le post traitement de TO

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,char *nomout);
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_GEOMETRIE* geo,class MG_MAILLAGE* maiori,class MG_NOEUD* n1ori,MG_NOEUD* n2ori,MG_NOEUD* n3ori,std::map<unsigned long,unsigned long> &correspondid,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 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);
47 MG_TRIANGLE_PEAU* recherche_voisin(MG_NOEUD* mg_noeud1,MG_NOEUD* mg_noeud2,MG_TRIANGLE_PEAU* triref);
48 void determine_peau(std::vector<MG_TRIANGLE_PEAU*> * peau);
49 int est_non_manifold(MG_NOEUD* no);
50 double calcul_angle(MG_TRIANGLE_PEAU* ft1,MG_TRIANGLE_PEAU* ft2);
51 std::vector<std::vector<MG_TRIANGLE_PEAU*> *> lst_peau;
52 int extract_skin(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2,int &nbpeau,int &nbmaniare,int &nbmanino,int *mai2_id);
53
54
55 int lissage_chen2005(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double epsilon, double sigma, int iter_max);
56 int lissage_jiao2012(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, int iter_max);
57 int lissage_chen2008(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double sigma, double gamma, double epsilon, int iter_max);
58 int lissage_McKenzie2016(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 int lissage_Taubin1995(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double lambda, double nu, int iter_max);
61 int cardinalite(MG_MAILLAGE* mgmai,int cardinalite_iter);
62 void rmimpose(MG_MAILLAGE* mgmai, char* nomsortie);
63 void varience_McKenzie2016(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double *vari0,double *vari1,double *vari2);
64 void reactivation(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2);
65 void calcul_volume_ini(class MG_MAILLAGE* mg_mai, double *volumetot,double *volumenondesign);
66 void conserve(int origine);
67 void copieorigine(class FEM_MAILLAGE* mai);
68 int etat[10];
69 double ponderation_gaussian(double s,double sigma);
70 double ponderation_laplacian(double s,double sigma);
71 double ponderation_elfallahford(double s,double sigma);
72 int affichageactif;
73 void oriente_tri(MG_TRIANGLE_PEAU* tri,double *xyz);
74 MG_NOEUD* get_noeud_peau(FEM_NOEUD* no,MG_MAILLAGE* mai,std::map<unsigned long,unsigned long> &correspondid,MG_GEOMETRIE* geo);
75 void lissage_aretes2017(MG_MAILLAGE* mg_mai, MG_GESTIONNAIRE& gest2, double lambda, int nb_iter);
76 int passage_non_manifold(MG_NOEUD** no,std::map<int,MG_NOEUD*>* lst_no_voisins, MG_GEOMETRIE* geo, std::vector<MG_NOEUD*>* arete);
77 void recherche_voisins(MG_NOEUD* no,std::vector<MG_NOEUD*>* lst_no_1090_1091,std::vector<MG_NOEUD*>* arete,std::map<int,MG_NOEUD*>* lst_no_voisins,bool arete_ouverte,std::vector<MG_NOEUD*>* lst_no_extr);
78
79
80
81 OT_PARAMETRES params;
82
83
84 };
85
86 //---------------------------------------------------------------------------
87 #endif