Skip to content

Commit

Permalink
Fix bug on mono-node edge (ex : cylinder)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoudot committed Oct 30, 2024
1 parent c14d58f commit 1c8f1f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/Topo/Edge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,9 @@ void Edge::computeCoEdgesPath(Vertex* v1, Vertex* v2, std::list<std::pair<CoEdge
getCoEdges(coedges);
Vertex* from_vertex = v1;

while (from_vertex != v2) {
if (from_vertex == v2 && coedges.size()==1) {
path.push_back(std::make_pair(coedges[0], true));
} else while (from_vertex != v2) {
// recherche de l'arete ayant une extrémité égale à from_vertex dans coedges
// (coedges étant réduite, normalement il n'y a qu'une coedge répondant à ce prédicat)
Vertex* to_vertex = 0;
Expand Down

0 comments on commit 1c8f1f4

Please sign in to comment.