First opengl/x11/window integration.
This commit is contained in:
parent
7c6a92f4ec
commit
cea3d2c39f
30 changed files with 254 additions and 72 deletions
|
@ -1,5 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include "AbstractMesh.h"
|
||||
#include "Point.h"
|
||||
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
|
@ -15,7 +18,7 @@ using VecNodes = std::vector<NodePtr>;
|
|||
using VecEdges = std::vector<EdgePtr>;
|
||||
using VecFaces = std::vector<TriFacePtr>;
|
||||
|
||||
class TriMesh
|
||||
class TriMesh : public AbstractMesh
|
||||
{
|
||||
public:
|
||||
TriMesh() = default;
|
||||
|
@ -24,6 +27,8 @@ public:
|
|||
|
||||
void populate(VecNodes& nodes, VecEdges& edges, VecFaces& faces);
|
||||
|
||||
std::vector<std::vector<Point> > getFaceVertices() const;
|
||||
|
||||
private:
|
||||
VecNodes mNodes;
|
||||
VecEdges mEdges;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue