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 |
222 |
|
20 |
|
|
class DLLPORTOPTIMISATION MG_LISSAGE
|
21 |
|
|
{
|
22 |
|
|
public :
|
23 |
|
|
MG_LISSAGE();
|
24 |
|
|
~MG_LISSAGE();
|
25 |
|
|
|
26 |
picher |
248 |
void lisse(class FEM_MAILLAGE* mai,class MG_GESTIONNAIRE& gest2, double epsilon, double sigma, double sigmaf, double sigmag, double gamma, int iter_max, int reactiv, int bruit, int liss,int opti=1,int imp=1,int m_auto=0);
|
27 |
picher |
233 |
|
28 |
francois |
232 |
void active_affichage(void (*fonc)(char*));
|
29 |
|
|
void (*affiche)(char *mess);
|
30 |
francois |
222 |
|
31 |
francois |
276 |
void lissage(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2, double epsilon, double sigma, int iter_max);
|
32 |
|
|
|
33 |
francois |
343 |
|
34 |
|
|
void extract_skin_par_decoupage(class FEM_SOLUTION* sol,double limit,MG_GESTIONNAIRE& gest2,int liss,double epsilon,double sigma,double gamma,int iter_max,double sigmaf,double sigmag,std::string nom="");
|
35 |
|
|
|
36 |
francois |
224 |
private:
|
37 |
francois |
343 |
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);
|
38 |
|
|
int test_du_point_milieu(class MG_NOEUD* no1,MG_NOEUD* no2,class FEM_ELEMENT3* tet);
|
39 |
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);
|
40 |
|
|
MG_TRIANGLE_PEAU* recherche_voisin(MG_NOEUD* mg_noeud1,MG_NOEUD* mg_noeud2,MG_TRIANGLE_PEAU* triref);
|
41 |
picher |
248 |
void determine_peau(std::vector<MG_TRIANGLE_PEAU*> * peau);
|
42 |
francois |
234 |
int est_non_manifold(MG_NOEUD* no);
|
43 |
francois |
224 |
double calcul_angle(MG_TRIANGLE_PEAU* ft1,MG_TRIANGLE_PEAU* ft2);
|
44 |
|
|
std::vector<std::vector<MG_TRIANGLE_PEAU*> *> lst_peau;
|
45 |
picher |
233 |
int extract_skin(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2,double frac_min,int *mai2_id);
|
46 |
picher |
248 |
void lissage2(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2, double sigmaf, double sigmag, int iter_max);
|
47 |
|
|
void lissage3(MG_MAILLAGE* mg_mai,MG_GESTIONNAIRE& gest2, double sigma, double gamma, double epsilon, int iter_max);
|
48 |
picher |
231 |
void bruitage(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2);
|
49 |
picher |
233 |
void reactivation(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2);
|
50 |
|
|
void gain_poids(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2);
|
51 |
picher |
231 |
void conserve(int origine);
|
52 |
picher |
233 |
void copieorigine(class FEM_MAILLAGE* mai,class MG_GESTIONNAIRE& gest2);
|
53 |
|
|
void visualisation(class MG_MAILLAGE* mg_mai,class MG_GESTIONNAIRE& gest2,char *nomfichier);
|
54 |
|
|
void visualisation2(class MG_MAILLAGE* mai2,class MG_GESTIONNAIRE& gest2,char *nomfichier,int id);
|
55 |
francois |
224 |
int etat[10];
|
56 |
picher |
230 |
double ponderation_gaussian(double s,double sigma);
|
57 |
|
|
double ponderation_laplacian(double s,double sigma);
|
58 |
|
|
double ponderation_elfallahford(double s,double sigma);
|
59 |
francois |
232 |
int affichageactif;
|
60 |
francois |
343 |
void oriente_tri(MG_TRIANGLE_PEAU* tri,double *xyz);
|
61 |
|
|
MG_NOEUD* get_noeud_peau(FEM_NOEUD* no,MG_MAILLAGE* mai);
|
62 |
|
|
|
63 |
|
|
|
64 |
francois |
222 |
};
|
65 |
|
|
|
66 |
|
|
//---------------------------------------------------------------------------
|
67 |
|
|
#endif
|