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 Oct 6, 2023
1 parent a51fee4 commit 2e24bed
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 @@ -2292,6 +2292,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 2e24bed

Please sign in to comment.