1 |
|
5 |
//---------------------------------------------------------------------------
|
2 |
|
|
#include "gestionversion.h"
|
3 |
|
|
|
4 |
|
|
#pragma hdrstop
|
5 |
|
|
|
6 |
louhichi |
211 |
#include "OCC_fonction.h"
|
7 |
|
5 |
#include "Rec_sommet.h"
|
8 |
|
|
#include "fem_noeud.h"
|
9 |
|
|
#include "fem_maillage.h"
|
10 |
|
|
|
11 |
|
|
//---------------------------------------------------------------------------
|
12 |
|
|
|
13 |
|
|
#pragma package(smart_init)
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
louhichi |
211 |
REC_SOMMET::REC_SOMMET(FEM_MAILLAGE* mgmai, int Idealise, OCC_FONCTION& fonc): REC_BREP(mgmai, Idealise, fonc)
|
18 |
|
5 |
{
|
19 |
|
|
|
20 |
|
|
}
|
21 |
|
|
|
22 |
|
|
REC_SOMMET::~REC_SOMMET()
|
23 |
|
|
{
|
24 |
|
|
|
25 |
|
|
}
|
26 |
|
|
|
27 |
|
|
|
28 |
louhichi |
211 |
void REC_SOMMET::Reconstruire(MG_SOMMET* Sommet, double coef)
|
29 |
|
5 |
{
|
30 |
|
|
|
31 |
louhichi |
211 |
//OCC_FONCTION fonction;
|
32 |
|
5 |
|
33 |
|
|
int nb_noeud = Sommet->get_lien_fem_maillage()->get_nb();
|
34 |
|
|
FEM_NOEUD* noeud0;
|
35 |
|
|
for (int i =0; i<nb_noeud;i++)
|
36 |
|
|
{
|
37 |
|
|
FEM_NOEUD* noeud =(FEM_NOEUD*)Sommet->get_lien_fem_maillage()->get(i);
|
38 |
louhichi |
211 |
if (!fem_maillage->contient(noeud)) continue;
|
39 |
|
5 |
noeud0 = noeud;
|
40 |
|
|
}
|
41 |
|
|
|
42 |
louhichi |
211 |
double x_sommet = noeud0->get_x(coef);
|
43 |
|
|
double y_sommet = noeud0->get_y(coef);
|
44 |
|
|
double z_sommet = noeud0->get_z(coef);
|
45 |
|
5 |
|
46 |
|
|
|
47 |
|
|
}
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
void REC_SOMMET::Enregistrer(char *path)
|
51 |
|
|
{
|
52 |
|
|
|
53 |
|
|
}
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|