ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mailleur/src/mailleur_delaunay.h
Revision: 288
Committed: Thu Oct 27 20:51:59 2011 UTC (13 years, 6 months ago) by francois
Content type: text/plain
File size: 3745 byte(s)
Log Message:
optimisation d'un maillage associé ou non à une topologie. Application au mailleur delaunay

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 francois 288 virtual void change_niveau_optimisation(int num);
53 francois 285 // 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);
54    
55    
56     protected:
57     virtual int est_de_delaunay(void);
58     virtual void transfert_maillage(std::vector<class DLY_NOEUD*> *tabn,std::vector<class DLY_TRIANGLE*> *tabe2d,std::vector<class DLY_TETRA*> *tabe3d);
59     virtual class DLY_TETRA* cree_tetra(class DLY_NOEUD* n1,DLY_NOEUD* n2,DLY_NOEUD* n3,DLY_NOEUD* n4);
60     virtual class DLY_TRIANGLE* get_triangle(DLY_NOEUD* n1,DLY_NOEUD* n2,DLY_NOEUD* n3);
61     virtual class DLY_SEGMENT* get_segment(DLY_NOEUD* n1,DLY_NOEUD* n2);
62     virtual void mise_a_jour_voisin(DLY_TETRA* tet);
63     virtual void ajoute_tetra_cavite(DLY_TETRA* tet,std::vector<DLY_TETRA*> &cavite,std::vector<DLY_TRIANGLE*> &basetri);
64     virtual void retire_tetra_cavite(DLY_TETRA* tet,std::vector<DLY_TETRA*> &cavite,std::vector<DLY_TRIANGLE*> &basetri);
65     virtual void initialise_maillage(void);
66     virtual void raffine_maillage(void);
67     virtual DLY_TETRA* get_tetra(double x,double y,double z);
68     virtual DLY_TETRA* get_tetra(DLY_TETRA* tet,double x,double y,double z);
69     virtual int modifie_cavite(std::vector<DLY_TETRA*> &cavite,std::vector<DLY_TRIANGLE*> &basetri,int nbbase,double x, double y,double z);
70     virtual void ajouter_front(double crit,DLY_SEGMENT* seg);
71     virtual void retirer_front(DLY_SEGMENT* seg);
72     MG_MAILLAGE *mai;
73     FCT_GENERATEUR_3D<4> *carte;
74     std::vector<class DLY_NOEUD*> tabnoeud;
75     std::vector<class DLY_TETRA*> tabtet;
76     std::vector<class DLY_TRIANGLE*> tabtri;
77     std::vector<class DLY_SEGMENT*> tabseg;
78     //std::multimap<double, DLY_TETRA*,std::greater<double> > front;
79     std::multimap<double, DLY_SEGMENT*,std::greater<double> > front_trie;
80     std::map<const unsigned long long, DLY_SEGMENT* > front;
81     double critere_arret;
82 francois 288 int niveau_optimisation;
83 francois 285 };
84    
85    
86    
87    
88    
89    
90     #endif