MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
rec_face.cpp
Aller à la documentation de ce fichier.
1 //####//------------------------------------------------------------
2 //####//------------------------------------------------------------
3 //####// MAGiC
4 //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5 //####// Departement de Genie Mecanique - UQTR
6 //####//------------------------------------------------------------
7 //####// MAGIC est un projet de recherche de l equipe ERICCA
8 //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9 //####// http://www.uqtr.ca/ericca
10 //####// http://www.uqtr.ca/
11 //####//------------------------------------------------------------
12 //####//------------------------------------------------------------
13 //####//
14 //####// rec_face.cpp
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:58:56 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 #include "gestionversion.h"
23 
24 #pragma hdrstop
25 
26 #include "occ_fonction.h"
27 #include "rec_face.h"
28 #include "tpl_map_entite.h"
29 #include "rec_face_nurbs.h"
30 #include "rec_face_plane.h"
31 #include "rec_face_cylindrique.h"
32 #include "rec_face_conique.h"
33 #include "rec_face_torique.h"
34 #include "rec_face_spherique.h"
35 #include "constantegeo.h"
36 #include "fem_element2.h"
37 #include "fem_noeud.h"
38 #include "fem_maillage.h"
39 
40 
41 
42 #pragma package(smart_init)
43 
44 
45 
46 
47 
48 
49 
50 
51 REC_FACE::REC_FACE(FEM_MAILLAGE* fem_mai, int Idealise, OCC_FONCTION_RECONSTRUCTION& fonc, int test, int* faces): REC_BREP(fem_mai, Idealise, fonc), testo(test),faceso(faces)
52 {
53 }
54 
55 
57 {
58 
59 }
60 
61 void REC_FACE::Reconstruire(MG_FACE* face, double coef)
62 {
63 
64 MG_SURFACE* surface = face->get_surface();
65 TPL_LISTE_ENTITE <double> Parametres;
66 int type_surface = surface->get_type_geometrique(Parametres);
67 
68 
69 if(testo == 0)
70  {
72  Reconst.Reconstruire(face, coef);
73  }
74 
75 else
76  {
77  if(type_surface == GEOMETRIE::CONST::Co_PLAN)
78  {
80  Reconst.Reconstruire(face, coef);
81  }
82  else
83  {
84  if(type_surface == GEOMETRIE::CONST::Co_CYLINDRE)
85  {
87  Reconst.Reconstruire(face, coef);
88  }
89  else
90  {
91  if(type_surface == GEOMETRIE::CONST::Co_CONE)
92  {
94  Reconst.Reconstruire(face, coef);
95  }
96  else
97  {
98  if(type_surface == GEOMETRIE::CONST::Co_TORE)
99  {
101  Reconst.Reconstruire(face, coef);
102  }
103  else
104  {
105  if(type_surface == GEOMETRIE::CONST::Co_SPHERE)
106  {
108  Reconst.Reconstruire(face, coef);
109  }
110  else
111  {
113  Reconst.Reconstruire(face, coef);
114  }
115  }
116  }
117  }
118  }
119  }
120 
121 
122 }
123 
124 void REC_FACE::Enregistrer(char *path)
125 {
126 }
127 
128 
129 
130 
131 
132 
133 
134 
135 
virtual MG_SURFACE * get_surface(void)
Definition: mg_face.cpp:109
virtual int get_type_geometrique(TPL_LISTE_ENTITE< double > &param)=0
FEM_MAILLAGE * fem_maillage
Definition: rec_brep.h:52
OCC_FONCTION_RECONSTRUCTION & fonction
Definition: rec_brep.h:56
int Idealiser
Definition: rec_brep.h:53
void Reconstruire(MG_FACE *face, double coef)
void Reconstruire(MG_FACE *face, double coef)
void Reconstruire(MG_FACE *face, double coef)
void Reconstruire(MG_FACE *face, double coef)
void Reconstruire(MG_FACE *face, double coef)
void Reconstruire(MG_FACE *face, double coef)
REC_FACE(FEM_MAILLAGE *fem_mai, int Idealise, OCC_FONCTION_RECONSTRUCTION &fonc, int test, int *faces)
Definition: rec_face.cpp:51
void Reconstruire(MG_FACE *face, double coef)
Definition: rec_face.cpp:61
int * faceso
Definition: rec_face.h:47
virtual ~REC_FACE()
Definition: rec_face.cpp:56
void Enregistrer(char *path)
Definition: rec_face.cpp:124
int testo
Definition: rec_face.h:46