Skip to content

Commit

Permalink
Small fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-ogre committed Nov 13, 2023
1 parent eeae3a7 commit 1b28acd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CDT/include/CDTUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ CDT_INLINE_IF_HEADER_ONLY Index opoNbr(const Index vertIndex)
if(vertIndex == Index(2))
return Index(0);
assert(false && "Invalid vertex index");
throw std::runtime_error("Invalid vertex index");
}

CDT_INLINE_IF_HEADER_ONLY Index opoVrt(const Index neighborIndex)
Expand All @@ -175,6 +176,7 @@ CDT_INLINE_IF_HEADER_ONLY Index opoVrt(const Index neighborIndex)
if(neighborIndex == Index(2))
return Index(1);
assert(false && "Invalid neighbor index");
throw std::runtime_error("Invalid neighbor index");
}

CDT_INLINE_IF_HEADER_ONLY Index
Expand Down
2 changes: 1 addition & 1 deletion CDT/include/Triangulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ void Triangulation<T, TNearPointLocator>::conformToEdgeIteration(
{
// make sure to report original input edges in the exception
Edge e1 = pieceToOriginals.count(edge)
? pieceToOriginals[e1].front()
? pieceToOriginals[edge].front()
: edge;
Edge e2(iVleft, iVright);
e2 = pieceToOriginals.count(e2) ? pieceToOriginals[e2].front()
Expand Down

0 comments on commit 1b28acd

Please sign in to comment.