MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
toibrep_point.cpp
Aller à la documentation de ce fichier.
1 //####//------------------------------------------------------------
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 //####// toibrep_point.cpp
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:58:56 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 #include "gestionversion.h"
23 #include "toibrep_point.h"
24 #include "mg_element_topologique.h"
25 
26 
27 
28 unsigned long TOIBREP_POINT::idmax=0;
29 
30 
31 
32 TOIBREP_POINT::TOIBREP_POINT(double xx,double yy, double zz,double uu, double vv,int inte,MG_FACE* element):id(idmax),x(xx),y(yy),z(zz),ele(element),u(uu),v(vv),interieur(inte),nbpointeps(0)
33 {
34 idmax++;
35 }
36 
37 TOIBREP_POINT::TOIBREP_POINT(double xx,double yy, double zz,double tt,int inte,class MG_FACE* element):id(idmax),x(xx),y(yy),z(zz),ele(element),u(tt),v(tt),interieur(inte),nbpointeps(0)
38 {
39 idmax++;
40 }
41 
42 
44 {
45 }
46 
47 
48 
49 unsigned long TOIBREP_POINT::get_id(void)
50 {
51 return id;
52 }
53 
54 
55 void TOIBREP_POINT::get_coord3(double *xyz)
56 {
57 xyz[0]=x;
58 xyz[1]=y;
59 xyz[2]=z;
60 }
61 
62 void TOIBREP_POINT::get_coord2(double *uv)
63 {
64 uv[0]=u;
65 uv[1]=v;
66 }
67 
69 {
70 t=u;
71 }
72 
74 {
75 u=uv[0];
76 v=uv[1];
77 }
78 
80 {
81 u=t;
82 v=t;
83 }
84 
86 {
87 return ele;
88 }
89 
90 void TOIBREP_POINT::get_normal(double *nor)
91 {
92 nor[0]=n[0];
93 nor[1]=n[1];
94 nor[2]=n[2];
95 }
96 
98 {
99 n[0]=nor[0];
100 n[1]=nor[1];
101 n[2]=nor[2];
102 }
103 
105 {
106 idmax=0;
107 }
109 {
110 return interieur;
111 }
112 
113 
115 {
117 }
118 
120 {
121 BOITE_3D boite(x,y,z,x,y,z);
122 return boite;
123 
124 }
125 
126 
127 
128 
130 {
131 if (nbpointeps>3) return 0;
132 xyzeps[3*nbpointeps]=xyz[0];
133 xyzeps[3*nbpointeps+1]=xyz[1];
134 xyzeps[3*nbpointeps+2]=xyz[2];
135 nbpointeps++;
136 return 1;
137 }
138 
139 
140 void TOIBREP_POINT::get_point_eps(int num,double *xyz)
141 {
142 xyz[0]=xyzeps[3*num];
143 xyz[1]=xyzeps[3*num+1];
144 xyz[2]=xyzeps[3*num+2];
145 }
146 
148 {
149 return nbpointeps;
150 }
TOIBREP_POINT::TOIBREP_POINT
TOIBREP_POINT(double xx, double yy, double zz, double uu, double vv, int inte, class MG_FACE *element)
Definition: toibrep_point.cpp:32
gestionversion.h
TOIBREP_POINT::ele
MG_FACE * ele
Definition: toibrep_point.h:61
TOIBREP_POINT::nbpointeps
int nbpointeps
Definition: toibrep_point.h:65
TOIBREP_POINT::get_nb_point_eps
int get_nb_point_eps(void)
Definition: toibrep_point.cpp:147
TOIBREP_POINT::z
double z
Definition: toibrep_point.h:59
TOIBREP_POINT::id
unsigned long id
Definition: toibrep_point.h:57
TOIBREP_POINT::remisecompteurid
static void remisecompteurid(void)
Definition: toibrep_point.cpp:104
TOIBREP_POINT::xyzeps
double xyzeps[12]
Definition: toibrep_point.h:64
TOIBREP_POINT::get_normal
void get_normal(double *nor)
Definition: toibrep_point.cpp:90
TOIBREP_POINT::change_interieur
void change_interieur(void)
Definition: toibrep_point.cpp:114
TOIBREP_POINT::get_coord2
void get_coord2(double *uv)
Definition: toibrep_point.cpp:62
toibrep_point.h
TOIBREP_POINT::~TOIBREP_POINT
~TOIBREP_POINT()
Definition: toibrep_point.cpp:43
TOIBREP_POINT::get_id
unsigned long get_id(void)
Definition: toibrep_point.cpp:49
TOIBREP_POINT::y
double y
Definition: toibrep_point.h:59
TOIBREP_POINT::x
double x
Definition: toibrep_point.h:59
TOIBREP_POINT::get_coord1
void get_coord1(double &t)
Definition: toibrep_point.cpp:68
TOIBREP_POINT::v
double v
Definition: toibrep_point.h:60
TOIBREP_POINT::n
double n[3]
Definition: toibrep_point.h:62
TOIBREP_POINT::idmax
static unsigned long idmax
Definition: toibrep_point.h:58
TOIBREP_POINT::get_boite_3D
BOITE_3D get_boite_3D(void)
Definition: toibrep_point.cpp:119
BOITE_3D
Definition: ot_boite_3d.h:27
TOIBREP_POINT::change_coord1
void change_coord1(double t)
Definition: toibrep_point.cpp:79
TOIBREP_POINT::get_point_eps
void get_point_eps(int num, double *xyz)
Definition: toibrep_point.cpp:140
TOIBREP_POINT::interieur
int interieur
Definition: toibrep_point.h:63
mg_element_topologique.h
TOIBREP_POINT::change_coord2
void change_coord2(double *uv)
Definition: toibrep_point.cpp:73
MG_FACE
Definition: mg_face.h:34
TOIBREP_POINT::get_coord3
void get_coord3(double *xyz)
Definition: toibrep_point.cpp:55
TOIBREP_POINT::get_interieur
int get_interieur(void)
Definition: toibrep_point.cpp:108
TOIBREP_POINT::get_mg_face
MG_FACE * get_mg_face(void)
Definition: toibrep_point.cpp:85
TOIBREP_POINT::u
double u
Definition: toibrep_point.h:60
TOIBREP_POINT::change_normal
void change_normal(double *nor)
Definition: toibrep_point.cpp:97
TOIBREP_POINT::ajoute_point_eps
int ajoute_point_eps(double *xyz)
Definition: toibrep_point.cpp:129