Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Sep 26, 2024
1 parent 82cd28f commit de82965
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/query/epa/epa3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,15 +373,14 @@ impl EPA {
for edge in &self.silhouette {
if !self.faces[edge.face_id].deleted {
let new_face_id = self.faces.len();
let new_face;

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);
let new_face = Face::new(&self.vertices, pts, adj);

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

Expand Down

0 comments on commit de82965

Please sign in to comment.