-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathface.cpp
More file actions
34 lines (34 loc) · 971 Bytes
/
face.cpp
File metadata and controls
34 lines (34 loc) · 971 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
27
28
29
30
31
32
33
34
#ifndef FACE_CPP
#define FACE_CPP
#include "face.h"
face::face(){/*only a default*/
owners[0] = -1;
owners[1] = -1;
};
face::face(point corner1,point corner2,point corner3,point corner4){
corners[0] = corner1;
corners[1] = corner2;
corners[2] = corner3;
corners[3] = corner4;
owners[0] = -1;
owners[1] = -1;
}
std::string face::printCorners(){
std::string returnString= "";
for(int b=0;b<4;b++){
returnString += "Point id: ";
returnString += std::to_string(corners[b].id);
returnString += '[';
returnString += std::to_string(corners[b].x);
returnString += ' ';
returnString += std::to_string(corners[b].y);
returnString += ' ';
returnString += std::to_string(corners[b].z);
returnString += "] ";
returnString += '\n';
}
returnString += ") ;";
returnString += '\n';
return returnString;
};
#endif