1 |
francois |
1158 |
//####//------------------------------------------------------------ |
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 |
|
5 |
#include "gestionversion.h"
|
23 |
|
|
|
24 |
|
|
#pragma hdrstop
|
25 |
|
|
|
26 |
francois |
481 |
#include "occ_fonction.h"
|
27 |
|
|
#include "rec_face.h"
|
28 |
|
5 |
#include "tpl_map_entite.h"
|
29 |
francois |
481 |
#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 |
|
5 |
#include "constantegeo.h"
|
36 |
francois |
309 |
#include "fem_element2.h"
|
37 |
|
5 |
#include "fem_noeud.h"
|
38 |
|
|
#include "fem_maillage.h"
|
39 |
|
|
|
40 |
louhichi |
211 |
|
41 |
|
5 |
|
42 |
|
|
#pragma package(smart_init)
|
43 |
|
|
|
44 |
louhichi |
211 |
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
couturad |
740 |
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 |
|
5 |
{
|
53 |
|
|
}
|
54 |
louhichi |
211 |
|
55 |
|
|
|
56 |
|
5 |
REC_FACE::~REC_FACE()
|
57 |
|
|
{
|
58 |
|
|
|
59 |
|
|
}
|
60 |
|
|
|
61 |
louhichi |
211 |
void REC_FACE::Reconstruire(MG_FACE* face, double coef)
|
62 |
|
5 |
{
|
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 |
francois |
38 |
|
69 |
|
5 |
if(testo == 0)
|
70 |
|
|
{
|
71 |
louhichi |
211 |
REC_FACE_NURBS Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
|
72 |
|
|
Reconst.Reconstruire(face, coef);
|
73 |
|
5 |
}
|
74 |
louhichi |
211 |
|
75 |
|
5 |
else
|
76 |
|
|
{
|
77 |
francois |
1149 |
if(type_surface == GEOMETRIE::CONST::Co_PLAN)
|
78 |
|
5 |
{
|
79 |
louhichi |
211 |
REC_FACE_PLANE Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
|
80 |
|
|
Reconst.Reconstruire(face, coef);
|
81 |
|
5 |
}
|
82 |
|
|
else
|
83 |
|
|
{
|
84 |
francois |
1149 |
if(type_surface == GEOMETRIE::CONST::Co_CYLINDRE)
|
85 |
|
5 |
{
|
86 |
louhichi |
211 |
REC_FACE_CYLINDRIQUE Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
|
87 |
|
|
Reconst.Reconstruire(face, coef);
|
88 |
|
5 |
}
|
89 |
|
|
else
|
90 |
|
|
{
|
91 |
francois |
1149 |
if(type_surface == GEOMETRIE::CONST::Co_CONE)
|
92 |
|
5 |
{
|
93 |
louhichi |
211 |
REC_FACE_CONIQUE Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
|
94 |
|
|
Reconst.Reconstruire(face, coef);
|
95 |
|
5 |
}
|
96 |
|
|
else
|
97 |
|
|
{
|
98 |
francois |
1149 |
if(type_surface == GEOMETRIE::CONST::Co_TORE)
|
99 |
|
5 |
{
|
100 |
louhichi |
211 |
REC_FACE_TORIQUE Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
|
101 |
|
|
Reconst.Reconstruire(face, coef);
|
102 |
|
5 |
}
|
103 |
|
|
else
|
104 |
|
|
{
|
105 |
francois |
1149 |
if(type_surface == GEOMETRIE::CONST::Co_SPHERE)
|
106 |
|
5 |
{
|
107 |
louhichi |
211 |
REC_FACE_SPHERIQUE Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
|
108 |
|
|
Reconst.Reconstruire(face, coef);
|
109 |
|
5 |
}
|
110 |
|
|
else
|
111 |
|
|
{
|
112 |
louhichi |
211 |
REC_FACE_NURBS Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
|
113 |
|
|
Reconst.Reconstruire(face, coef);
|
114 |
|
5 |
}
|
115 |
|
|
}
|
116 |
|
|
}
|
117 |
|
|
}
|
118 |
|
|
}
|
119 |
|
|
}
|
120 |
|
|
|
121 |
louhichi |
211 |
|
122 |
|
5 |
}
|
123 |
|
|
|
124 |
|
|
void REC_FACE::Enregistrer(char *path)
|
125 |
|
|
{
|
126 |
|
|
}
|
127 |
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
|
|
|