Measurement: Fixed edge detection on single-triangle planes

This commit is contained in:
Lukas Matena 2022-12-02 07:42:02 +01:00 committed by enricoturri1966
parent cc8a6a3fff
commit 456e61c7d3

View File

@ -227,7 +227,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);