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 |
|
|
#include <map>
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
class DLLPORTMAIL MAILLEUR_BLOC:public MAILLEUR
|
25 |
|
|
{
|
26 |
|
|
public:
|
27 |
|
|
MAILLEUR_BLOC(class MG_GESTIONNAIRE* gentier,MG_GESTIONNAIRE* gbloc,int numgeoentier,int numgeobloc,class FCT_TAILLE* fct_taille);
|
28 |
|
|
~MAILLEUR_BLOC();
|
29 |
|
|
|
30 |
francois |
123 |
void maille(int etape);
|
31 |
francois |
120 |
void maille(void);
|
32 |
|
|
|
33 |
|
|
private:
|
34 |
|
|
class MG_SOMMET* verif_noeud_sur_sommet(double *xyz, class MG_GEOMETRIE *geo);
|
35 |
|
|
class MG_ARETE* verif_noeud_sur_arete(double *xyz, MG_GEOMETRIE *geo,int *num, double *t);
|
36 |
|
|
class MG_FACE* verif_noeud_sur_face(double *xyz, MG_GEOMETRIE *geo,int *num,TPL_OCTREE<class MG_SEGMENT*,class MG_NOEUD*> *octree);
|
37 |
|
|
void cree_octree(class MG_MAILLAGE* mai,class TPL_OCTREE<class MG_SEGMENT*,class MG_NOEUD*> **octreeseg,TPL_OCTREE<MG_NOEUD*,MG_NOEUD*> **octree);
|
38 |
|
|
double calcule_distance_contour_face(double *xyz,double *uv,MG_FACE* face,TPL_OCTREE<MG_SEGMENT*,MG_NOEUD*> *octree);
|
39 |
francois |
123 |
double distance_pt_segment(double *uv,MG_NOEUD* noeud1,MG_NOEUD* noeud2,MG_FACE* face);
|
40 |
francois |
120 |
double distance_pt_segment(double *xyz,double *xyz1,double *xyz2);
|
41 |
|
|
class MG_NOEUD* chercher(double *xyz,TPL_OCTREE<MG_NOEUD*,MG_NOEUD*> &octree);
|
42 |
|
|
MG_FACE* seg_sur_face(MG_SEGMENT* seg,MG_GEOMETRIE* geo,int *num,TPL_OCTREE<MG_SEGMENT*,MG_NOEUD*> *octree);
|
43 |
|
|
MG_FACE* tri_sur_face(class MG_TRIANGLE* tri,MG_GEOMETRIE* geo,int *num,TPL_OCTREE<MG_SEGMENT*,MG_NOEUD*> *octree);
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
class MG_GESTIONNAIRE* gestentier,*gestbloc;
|
47 |
|
|
class MG_GEOMETRIE* geoentier,*geobloc;
|
48 |
|
|
class FCT_TAILLE* carte;
|
49 |
|
|
class MG_MAILLAGE* maientier,*maibloc,*maitemp;
|
50 |
|
|
class TPL_OCTREE<class MG_SEGMENT*,class MG_NOEUD*> *octreeblocseg;
|
51 |
|
|
class TPL_OCTREE<class MG_SEGMENT*,class MG_NOEUD*> *octreeentierseg;
|
52 |
|
|
class TPL_OCTREE<class MG_NOEUD*,class MG_NOEUD*> *octreebloc;
|
53 |
|
|
class TPL_OCTREE<class MG_NOEUD*,class MG_NOEUD*> *octreeentier;
|
54 |
|
|
|
55 |
|
|
};
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
class MG_NOEUD_ADDITIONNEL_ARETE
|
59 |
|
|
{ |
60 |
|
|
public: |
61 |
|
|
class MG_NOEUD* noeud; |
62 |
|
|
double t; |
63 |
|
|
}; |
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
//Créer une structure de données pour les noeuds sur les arête |
68 |
|
|
typedef std::map<double,MG_NOEUD_ADDITIONNEL_ARETE,std::less<double> > LISTE_NOEUD_ADD_ARETE; |
69 |
|
|
typedef std::map<double,MG_NOEUD_ADDITIONNEL_ARETE,std::less<double> >::iterator IT_LISTE_NOEUD_ADD_ARETE; |
70 |
|
|
|
71 |
|
|
|
72 |
|
|
#endif
|