1 |
francois |
222 |
//---------------------------------------------------------------------------
|
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 |
francois |
224 |
#include <vector>
|
17 |
|
|
#include <tpl_map_entite.h>
|
18 |
francois |
343 |
#include <string>
|
19 |
francois |
457 |
#include "ot_parametres.h"
|
20 |
francois |
222 |
|
21 |
francois |
460 |
class DLLPORTOPTIMISATION MGOPT_POSTTRAITEMENT
|
22 |
francois |
222 |
{
|
23 |
|
|
public :
|
24 |
francois |
460 |
MGOPT_POSTTRAITEMENT();
|
25 |
|
|
~MGOPT_POSTTRAITEMENT();
|
26 |
francois |
222 |
|
27 |
francois |
461 |
void posttraite(class FEM_SOLUTION* sol, class MG_GESTIONNAIRE& gest2,char *params);
|
28 |
|
|
void posttraite(char *fichier);
|
29 |
francois |
232 |
void active_affichage(void (*fonc)(char*));
|
30 |
|
|
void (*affiche)(char *mess);
|
31 |
francois |
222 |
|
32 |
francois |
276 |
|
33 |
francois |
343 |
|
34 |
francois |
457 |
|
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 |
cuillier |
438 |
void liste_wij(double w_ij);
|
42 |
francois |
343 |
|
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 |
francois |
224 |
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 |
picher |
248 |
void determine_peau(std::vector<MG_TRIANGLE_PEAU*> * peau);
|
48 |
francois |
234 |
int est_non_manifold(MG_NOEUD* no);
|
49 |
francois |
224 |
double calcul_angle(MG_TRIANGLE_PEAU* ft1,MG_TRIANGLE_PEAU* ft2);
|
50 |
|
|
std::vector<std::vector<MG_TRIANGLE_PEAU*> *> lst_peau;
|
51 |
francois |
457 |
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 |
picher |
233 |
void reactivation(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2);
|
57 |
|
|
void gain_poids(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2);
|
58 |
picher |
231 |
void conserve(int origine);
|
59 |
francois |
457 |
void copieorigine(class FEM_MAILLAGE* mai);
|
60 |
francois |
224 |
int etat[10];
|
61 |
picher |
230 |
double ponderation_gaussian(double s,double sigma);
|
62 |
|
|
double ponderation_laplacian(double s,double sigma);
|
63 |
|
|
double ponderation_elfallahford(double s,double sigma);
|
64 |
francois |
232 |
int affichageactif;
|
65 |
francois |
343 |
void oriente_tri(MG_TRIANGLE_PEAU* tri,double *xyz);
|
66 |
|
|
MG_NOEUD* get_noeud_peau(FEM_NOEUD* no,MG_MAILLAGE* mai);
|
67 |
|
|
|
68 |
|
|
|
69 |
francois |
457 |
|
70 |
|
|
|
71 |
|
|
OT_PARAMETRES params;
|
72 |
|
|
|
73 |
|
|
|
74 |
francois |
222 |
};
|
75 |
|
|
|
76 |
|
|
//---------------------------------------------------------------------------
|
77 |
|
|
#endif
|