-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEdge.h
More file actions
26 lines (23 loc) · 838 Bytes
/
Edge.h
File metadata and controls
26 lines (23 loc) · 838 Bytes
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
#pragma once
#include <vector>
#include <array>
#include "Defines.h"
using namespace std;
class Edge {
private:
unsigned int m_surface_id;
double m_square;
array <double, 3> m_center, m_point_a, m_point_b, m_point_c;
array <unsigned int, NODES_PER_EDGE> m_right_order_of_ids;
public:
Edge();
Edge(unsigned int surface_id, const array<unsigned int, NODES_PER_EDGE>* indices,
const vector<array<double, COORDS_PER_NODE>>* coords);
unsigned int getSurfaceId() const;
double getSquare() const;
const array <double, COORDS_PER_NODE>* getCenter() const;
const array <unsigned int, NODES_PER_EDGE>* getRightIdsOrder() const;
const array<double, COORDS_PER_NODE>* getPointA() const;
const array<double, COORDS_PER_NODE>* getPointB() const;
const array<double, COORDS_PER_NODE>* getPointC() const;
};