Skip to content

Commit

Permalink
verify if second polygon edge exists
Browse files Browse the repository at this point in the history
  • Loading branch information
BenPinet committed May 29, 2024
1 parent 0016419 commit 4cabadd
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,17 @@ namespace geode
.polygon_edge_from_vertices(
edge_vertices[0], edge_vertices[1] )
.value() );
edges.emplace_back(
surface_mesh
if( surface_mesh
.polygon_edge_from_vertices(
edge_vertices[1], edge_vertices[0] )
.value() );
.has_value() )
{
edges.emplace_back(
surface_mesh
.polygon_edge_from_vertices(
edge_vertices[1], edge_vertices[0] )
.value() );
}
}
}
}
Expand Down

0 comments on commit 4cabadd

Please sign in to comment.