From 3fc6225fee47c34c27e18985a37507d635bb8ab9 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 28 Jul 2022 01:35:12 -0400 Subject: [PATCH] although it's rare, if there's a case where a zero-angle triangle is *required* to close up a face (MWT determines it's part of the optimal case), we'll just let it through --- qbsp/tjunc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbsp/tjunc.cc b/qbsp/tjunc.cc index b0449a37..dc456196 100644 --- a/qbsp/tjunc.cc +++ b/qbsp/tjunc.cc @@ -464,7 +464,7 @@ std::vector minimum_weight_triangulation(const std::vector &ind vec_t weight; if (!TriangleIsValid(indices[i], indices[j], indices[k], 0.01)) { - weight = std::numeric_limits::infinity(); + weight = std::nexttoward(std::numeric_limits::max(), 0.0); } else { weight = (qv::distance(vertices[i], vertices[j]) + qv::distance(vertices[j], vertices[k]) +