Measurement: Fixed edge detection on single-triangle planes

This commit is contained in:
Lukas Matena 2022-12-02 07:42:02 +01:00
parent 048fb10c31
commit 8aa62b88f6

View File

@ -225,7 +225,7 @@ void MeasuringImpl::update_planes()
// In case of broken meshes, this loop might be infinite. Break
// out in case it is clearly going bad.
if (last_border.size() > 3*facets.size())
if (last_border.size() > 3*facets.size()+1)
goto PLANE_FAILURE;
} while (he != he_start);