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 |
|
|
//####// lc_point.cpp |
15 |
|
|
//####// |
16 |
|
|
//####//------------------------------------------------------------ |
17 |
|
|
//####//------------------------------------------------------------ |
18 |
|
|
//####// COPYRIGHT 2000-2024 |
19 |
|
|
//####// jeu 13 jun 2024 11:58:55 EDT |
20 |
|
|
//####//------------------------------------------------------------ |
21 |
|
|
//####//------------------------------------------------------------ |
22 |
francois |
283 |
|
23 |
|
|
|
24 |
|
|
#include "gestionversion.h" |
25 |
|
|
|
26 |
|
|
|
27 |
|
|
#include "mg_point.h" |
28 |
|
|
#include "lc_point.h" |
29 |
|
|
#include "constantegeo.h" |
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
LC_POINT::LC_POINT(unsigned long num,double coo[3]):MG_POINT(num),x(coo[0]),y(coo[1]),z(coo[2]) |
35 |
|
|
{ |
36 |
|
|
} |
37 |
|
|
|
38 |
francois |
576 |
LC_POINT::LC_POINT(double xx,double yy,double zz):MG_POINT(),x(xx),y(yy),z(zz) |
39 |
|
|
{ |
40 |
|
|
} |
41 |
|
|
|
42 |
|
|
|
43 |
francois |
283 |
LC_POINT::LC_POINT(double coo[3]):MG_POINT(),x(coo[0]),y(coo[1]),z(coo[2]) |
44 |
|
|
{ |
45 |
|
|
} |
46 |
|
|
|
47 |
|
|
LC_POINT::LC_POINT(LC_POINT& mdd):MG_POINT(mdd),x(mdd.x),y(mdd.y),z(mdd.z) |
48 |
|
|
{ |
49 |
|
|
} |
50 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
LC_POINT::~LC_POINT() |
54 |
|
|
{ |
55 |
|
|
} |
56 |
|
|
|
57 |
|
|
int LC_POINT::get_type_geometrique(TPL_LISTE_ENTITE<double> ¶m) |
58 |
|
|
{ |
59 |
|
|
param.ajouter(x); |
60 |
|
|
param.ajouter(y); |
61 |
|
|
param.ajouter(z); |
62 |
francois |
1149 |
return GEOMETRIE::CONST::Co_POINT; |
63 |
francois |
283 |
} |
64 |
|
|
|
65 |
|
|
|
66 |
|
|
void LC_POINT::evaluer(double *xyz) |
67 |
|
|
{ |
68 |
|
|
xyz[0]=x; |
69 |
|
|
xyz[1]=y; |
70 |
|
|
xyz[2]=z; |
71 |
|
|
} |
72 |
|
|
|
73 |
francois |
1022 |
|
74 |
|
|
int LC_POINT::get_type(void) |
75 |
|
|
{ |
76 |
|
|
return TYPE_ELEMENT_GEOMETRIQUE::LC_POINT; |
77 |
|
|
} |
78 |
|
|
|
79 |
|
|
|
80 |
francois |
763 |
void LC_POINT::enregistrer(std::ostream& o,double version) |
81 |
francois |
283 |
{ |
82 |
|
|
o << "%" << get_id() << "=POINT("<< x << "," << y << "," << z << ");" << std::endl; |
83 |
|
|
} |
84 |
|
|
|
85 |
|
|
void LC_POINT::get_param_NURBS(int& indx_premier_ptctr,TPL_LISTE_ENTITE<double> ¶m) |
86 |
|
|
{ |
87 |
|
|
|
88 |
|
|
param.ajouter(0); |
89 |
|
|
param.ajouter(1); |
90 |
|
|
param.ajouter(0); |
91 |
|
|
param.ajouter(1); |
92 |
|
|
param.ajouter(0); |
93 |
|
|
|
94 |
|
|
|
95 |
|
|
param.ajouter(x); |
96 |
|
|
param.ajouter(y); |
97 |
|
|
param.ajouter(z); |
98 |
|
|
|
99 |
|
|
param.ajouter(1); |
100 |
|
|
|
101 |
|
|
indx_premier_ptctr=5; |
102 |
|
|
|
103 |
|
|
} |
104 |
|
|
|
105 |
|
|
|