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

GRIDEDIT-1522: Bug Fix, missing circumcenters calculations #382

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

lucacarniato
Copy link
Contributor

No description provided.

@lucacarniato lucacarniato changed the title GRIDEDIT-1522: Bug Fix GRIDEDIT-1522: Bug Fix in contacts computations Nov 4, 2024
@lucacarniato lucacarniato changed the title GRIDEDIT-1522: Bug Fix in contacts computations GRIDEDIT-1522: Bug Fix, missing circumcenters calculations Nov 7, 2024
Comment on lines 1155 to 1156

double maxValue = std::max(std::max(std::abs(x21), std::abs(y21)),
std::max(std::abs(x43), std::abs(y43)));
const double eps = std::max(0.00001 * maxValue, std::numeric_limits<double>::denorm_min());

if (std::abs(det) < eps)
if (IsEqual(det, 0.0))
Copy link
Contributor

@BillSenior BillSenior Nov 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way that IsEqual is implemented in the master, this will (IsEqual(det, 0.0)) always return false (unless det == 0.0) So I think the previous version was the better check in this case

@lucacarniato lucacarniato marked this pull request as ready for review November 13, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants