Chi-Tech
chi_mesh_edgeloops.h
Go to the documentation of this file.
1#ifndef _chi_mesh_edgeloops_h
2#define _chi_mesh_edgeloops_h
3
4/**Structure containing edge properties*/
6{
7 int v_index[2]{}; ///< Indices of the vertices
8 int f_index[4]{}; ///< Indices of faces adjoining it
9 chi_mesh::Vertex vertices[2]; ///< Vector vertices
10
12 {
13 v_index[0] = -1;
14 v_index[1] = -1;
15
16 f_index[0] = -1;
17 f_index[1] = -1;
18 f_index[2] = -1;
19 f_index[3] = -1;
20 }
21
22 Edge& operator=(const Edge& that)
23 {
24 if (&that != this)
25 {
26 this->v_index[0] = that.v_index[0];
27 this->v_index[1] = that.v_index[1];
28
29 this->f_index[0] = that.f_index[0];
30 this->f_index[1] = that.f_index[1];
31 this->f_index[2] = that.f_index[2];
32 this->f_index[3] = that.f_index[3];
33
34 this->vertices[0] = that.vertices[0];
35 this->vertices[1] = that.vertices[1];
36 }
37
38 return *this;
39 }
40};
41
42
43#endif
chi_mesh::Vertex vertices[2]
Vector vertices.
Edge & operator=(const Edge &that)
int f_index[4]
Indices of faces adjoining it.
int v_index[2]
Indices of the vertices.