Some simple svg output.

This commit is contained in:
James Grogan 2022-12-08 13:52:37 +00:00
parent 1fc730d413
commit b101a5f87c
11 changed files with 87 additions and 6 deletions

View file

@ -1,6 +1,7 @@
#include "TriFace.h"
#include "Edge.h"
#include "Node.h"
TriFace::TriFace(Edge* edge0, Edge* edge1, Edge* edge2, unsigned id)
: AbstractFace(id),
@ -73,3 +74,8 @@ void TriFace::associateWidthEdges()
mEdge1->associateFace(mId);
mEdge2->associateFace(mId);
}
std::vector<Point> TriFace::getNodeLocations() const
{
return {mEdge0->getNode0()->getPoint(), mEdge0->getNode1()->getPoint(), mEdge1->getNode1()->getPoint()};
}