Skip to content

Commit

Permalink
#7 Fix budgeting refinement points
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-ogre committed Sep 29, 2023
1 parent 9b6d5b1 commit 5712f90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CDT/include/Triangulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2294,6 +2294,7 @@ void Triangulation<T, TNearPointLocator>::refineTriangles(

if(badTris.empty() && remainingVertexBudget > 0)
{
--remainingVertexBudget;
const VertInd iVert = static_cast<VertInd>(vertices.size());
addNewVertex(vert, noNeighbor);
insertVertex(iVert);
Expand Down

0 comments on commit 5712f90

Please sign in to comment.