1 |
francois |
283 |
#include"gestionversion.h" |
2 |
|
|
//--------------------------------------------------------------------------- |
3 |
|
|
|
4 |
|
|
|
5 |
|
|
#pragma hdrstop |
6 |
|
|
|
7 |
|
|
#include "vct_sommet.h" |
8 |
|
|
#include "mg_sommet.h" |
9 |
|
|
#include "mg_point.h" |
10 |
|
|
#include "vct_point.h" |
11 |
|
|
#include <iomanip> |
12 |
|
|
#include<math.h> |
13 |
|
|
//--------------------------------------------------------------------------- |
14 |
|
|
|
15 |
|
|
#pragma package(smart_init) |
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
VCT_SOMMET::VCT_SOMMET(MG_SOMMET* sommet):VCT_ELEMENT_TOPOLOGIQUE(sommet) |
20 |
|
|
{ |
21 |
|
|
|
22 |
|
|
int indx_premier_ptctr; |
23 |
|
|
MG_POINT* point=sommet->get_point(); |
24 |
|
|
|
25 |
|
|
TPL_LISTE_ENTITE<double> nurbs_params; |
26 |
|
|
point->get_param_NURBS(indx_premier_ptctr,nurbs_params) ; |
27 |
|
|
|
28 |
|
|
OT_VECTEUR_4DD V; |
29 |
|
|
V[0]=nurbs_params.get(indx_premier_ptctr+ 0); |
30 |
|
|
V[1]=nurbs_params.get(indx_premier_ptctr+ 1); |
31 |
|
|
V[2]=nurbs_params.get(indx_premier_ptctr+ 2); |
32 |
|
|
V[3]=nurbs_params.get(indx_premier_ptctr+ 3); |
33 |
|
|
lst_points.insert(lst_points.end(),V); |
34 |
francois |
743 |
//OT_VECTEUR_4DD VCT_NUL(0.,0.,0.,0.); |
35 |
|
|
//lst_vecteurs.insert(lst_vecteurs.end(), VCT_NUL); |
36 |
francois |
283 |
construire_forme_tensorielle(); |
37 |
|
|
|
38 |
|
|
|
39 |
|
|
} |
40 |
|
|
|
41 |
|
|
|
42 |
|
|
VCT_SOMMET::VCT_SOMMET(VCT_SOMMET& mdd):VCT_ELEMENT_TOPOLOGIQUE(mdd.elem_topo) |
43 |
|
|
{ |
44 |
|
|
|
45 |
|
|
} |
46 |
|
|
|
47 |
|
|
|
48 |
|
|
VCT_SOMMET::~ VCT_SOMMET() |
49 |
|
|
{ |
50 |
|
|
|
51 |
|
|
} |
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|