diff --git a/src/lib/geogram/mesh/mesh.cpp b/src/lib/geogram/mesh/mesh.cpp index 2cecd08eeec6..1595b42dd58e 100644 --- a/src/lib/geogram/mesh/mesh.cpp +++ b/src/lib/geogram/mesh/mesh.cpp @@ -656,6 +656,10 @@ namespace GEO { void MeshFacets::connect(index_t f_begin, index_t f_end) { + if(f_begin == f_end) { + return; + } + // Sanity check: no facet is incident to same vertex // several times #ifdef GEO_DEBUG