Commit 99289847 by Philipp Adolf

Make triangles next to sharp triangles irregular

parent 01f7c225
...@@ -1062,7 +1062,7 @@ void Subdivision::findRegular(QVector<Triangle> triangles, QMap<Triangle, Triang ...@@ -1062,7 +1062,7 @@ void Subdivision::findRegular(QVector<Triangle> triangles, QMap<Triangle, Triang
Triangle::Neighbors ns = neighbors.value(triangle); Triangle::Neighbors ns = neighbors.value(triangle);
bool is_regular = true; bool is_regular = true;
if (triangle.has_sharp_edge()){ if (triangle.has_sharp_edge() || ns.uv.triangle->has_sharp_edge() || ns.vw.triangle->has_sharp_edge() || ns.wu.triangle->has_sharp_edge()){
is_regular = false; is_regular = false;
} }
if (!isVertexRegular(triangle, ns.uv, neighbors)) { if (!isVertexRegular(triangle, ns.uv, neighbors)) {
......
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