Region.h 471 Bytes
Newer Older
1
2
3
#ifndef OERSTED_REGION_H
#define OERSTED_REGION_H

JasonPries's avatar
JasonPries committed
4
5
#include <vector>

6
template<size_t Dimension>
JasonPries's avatar
JasonPries committed
7
8
class Region {
};
9
10

template<>
JasonPries's avatar
JasonPries committed
11
class Region<2> { // TODO: Rename Triangles to Elements?
12
public:
JasonPries's avatar
JasonPries committed
13
    Region(std::vector<size_t> tris) : Triangles{tris} {};
14

JasonPries's avatar
JasonPries committed
15
    std::vector<size_t> const &triangles() const { return Triangles; };
JasonPries's avatar
JasonPries committed
16

JasonPries's avatar
JasonPries committed
17
    size_t const &triangle(size_t i) const { return Triangles[i]; };
JasonPries's avatar
JasonPries committed
18

19
20
21
22
23
protected:
    std::vector<size_t> Triangles;
};

#endif //OERSTED_REGION_H