Xinqi Bao's Git

XbSlicer, re-organized the entire project
[XbSlicer.git] / src / Triangle.hh
1 #pragma once
2
3 /*
4 @author: Xinqi Bao
5 Triangle with 3 3-D vectors.
6 */
7
8 #include <iostream>
9
10 #include "BufferReadBinary.hh"
11 #include "Vec3d.hh"
12
13 class Skip
14 {
15 public:
16 friend std::istream& operator>>(std::istream& s, Skip& skip);
17 };
18
19 class Triangle
20 {
21 public:
22 Vec3d normal, v1, v2, v3;
23
24 Triangle();
25 Triangle(std::istream& s);
26 Triangle(BufferReadBinary& buffer);
27 Triangle(Vec3d& normal, Vec3d& v1, Vec3d& v2, Vec3d& v3);
28
29 friend std::ostream& operator<<(std::ostream& s, Triangle& tri);
30 };