ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mailleur/src/mailleur_delaunay.h
Revision: 287
Committed: Wed Oct 19 20:55:30 2011 UTC (13 years, 7 months ago) by francois
Content type: text/plain
File size: 3660 byte(s)
Log Message:
Dissociation du mailleur 3D et de l'optimisateur 3D

File Contents

# User Rev Content
1 francois 285 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuilli�re et Vincent FRANCOIS
5     // D�partement de G�nie M�canique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du d�partement
8     // de g�nie m�canique de l'Universit� du Qu�bec �
9     // Trois Rivi�res
10     // Les librairies ne peuvent �tre utilis�es sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // mailleur.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H23
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef _MAILLEUR_DELAUNAY_
24     #define _MAILLEUR_DELAUNAY_
25    
26     #ifdef WINDOWS_VERSION
27     #ifdef BUILT_DLL_MAILLEUR
28     #define DLLPORTMAIL __declspec(dllexport)
29     #else
30     #define DLLPORTMAIL __declspec(dllimport)
31     #endif
32     #else
33     #define DLLPORTMAIL
34     #endif
35    
36    
37     #include <stdlib.h>
38     #include <string>
39     #include "mailleur.h"
40     #include "fct_generateur_3D.h"
41 francois 287 #include "mailleur3d.h"
42 francois 285
43 francois 287
44    
45    
46 francois 285 class DLLPORTMAIL MAILLEUR_DELAUNAY: public MAILLEUR
47     {
48     public :
49     MAILLEUR_DELAUNAY(class MG_MAILLAGE *m,class FCT_GENERATEUR_3D<4> *cartetmp,double crit_arret,class OT_CPU* comp=NULL);
50     virtual ~MAILLEUR_DELAUNAY();
51     virtual void maille(class MG_GROUPE_TOPOLOGIQUE* mggt=NULL);
52     // void find(std::vector< DLY_TETRA*, std::allocator< DLY_TETRA* > >::const_iterator arg1, std::vector< DLY_TETRA*, std::allocator< DLY_TETRA* > >::const_iterator arg2, DLY_TETRA* arg3);
53    
54    
55     protected:
56     virtual int est_de_delaunay(void);
57     virtual void transfert_maillage(std::vector<class DLY_NOEUD*> *tabn,std::vector<class DLY_TRIANGLE*> *tabe2d,std::vector<class DLY_TETRA*> *tabe3d);
58     virtual class DLY_TETRA* cree_tetra(class DLY_NOEUD* n1,DLY_NOEUD* n2,DLY_NOEUD* n3,DLY_NOEUD* n4);
59     virtual class DLY_TRIANGLE* get_triangle(DLY_NOEUD* n1,DLY_NOEUD* n2,DLY_NOEUD* n3);
60     virtual class DLY_SEGMENT* get_segment(DLY_NOEUD* n1,DLY_NOEUD* n2);
61     virtual void mise_a_jour_voisin(DLY_TETRA* tet);
62     virtual void ajoute_tetra_cavite(DLY_TETRA* tet,std::vector<DLY_TETRA*> &cavite,std::vector<DLY_TRIANGLE*> &basetri);
63     virtual void retire_tetra_cavite(DLY_TETRA* tet,std::vector<DLY_TETRA*> &cavite,std::vector<DLY_TRIANGLE*> &basetri);
64     virtual void initialise_maillage(void);
65     virtual void raffine_maillage(void);
66     virtual DLY_TETRA* get_tetra(double x,double y,double z);
67     virtual DLY_TETRA* get_tetra(DLY_TETRA* tet,double x,double y,double z);
68     virtual int modifie_cavite(std::vector<DLY_TETRA*> &cavite,std::vector<DLY_TRIANGLE*> &basetri,int nbbase,double x, double y,double z);
69     virtual void ajouter_front(double crit,DLY_SEGMENT* seg);
70     virtual void retirer_front(DLY_SEGMENT* seg);
71     MG_MAILLAGE *mai;
72     FCT_GENERATEUR_3D<4> *carte;
73     std::vector<class DLY_NOEUD*> tabnoeud;
74     std::vector<class DLY_TETRA*> tabtet;
75     std::vector<class DLY_TRIANGLE*> tabtri;
76     std::vector<class DLY_SEGMENT*> tabseg;
77     //std::multimap<double, DLY_TETRA*,std::greater<double> > front;
78     std::multimap<double, DLY_SEGMENT*,std::greater<double> > front_trie;
79     std::map<const unsigned long long, DLY_SEGMENT* > front;
80     double critere_arret;
81     };
82    
83    
84    
85    
86    
87    
88     #endif