1 |
francois |
120 |
//---------------------------------------------------------------------------
|
2 |
|
|
|
3 |
|
|
#ifndef mailleur_blocH
|
4 |
|
|
#define mailleur_blocH
|
5 |
|
|
//---------------------------------------------------------------------------
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
#ifdef WINDOWS_VERSION
|
10 |
|
|
#ifdef BUILT_DLL_MAILLEUR
|
11 |
|
|
#define DLLPORTMAIL __declspec(dllexport)
|
12 |
|
|
#else
|
13 |
|
|
#define DLLPORTMAIL __declspec(dllimport)
|
14 |
|
|
#endif
|
15 |
|
|
#else
|
16 |
|
|
#define DLLPORTMAIL
|
17 |
|
|
#endif
|
18 |
|
|
|
19 |
|
|
#include "mailleur.h"
|
20 |
|
|
#include "tpl_octree.h"
|
21 |
francois |
124 |
#include "tpl_quadtree.h"
|
22 |
francois |
149 |
#include "mg_segment_frontiere.h"
|
23 |
francois |
174 |
#include "mg_geometrie_outils.h"
|
24 |
francois |
120 |
#include <map>
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
class DLLPORTMAIL MAILLEUR_BLOC:public MAILLEUR
|
28 |
|
|
{
|
29 |
|
|
public:
|
30 |
|
|
MAILLEUR_BLOC(class MG_GESTIONNAIRE* gentier,MG_GESTIONNAIRE* gbloc,int numgeoentier,int numgeobloc,class FCT_TAILLE* fct_taille);
|
31 |
|
|
~MAILLEUR_BLOC();
|
32 |
|
|
|
33 |
francois |
123 |
void maille(int etape);
|
34 |
francois |
120 |
void maille(void);
|
35 |
|
|
|
36 |
|
|
private:
|
37 |
|
|
class MG_SOMMET* verif_noeud_sur_sommet(double *xyz, class MG_GEOMETRIE *geo);
|
38 |
|
|
class MG_ARETE* verif_noeud_sur_arete(double *xyz, MG_GEOMETRIE *geo,int *num, double *t);
|
39 |
francois |
124 |
|
40 |
|
|
void cree_octree(class MG_MAILLAGE* mai,TPL_OCTREE<class MG_NOEUD*,MG_NOEUD*> **octree);
|
41 |
francois |
174 |
|
42 |
francois |
124 |
void cree_octree(TPL_OCTREE<MG_NOEUD*,MG_NOEUD*> *octree1,TPL_OCTREE<MG_NOEUD*,MG_NOEUD*> **octree2);
|
43 |
|
|
|
44 |
francois |
174 |
|
45 |
francois |
120 |
class MG_NOEUD* chercher(double *xyz,TPL_OCTREE<MG_NOEUD*,MG_NOEUD*> &octree);
|
46 |
francois |
174 |
class MG_FACE* seg_sur_face(class MG_SEGMENT* seg,MG_GEOMETRIE* geo,int *num);//,TPL_QUADTREE<MG_SEGMENT_FRONTIERE*,MG_NOEUD*> **quad);
|
47 |
|
|
MG_FACE* tri_sur_face(class MG_TRIANGLE* tri,MG_GEOMETRIE* geo,int *num);//TPL_QUADTREE<MG_SEGMENT_FRONTIERE*,MG_NOEUD*> **quad);
|
48 |
francois |
120 |
|
49 |
|
|
|
50 |
|
|
class MG_GESTIONNAIRE* gestentier,*gestbloc;
|
51 |
|
|
class MG_GEOMETRIE* geoentier,*geobloc;
|
52 |
|
|
class FCT_TAILLE* carte;
|
53 |
|
|
class MG_MAILLAGE* maientier,*maibloc,*maitemp;
|
54 |
|
|
class TPL_OCTREE<class MG_NOEUD*,class MG_NOEUD*> *octreebloc;
|
55 |
|
|
class TPL_OCTREE<class MG_NOEUD*,class MG_NOEUD*> *octreeentier;
|
56 |
francois |
174 |
|
57 |
|
|
MG_GEOMETRIE_OUTILS otentier;
|
58 |
|
|
MG_GEOMETRIE_OUTILS otbloc;
|
59 |
francois |
120 |
};
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
class MG_NOEUD_ADDITIONNEL_ARETE
|
63 |
francois |
146 |
{
|
64 |
|
|
public:
|
65 |
|
|
class MG_NOEUD* noeud;
|
66 |
|
|
double t;
|
67 |
|
|
};
|
68 |
francois |
120 |
|
69 |
francois |
146 |
|
70 |
|
|
|
71 |
|
|
//Cr�er une structure de donn�es pour les noeuds sur les ar�te
|
72 |
|
|
typedef std::map<double,MG_NOEUD_ADDITIONNEL_ARETE,std::less<double> > LISTE_NOEUD_ADD_ARETE;
|
73 |
|
|
typedef std::map<double,MG_NOEUD_ADDITIONNEL_ARETE,std::less<double> >::iterator IT_LISTE_NOEUD_ADD_ARETE;
|
74 |
|
|
|
75 |
|
|
|
76 |
francois |
120 |
#endif
|