Commit f299e524 by Philipp Adolf

Make get_neighbor const

parent eba9a44f
......@@ -192,7 +192,7 @@ void ibToTriangles(QVector<Vertex> *vb, QVector<unsigned int> &ib, QVector<Trian
}
}
Triangle::Neighbor Triangle::Neighbors::get_neighbor(Triangle::Edge::Name name) {
Triangle::Neighbor Triangle::Neighbors::get_neighbor(Triangle::Edge::Name name) const {
switch (name) {
case Triangle::Edge::Name::uv:
return this->uv;
......
......@@ -31,7 +31,7 @@ class Triangle {
Neighbor vw;
Neighbor wu;
Triangle::Neighbor get_neighbor(Triangle::Edge::Name name);
Triangle::Neighbor get_neighbor(Triangle::Edge::Name name) const;
};
Triangle();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment