Lines 17-23
Link Here
|
17 |
*/ |
17 |
*/ |
18 |
|
18 |
|
19 |
#include "MeshData.h" |
19 |
#include "MeshData.h" |
20 |
#include "../pugixml/src/pugixml.hpp" |
20 |
#include <pugixml.hpp> |
21 |
#include <iostream> |
21 |
#include <iostream> |
22 |
|
22 |
|
23 |
using namespace Savitar; |
23 |
using namespace Savitar; |
Lines 85-91
bytearray MeshData::getFlatVerticesAsBytes()
Link Here
|
85 |
int v1 = faces.at(i).getV1(); |
85 |
int v1 = faces.at(i).getV1(); |
86 |
int v2 = faces.at(i).getV2(); |
86 |
int v2 = faces.at(i).getV2(); |
87 |
int v3 = faces.at(i).getV3(); |
87 |
int v3 = faces.at(i).getV3(); |
88 |
|
88 |
|
89 |
// Add vertices for face 1 |
89 |
// Add vertices for face 1 |
90 |
float x = vertices.at(v1).getX(); |
90 |
float x = vertices.at(v1).getX(); |
91 |
float y = vertices.at(v1).getY(); |
91 |
float y = vertices.at(v1).getY(); |
Lines 188-193
std::vector< Vertex > MeshData::getVertices()
Link Here
|
188 |
{ |
188 |
{ |
189 |
return vertices; |
189 |
return vertices; |
190 |
} |
190 |
} |
191 |
|
|
|
192 |
|
193 |
|