-
Notifications
You must be signed in to change notification settings - Fork 0
/
face.h
46 lines (40 loc) · 1.2 KB
/
face.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef FACE2D_H
#define FACE2D_H
#include <boost/shared_ptr.hpp>
#include <vector>
#include <set>
#include <list>
class CmFace
{
public:
CmFace(const unsigned int &num,
const std::vector<unsigned int> &verticesNums,
int& error);
bool VerticesNums(const std::vector<unsigned int> &verticesNums);
std::vector<unsigned int> VerticesNums();
unsigned int GetIndex();
void AddNeighbor(const unsigned int &neighborIndex);
void RemoveNeighbor(const unsigned int &neighborIndex);
std::set<unsigned int> GetNeighbors();
void SetMaterialIndex(const unsigned int &materialIndex);
unsigned int GetMaterialIndex();
void BL(const unsigned int &index);
unsigned int BL();
void BR(const unsigned int &index);
unsigned int BR();
void TL(const unsigned int &index);
unsigned int TL();
void TR(const unsigned int &index);
unsigned int TR();
private:
unsigned int m_BL;
unsigned int m_BR;
unsigned int m_TL;
unsigned int m_TR;
unsigned int m_materialIndex;
std::set<unsigned int> m_neighbors;
std::vector<unsigned int> m_verticesNums;
unsigned int m_num;
};
typedef boost::shared_ptr<CmFace> CmFacep;
#endif // FACE2D_H