Skip to content
Snippets Groups Projects
Commit 034129ab authored by Jean-Marie Favreau's avatar Jean-Marie Favreau
Browse files

Correct the corner detection

parent ab6426e3
No related branches found
No related tags found
No related merge requests found
......@@ -170,7 +170,7 @@ void QuadBorderParameterization::setCornersAuto(const Mesh & mesh) {
const Coord3D n1 = mesh.computeTriangleNormal(mesh.findTriangle((*p).getId(), nbbd[0]).getId());
const Coord3D n2 = mesh.computeTriangleNormal(mesh.findTriangle((*p).getId(), nbbd[1]).getId());
const double angle2 = fabs(Coord3D::angleVector(n1, n2));
valueList.push_back(std::pair<VertexID, double>((*p).getId(), angle1 - angle2));
valueList.push_back(std::pair<VertexID, double>((*p).getId(), angle1 + angle2));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment