Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
johnprif committed Feb 17, 2023
1 parent eadc398 commit f323bda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Model/DataBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,11 @@ public Point2D getU(Point2D p, Point2D prev, Point2D next) {
}


public void updateUp(Point2D p, Point2D c)
{
u_p.replace(p, c);
}

//-----------O(n)----------------
public void addAllUpToK()
{
Expand Down
1 change: 1 addition & 0 deletions src/Model/NeighborVoronoiDiagram.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void computeVoronoiDiagram()
dataBase.addCandUtoE(c, dataBase.getUp2(p));
dataBase.addCandUtoE(c, dataBase.getUp2(before_p));
//u(q)=c;
dataBase.updateUp(before_p, c);
dataBase.deleteMaxP();
n = n-1;
}while(n != 2);
Expand Down

0 comments on commit f323bda

Please sign in to comment.