Commit ed3dfc77 by Philipp Adolf

Check sharpness in isVertexRegular

parent 6ca49720
......@@ -868,8 +868,13 @@ QVector<unsigned int> Subdivision::patchIBToTriangleIB(QVector<unsigned int> ib)
}
bool isVertexRegular(Triangle &triangle, Triangle::Neighbor current_neighbor, QMap<Triangle, Triangle::Neighbors> neighbors) {
unsigned int count = 1;
assert(current_neighbor.triangle != NULL);
unsigned int count = 1;
bool is_sharp =
triangle.get_sharpness_uv() > 0 ||
triangle.get_sharpness_vw() > 0 ||
triangle.get_sharpness_wu() > 0;
if (is_sharp) return false;
while (count < 6 && *current_neighbor.triangle != triangle) {
count++;
current_neighbor = neighbors.value(*current_neighbor.triangle).get_neighbor(rotate_edge_name(current_neighbor.edge.name));
......
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