Skip to content

Commit

Permalink
Fixed bug:
Browse files Browse the repository at this point in the history
Mesh.facets.connect() was assertion-failing in debug mode when there
is no facets.
  • Loading branch information
BrunoLevy committed Sep 23, 2024
1 parent af6ce6c commit 32418e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/geogram/mesh/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32418e8

Please sign in to comment.