Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruppert's Refinement Algorithm. #133

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#7 Revert change to linear interpolation function
  • Loading branch information
artem-ogre committed Aug 21, 2023
commit b3badf5cc69e9e48dd329d5059e062cc08c23460
4 changes: 1 addition & 3 deletions CDT/include/Triangulation.hpp
Original file line number Diff line number Diff line change
@@ -426,9 +426,7 @@ namespace detail
template <typename T>
T lerp(const T& a, const T& b, const T t)
{
if((a <= 0 && b >= 0) || (a >= 0 && b <= 0))
return (T(1) - t) * a + t * b;
return a + t * (b - a);
return (T(1) - t) * a + t * b;
}

// Precondition: ab and cd intersect normally