-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cell2D.h
51 lines (47 loc) · 1.06 KB
/
Cell2D.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
47
48
49
50
51
/*
* File: Cell2D.h
* Author: Truong
*
* Created on June 12, 2021, 4:01 PM
*/
#pragma once
#include "Face.h"
class Cell2D {
public:
Cell2D() {};
unsigned getIdent();
Point getVertex1();
Point getVertex2();
Point getVertex3();
Point getVertex4();
Face getFace1();
Face getFace2();
Face getFace3();
Face getFace4();
Cell2D* getNeighbor1();
Cell2D* getNeighbor2();
Cell2D* getNeighbor3();
Cell2D* getNeighbor4();
double getVol();
void setIdent(unsigned);
void setVertex(Point*);
void setVertex1(Point);
void setVertex2(Point);
void setVertex3(Point);
void setVertex4(Point);
void setFace(Face*);
void setNeighbor1(Cell2D*);
void setNeighbor2(Cell2D*);
void setNeighbor3(Cell2D*);
void setNeighbor4(Cell2D*);
void setVol(double);
private:
unsigned ident = 0;
Point vertex[4];
Face faces[4];
Cell2D *neighbor1 = nullptr;
Cell2D *neighbor2 = nullptr;
Cell2D *neighbor3 = nullptr;
Cell2D *neighbor4 = nullptr;
double vol = 0.0;
};