MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
mgopt_posttraitement.h
Aller à la documentation de ce fichier.
1 //####//------------------------------------------------------------
2 //####//------------------------------------------------------------
3 //####// MAGiC
4 //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5 //####// Departement de Genie Mecanique - UQTR
6 //####//------------------------------------------------------------
7 //####// MAGIC est un projet de recherche de l equipe ERICCA
8 //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9 //####// http://www.uqtr.ca/ericca
10 //####// http://www.uqtr.ca/
11 //####//------------------------------------------------------------
12 //####//------------------------------------------------------------
13 //####//
14 //####// mgopt_posttraitement.h
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:58:57 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 
23 #ifndef lissageH
24 #define lissageH
25 
26 
27 
28 #include <vector>
29 #include <tpl_map_entite.h>
30 #include <string>
31 #include "ot_parametres.h"
32 
34 {
35 public :
38 
39 void posttraite(class FEM_SOLUTION* sol, class MG_GESTIONNAIRE& gest2,char *params,char *nomout);
40 void posttraite(char *fichier);
41 void active_affichage(void (*fonc)(char*));
42 void (*affiche)(char *mess);
43 
44 
45 
46 
47 private:
48 void lire_params(char *fichier);
49 void adapte_seuil(class FEM_MAILLAGE* fem,FEM_SOLUTION *solution);
50 class MG_MAILLAGE* extract_skin_par_decoupage(class FEM_SOLUTION* sol,double limit,MG_GESTIONNAIRE& gest2,std::string nom="");
52 void suppression_peaux_isoles(class MG_MAILLAGE* mgmai);
53 void liste_wij(double w_ij);
54 
55 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);
56 int test_du_point_milieu(class MG_NOEUD* no1,MG_NOEUD* no2,class FEM_ELEMENT3* tet);
57 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);
58 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);
60 void determine_peau(std::vector<MG_TRIANGLE_PEAU*> * peau);
61 int est_non_manifold(MG_NOEUD* no);
63 std::vector<std::vector<MG_TRIANGLE_PEAU*> *> lst_peau;
64 int extract_skin(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2,int &nbpeau,int &nbmaniare,int &nbmanino,int *mai2_id);
65 
66 
67 int lissage_chen2005(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double epsilon, double sigma, int iter_max);
68 int lissage_jiao2012(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, int iter_max);
69 int lissage_chen2008(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double sigma, double gamma, double epsilon, int iter_max);
70 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 );
71 int cycle_taubin1995(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double lambda, double nu);
72 int lissage_Taubin1995(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double lambda, double nu, int iter_max);
73 int cardinalite(MG_MAILLAGE* mgmai,int cardinalite_iter);
74 void rmimpose(MG_MAILLAGE* mgmai, char* nomsortie);
75 void varience_McKenzie2016(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double *vari0,double *vari1,double *vari2);
76 void reactivation(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2);
77 void calcul_volume_ini(class MG_MAILLAGE* mg_mai, double *volumetot,double *volumenondesign);
78 void conserve(int origine);
79 void copieorigine(class FEM_MAILLAGE* mai);
80 int etat[10];
81 double ponderation_gaussian(double s,double sigma);
82 double ponderation_laplacian(double s,double sigma);
83 double ponderation_elfallahford(double s,double sigma);
85 void oriente_tri(MG_TRIANGLE_PEAU* tri,double *xyz);
86 MG_NOEUD* get_noeud_peau(FEM_NOEUD* no,MG_MAILLAGE* mai,std::map<unsigned long,unsigned long> &correspondid,MG_GEOMETRIE* geo);
87 void lissage_aretes2017(MG_MAILLAGE* mg_mai, MG_GESTIONNAIRE& gest2, double lambda, int nb_iter);
88 int passage_non_manifold(MG_NOEUD** no,std::map<int,MG_NOEUD*>* lst_no_voisins, MG_GEOMETRIE* geo, std::vector<MG_NOEUD*>* arete);
89 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);
90 
91 
92 
94 
95 
96 };
97 
98 #endif
MGOPT_POSTTRAITEMENT::posttraite
void posttraite(class FEM_SOLUTION *sol, class MG_GESTIONNAIRE &gest2, char *params, char *nomout)
Definition: mgopt_posttraitement.cpp:890
FEM_SOLUTION
Definition: fem_solution.h:40
MGOPT_POSTTRAITEMENT::copieorigine
void copieorigine(class FEM_MAILLAGE *mai)
Definition: mgopt_posttraitement.cpp:133
MGOPT_POSTTRAITEMENT::~MGOPT_POSTTRAITEMENT
~MGOPT_POSTTRAITEMENT()
Definition: mgopt_posttraitement.cpp:98
MGOPT_POSTTRAITEMENT::active_affichage
void active_affichage(void(*fonc)(char *))
Definition: mgopt_posttraitement.cpp:104
MGOPT_POSTTRAITEMENT::determine_peau
void determine_peau(std::vector< MG_TRIANGLE_PEAU * > *peau)
Definition: mgopt_posttraitement.cpp:2858
MGOPT_POSTTRAITEMENT::MGOPT_POSTTRAITEMENT
MGOPT_POSTTRAITEMENT()
Definition: mgopt_posttraitement.cpp:53
MGOPT_POSTTRAITEMENT::cycle_taubin1995
int cycle_taubin1995(MG_MAILLAGE *mg_mai, MG_GESTIONNAIRE &gest2, double lambda, double nu)
Definition: mgopt_posttraitement.cpp:1695
MGOPT_POSTTRAITEMENT::lissage_chen2005
int lissage_chen2005(MG_MAILLAGE *mg_mai, MG_GESTIONNAIRE &gest2, double epsilon, double sigma, int iter_max)
Definition: mgopt_posttraitement.cpp:1292
robustPredicates::epsilon
static REAL epsilon
Definition: robustpredicates.cc:371
MGOPT_POSTTRAITEMENT::test_du_point_milieu
int test_du_point_milieu(class MG_NOEUD *no1, MG_NOEUD *no2, class FEM_ELEMENT3 *tet)
Definition: mgopt_posttraitement.cpp:779
MGOPT_POSTTRAITEMENT::lissage_chen2008
int lissage_chen2008(MG_MAILLAGE *mg_mai, MG_GESTIONNAIRE &gest2, double sigma, double gamma, double epsilon, int iter_max)
Definition: mgopt_posttraitement.cpp:1518
MGOPT_POSTTRAITEMENT::lissage_Taubin1995
int lissage_Taubin1995(MG_MAILLAGE *mg_mai, MG_GESTIONNAIRE &gest2, double lambda, double nu, int iter_max)
Definition: mgopt_posttraitement.cpp:1815
MGOPT_POSTTRAITEMENT::suppression_peaux_isoles
void suppression_peaux_isoles(class MG_MAILLAGE *mgmai)
Definition: mgopt_posttraitement.cpp:691
MG_TRIANGLE_PEAU
Definition: mg_triangle_peau.h:32
FEM_ELEMENT3
Definition: fem_element3.h:34
MGOPT_POSTTRAITEMENT::calcul_angle
double calcul_angle(MG_TRIANGLE_PEAU *ft1, MG_TRIANGLE_PEAU *ft2)
Definition: mgopt_posttraitement.cpp:2996
MGOPT_POSTTRAITEMENT::etat
int etat[10]
Definition: mgopt_posttraitement.h:80
MG_GESTIONNAIRE
Definition: mg_gestionnaire.h:57
MGOPT_POSTTRAITEMENT::est_non_manifold
int est_non_manifold(MG_NOEUD *no)
Definition: mgopt_posttraitement.cpp:2959
MGOPT_POSTTRAITEMENT::extract_skin_maille_entiere
class MG_MAILLAGE * extract_skin_maille_entiere(FEM_MAILLAGE *mai, MG_GESTIONNAIRE &gest2)
Definition: mgopt_posttraitement.cpp:1111
MG_ELEMENT_TOPOLOGIQUE
Definition: mg_element_topologique.h:51
MGOPT_POSTTRAITEMENT::calcul_volume_ini
void calcul_volume_ini(class MG_MAILLAGE *mg_mai, double *volumetot, double *volumenondesign)
Definition: mgopt_posttraitement.cpp:144
MGOPT_POSTTRAITEMENT::adapte_seuil
void adapte_seuil(class FEM_MAILLAGE *fem, FEM_SOLUTION *solution)
Definition: mgopt_posttraitement.cpp:1147
MGOPT_POSTTRAITEMENT::liste_wij
void liste_wij(double w_ij)
MGOPT_POSTTRAITEMENT::interpole_segment
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)
Definition: mgopt_posttraitement.cpp:794
FEM_MAILLAGE
Definition: fem_maillage.h:66
MGOPT_POSTTRAITEMENT::lissage_jiao2012
int lissage_jiao2012(MG_MAILLAGE *mg_mai, MG_GESTIONNAIRE &gest2, int iter_max)
Definition: mgopt_posttraitement.cpp:1453
ot_parametres.h
MGOPT_POSTTRAITEMENT::extract_skin_par_decoupage
class MG_MAILLAGE * extract_skin_par_decoupage(class FEM_SOLUTION *sol, double limit, MG_GESTIONNAIRE &gest2, std::string nom="")
Definition: mgopt_posttraitement.cpp:230
MG_NOEUD
Definition: mg_noeud.h:41
MGOPT_POSTTRAITEMENT::lst_peau
std::vector< std::vector< MG_TRIANGLE_PEAU * > * > lst_peau
Definition: mgopt_posttraitement.h:63
MGOPT_POSTTRAITEMENT::passage_non_manifold
int passage_non_manifold(MG_NOEUD **no, std::map< int, MG_NOEUD * > *lst_no_voisins, MG_GEOMETRIE *geo, std::vector< MG_NOEUD * > *arete)
tpl_map_entite.h
MGOPT_POSTTRAITEMENT::extract_skin
int extract_skin(class MG_MAILLAGE *mg_mai, class MG_GESTIONNAIRE &gest2, int &nbpeau, int &nbmaniare, int &nbmanino, int *mai2_id)
Definition: mgopt_posttraitement.cpp:2369
OT_PARAMETRES
Definition: ot_parametres.h:31
MGOPT_POSTTRAITEMENT::rmimpose
void rmimpose(MG_MAILLAGE *mgmai, char *nomsortie)
Definition: mgopt_posttraitement.cpp:2806
MGOPT_POSTTRAITEMENT::recherche_voisins
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)
MGOPT_POSTTRAITEMENT::conserve
void conserve(int origine)
Definition: mgopt_posttraitement.cpp:127
MGOPT_POSTTRAITEMENT::ponderation_laplacian
double ponderation_laplacian(double s, double sigma)
Definition: mgopt_posttraitement.cpp:3015
MGOPT_POSTTRAITEMENT::affichageactif
int affichageactif
Definition: mgopt_posttraitement.h:84
FEM_NOEUD
Definition: fem_noeud.h:35
MGOPT_POSTTRAITEMENT::lissage_McKenzie2016
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)
Definition: mgopt_posttraitement.cpp:1938
MGOPT_POSTTRAITEMENT::params
OT_PARAMETRES params
Definition: mgopt_posttraitement.h:93
MGOPT_POSTTRAITEMENT::affiche
void(* affiche)(char *mess)
Definition: mgopt_posttraitement.h:42
MGOPT_POSTTRAITEMENT::ponderation_elfallahford
double ponderation_elfallahford(double s, double sigma)
Definition: mgopt_posttraitement.cpp:3022
MGOPT_POSTTRAITEMENT::varience_McKenzie2016
void varience_McKenzie2016(MG_MAILLAGE *mg_mai, MG_GESTIONNAIRE &gest2, double *vari0, double *vari1, double *vari2)
Definition: mgopt_posttraitement.cpp:1832
MG_GEOMETRIE
Definition: mg_geometrie.h:84
MGOPT_POSTTRAITEMENT::lire_params
void lire_params(char *fichier)
Definition: mgopt_posttraitement.cpp:885
MG_MAILLAGE
Definition: mg_maillage.h:62
MGOPT_POSTTRAITEMENT
Definition: mgopt_posttraitement.h:33
MGOPT_POSTTRAITEMENT::lissage_aretes2017
void lissage_aretes2017(MG_MAILLAGE *mg_mai, MG_GESTIONNAIRE &gest2, double lambda, int nb_iter)
Definition: mgopt_posttraitement.cpp:1165
MGOPT_POSTTRAITEMENT::reactivation
void reactivation(class MG_MAILLAGE *mg_mai, class MG_GESTIONNAIRE &gest2)
Definition: mgopt_posttraitement.cpp:180
MGOPT_POSTTRAITEMENT::ponderation_gaussian
double ponderation_gaussian(double s, double sigma)
Definition: mgopt_posttraitement.cpp:3008
MGOPT_POSTTRAITEMENT::insere_triangle
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)
Definition: mgopt_posttraitement.cpp:2883
MGOPT_POSTTRAITEMENT::get_noeud_peau
MG_NOEUD * get_noeud_peau(FEM_NOEUD *no, MG_MAILLAGE *mai, std::map< unsigned long, unsigned long > &correspondid, MG_GEOMETRIE *geo)
Definition: mgopt_posttraitement.cpp:753
MGOPT_POSTTRAITEMENT::oriente_tri
void oriente_tri(MG_TRIANGLE_PEAU *tri, double *xyz)
Definition: mgopt_posttraitement.cpp:736
MGOPT_POSTTRAITEMENT::recherche_voisin
MG_TRIANGLE_PEAU * recherche_voisin(MG_NOEUD *mg_noeud1, MG_NOEUD *mg_noeud2, MG_TRIANGLE_PEAU *triref)
Definition: mgopt_posttraitement.cpp:2938
MGOPT_POSTTRAITEMENT::cardinalite
int cardinalite(MG_MAILLAGE *mgmai, int cardinalite_iter)
Definition: mgopt_posttraitement.cpp:2734