ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mailleur/src/mailleur_delaunay.h
Revision: 285
Committed: Sat Oct 8 00:28:41 2011 UTC (13 years, 7 months ago) by francois
Content type: text/plain
File size: 3629 byte(s)
Log Message:
mailleur de delaunay non contraint par les frontieres d'une carte de taille a priori 

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    
42     class DLLPORTMAIL MAILLEUR_DELAUNAY: public MAILLEUR
43     {
44     public :
45     MAILLEUR_DELAUNAY(class MG_MAILLAGE *m,class FCT_GENERATEUR_3D<4> *cartetmp,double crit_arret,class OT_CPU* comp=NULL);
46     virtual ~MAILLEUR_DELAUNAY();
47     virtual void maille(class MG_GROUPE_TOPOLOGIQUE* mggt=NULL);
48     // 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);
49    
50    
51     protected:
52     virtual int est_de_delaunay(void);
53     virtual void transfert_maillage(std::vector<class DLY_NOEUD*> *tabn,std::vector<class DLY_TRIANGLE*> *tabe2d,std::vector<class DLY_TETRA*> *tabe3d);
54     virtual class DLY_TETRA* cree_tetra(class DLY_NOEUD* n1,DLY_NOEUD* n2,DLY_NOEUD* n3,DLY_NOEUD* n4);
55     virtual class DLY_TRIANGLE* get_triangle(DLY_NOEUD* n1,DLY_NOEUD* n2,DLY_NOEUD* n3);
56     virtual class DLY_SEGMENT* get_segment(DLY_NOEUD* n1,DLY_NOEUD* n2);
57     virtual void mise_a_jour_voisin(DLY_TETRA* tet);
58     virtual void ajoute_tetra_cavite(DLY_TETRA* tet,std::vector<DLY_TETRA*> &cavite,std::vector<DLY_TRIANGLE*> &basetri);
59     virtual void retire_tetra_cavite(DLY_TETRA* tet,std::vector<DLY_TETRA*> &cavite,std::vector<DLY_TRIANGLE*> &basetri);
60     virtual void initialise_maillage(void);
61     virtual void raffine_maillage(void);
62     virtual DLY_TETRA* get_tetra(double x,double y,double z);
63     virtual DLY_TETRA* get_tetra(DLY_TETRA* tet,double x,double y,double z);
64     virtual int modifie_cavite(std::vector<DLY_TETRA*> &cavite,std::vector<DLY_TRIANGLE*> &basetri,int nbbase,double x, double y,double z);
65     virtual void ajouter_front(double crit,DLY_SEGMENT* seg);
66     virtual void retirer_front(DLY_SEGMENT* seg);
67     MG_MAILLAGE *mai;
68     FCT_GENERATEUR_3D<4> *carte;
69     std::vector<class DLY_NOEUD*> tabnoeud;
70     std::vector<class DLY_TETRA*> tabtet;
71     std::vector<class DLY_TRIANGLE*> tabtri;
72     std::vector<class DLY_SEGMENT*> tabseg;
73     //std::multimap<double, DLY_TETRA*,std::greater<double> > front;
74     std::multimap<double, DLY_SEGMENT*,std::greater<double> > front_trie;
75     std::map<const unsigned long long, DLY_SEGMENT* > front;
76     double critere_arret;
77     };
78    
79    
80    
81    
82    
83    
84     #endif