Skip to content

Commit

Permalink
#163 Fix a typo in code. Thank you @LeoPizzo1πŸ™‡
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-ogre committed Nov 15, 2023
1 parent 5168f56 commit c34211f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CDT/include/Triangulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1494,9 +1494,9 @@ array<TriInd, 2> Triangulation<T, TNearPointLocator>::walkingSearchTrianglesAt(
throw Error("No triangle was found at position", CDT_SOURCE_LOCATION);
if(loc == PtTriLocation::OnVertex)
{
const Index iDupe = v1 == v ? t.vertices[0]
: v2 == v ? t.vertices[1]
: t.vertices[2];
const VertInd iDupe = v1 == v ? t.vertices[0]
: v2 == v ? t.vertices[1]
: t.vertices[2];
throw DuplicateVertexError(
iV - m_nTargetVerts, iDupe - m_nTargetVerts, CDT_SOURCE_LOCATION);
}
Expand Down

0 comments on commit c34211f

Please sign in to comment.