reintroduce lost p2

This commit is contained in:
Jane Tournois 2022-11-08 17:52:39 +01:00
parent 6b4bd0b653
commit 705e713414
1 changed files with 4 additions and 4 deletions

View File

@ -272,10 +272,10 @@ bool is_one_to_one_mapping(const TriangleMesh& mesh,
const Point_2& p1 = get(uvmap, vd1);
const Point_2& p2 = get(uvmap, vd2);
NT bx[2] = { (std::min)(p0[0], p1[0]),
(std::min)(p0[1], p1[1]) };
NT by[2] = { (std::max)(p0[0], p1[0]),
(std::max)(p0[1], p1[1]) };
NT bx[2] = { (std::min)(p0[0], (std::min)(p1[0], p2[0])),
(std::min)(p0[1], (std::min)(p1[1], p2[1])) };
NT by[2] = { (std::max)(p0[0], (std::max)(p1[0], p2[0])),
(std::max)(p0[1], (std::max)(p1[1], p2[1])) };
boxes.push_back(Box(bx, by, fd));
}