Skip to content

Commit

Permalink
MSRV tuple issue
Browse files Browse the repository at this point in the history
  • Loading branch information
enavarro51 committed Jul 27, 2022
1 parent 2b95ef8 commit e9f230a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/layout/embedding.rs
Expand Up @@ -524,7 +524,9 @@ fn make_bi_connected(
face_list.push(v2);
}
v1 = v2;
(v2, v3) = planar_emb.next_face_half_edge(v2, v3);
let edge = planar_emb.next_face_half_edge(v2, v3);
v2 = edge.0;
v3 = edge.1;
edges_counted.insert((v1, v2));
}
face_list
Expand All @@ -538,13 +540,19 @@ fn triangulate_face(planar_emb: &mut PlanarEmbedding, mut v1: NodeIndex, mut v2:
}
while v1 != v4 {
if planar_emb.embedding.contains_edge(v1, v3) {
(v1, v2, v3) = (v2, v3, v4);
// (v1, v2, v3) = (v2, v3, v4);
v1 = v2;
v2 = v3;
v3 = v4;
} else {
planar_emb.add_half_edge_cw(v1, v3, Some(v2));
planar_emb.add_half_edge_ccw(v3, v1, Some(v2));
(v1, v2, v3) = (v1, v3, v4);
// (v1, v2, v3) = (v1, v3, v4);
v2 = v3;
v3 = v4;
}
(_, v4) = planar_emb.next_face_half_edge(v2, v3);
let edge = planar_emb.next_face_half_edge(v2, v3);
v4 = edge.1;
}
}

Expand Down

0 comments on commit e9f230a

Please sign in to comment.