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