-
Notifications
You must be signed in to change notification settings - Fork 0
/
Face3D.hpp
52 lines (30 loc) · 815 Bytes
/
Face3D.hpp
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
52
// Face3D Class
// Damien MATTEI
#ifndef FACE3D_HPP
#define FACE3D_HPP
#include "Vector3D.hpp"
#include <iostream>
#include <sstream> // std::stringstream
#include <iomanip>
#include <list>
using namespace std;
//using std::stringstream;
//using std::string;
template <class T> class Face3D {
public:
Vector3D<T> * normal;
list < Point3D<T> *> vertexList;
Face3D();
~Face3D();
Face3D(Vector3D<T> & normal);
// copy constructor
Face3D(const Face3D<T> &);
std::string display(void);
void addVertex(Point3D<T> &);
// assignation operator
Face3D<T> & operator=(const Face3D<T> &);
// equality operator
bool operator== (const Face3D<T> &);
};
template <class T> std::ostream& operator<< (std::ostream &, const Face3D<T> &);
#endif /* FACE3D_HPP */