Skip to content

Commit

Permalink
remove comment/scope about nll
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Sep 26, 2024
1 parent 8d2b591 commit 9a5695c
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions src/query/epa/epa3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,20 +375,15 @@ impl EPA {
let new_face_id = self.faces.len();
let new_face;

// TODO: Thierry: We can probably remove that scope now, but I prefer to discuss it first.
// I assume NLL is for Non Lexical Lifetimes.
// TODO: NLL
{
let face_adj = &mut self.faces[edge.face_id];
let pt_id1 = face_adj.pts[(edge.opp_pt_id + 2) % 3];
let pt_id2 = face_adj.pts[(edge.opp_pt_id + 1) % 3];

let pts = [pt_id1, pt_id2, support_point_id];
let adj = [edge.face_id, new_face_id + 1, new_face_id - 1];
new_face = Face::new(&self.vertices, pts, adj);

face_adj.adj[(edge.opp_pt_id + 1) % 3] = new_face_id;
}
let face_adj = &mut self.faces[edge.face_id];
let pt_id1 = face_adj.pts[(edge.opp_pt_id + 2) % 3];
let pt_id2 = face_adj.pts[(edge.opp_pt_id + 1) % 3];

let pts = [pt_id1, pt_id2, support_point_id];
let adj = [edge.face_id, new_face_id + 1, new_face_id - 1];
new_face = Face::new(&self.vertices, pts, adj);

face_adj.adj[(edge.opp_pt_id + 1) % 3] = new_face_id;

self.faces.push(new_face.0);

Expand Down

0 comments on commit 9a5695c

Please sign in to comment.