1 |
francois |
283 |
//------------------------------------------------------------ |
2 |
|
|
//------------------------------------------------------------ |
3 |
|
|
// MAGiC |
4 |
|
|
// Jean Christophe Cuilli�re et Vincent FRANCOIS |
5 |
|
|
// D�partement de G�nie M�canique - UQTR |
6 |
|
|
//------------------------------------------------------------ |
7 |
|
|
// Le projet MAGIC est un projet de recherche du d�partement |
8 |
|
|
// de g�nie m�canique de l'Universit� du Qu�bec � |
9 |
|
|
// Trois Rivi�res |
10 |
|
|
// Les librairies ne peuvent �tre utilis�es sans l'accord |
11 |
|
|
// des auteurs (contact : francois@uqtr.ca) |
12 |
|
|
//------------------------------------------------------------ |
13 |
|
|
//------------------------------------------------------------ |
14 |
|
|
// |
15 |
|
|
// sat_point.cpp |
16 |
|
|
// |
17 |
|
|
//------------------------------------------------------------ |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
// COPYRIGHT 2000 |
20 |
|
|
// Version du 02/03/2006 � 11H24 |
21 |
|
|
//------------------------------------------------------------ |
22 |
|
|
//------------------------------------------------------------ |
23 |
|
|
|
24 |
|
|
|
25 |
|
|
#include "gestionversion.h" |
26 |
|
|
|
27 |
|
|
#include "sat_point.h" |
28 |
|
|
#include "constantegeo.h" |
29 |
|
|
|
30 |
|
|
|
31 |
|
|
SAT_POINT::SAT_POINT(unsigned long num):SAT_IDENTIFICATEUR(num) |
32 |
|
|
{ |
33 |
|
|
} |
34 |
|
|
|
35 |
|
|
SAT_POINT::SAT_POINT():SAT_IDENTIFICATEUR() |
36 |
|
|
{ |
37 |
|
|
} |
38 |
|
|
|
39 |
|
|
|
40 |
|
|
SAT_POINT::SAT_POINT(SAT_POINT& mdd):SAT_IDENTIFICATEUR() |
41 |
|
|
{ |
42 |
|
|
} |
43 |
|
|
|
44 |
|
|
SAT_POINT::~SAT_POINT() |
45 |
|
|
{ |
46 |
|
|
} |
47 |
|
|
|
48 |
|
|
|
49 |
|
|
void SAT_POINT::evaluer(double *xyz) |
50 |
|
|
{ |
51 |
|
|
xyz[0]=coord[0]; |
52 |
|
|
xyz[1]=coord[1]; |
53 |
|
|
xyz[2]=coord[2]; |
54 |
|
|
} |
55 |
|
|
|
56 |
|
|
int SAT_POINT::get_type_geometrique(TPL_LISTE_ENTITE<double> ¶m) |
57 |
|
|
{ |
58 |
|
|
param.ajouter(coord[0]); |
59 |
|
|
param.ajouter(coord[1]); |
60 |
|
|
param.ajouter(coord[2]); |
61 |
|
|
return MGCo_POINT; |
62 |
|
|
} |
63 |
|
|
|
64 |
|
|
|
65 |
|
|
void SAT_POINT:: get_param_NURBS(int& indx_premier_ptctr,TPL_LISTE_ENTITE<double> ¶m) |
66 |
|
|
{ |
67 |
|
|
// the first parameter indicates the acces code |
68 |
|
|
param.ajouter(0); |
69 |
|
|
// the second parameter indicates the order of the point which should be one for a point |
70 |
|
|
param.ajouter(1); |
71 |
|
|
param.ajouter(0); |
72 |
|
|
|
73 |
|
|
param.ajouter(1); |
74 |
|
|
param.ajouter(0); |
75 |
|
|
|
76 |
|
|
// the third parameter presente the number of the controls point wich correspond to the cordinate point |
77 |
|
|
// note that the cordinate of the control points are given in homogeneous cordinates |
78 |
|
|
// for a point, the weight it's �qual to one. |
79 |
|
|
|
80 |
|
|
param.ajouter(coord[0]); |
81 |
|
|
param.ajouter(coord[1]); |
82 |
|
|
param.ajouter(coord[2]); |
83 |
|
|
|
84 |
|
|
param.ajouter(1); |
85 |
|
|
|
86 |
|
|
indx_premier_ptctr=5; |
87 |
|
|
|
88 |
|
|
} |
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
//--------------------------------------------------------------------------- |
93 |
|
|
|