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

Reformulate a cross product to increase precision #7732

Merged
merged 7 commits into from
Oct 16, 2023

Conversation

MaelRL
Copy link
Member

@MaelRL MaelRL commented Sep 20, 2023

Summary of Changes

The Lindstrom-Turk simplification method can suffer from significant numerical errors when the point coordinates are large (or there is a big difference of magnitude between coordinates). The main source was one cross product.

A few fixes were tried before settling on a reformulation of the cross product based on the assumption that points will be nearby and have similar coordinates. It's not the best method for stability, but the others are too expensive.

I'm leaving the code in case this pops up again in the future.

Note: Garland-Heckbert simplification has no such issues.

Release Management

  • Affected package(s): Surface_mesh_simplification
  • Issue(s) solved (if any): n/a
  • Feature/Small Feature (if any): n/a
  • License and copyright ownership: no changes

@sloriot
Copy link
Member

sloriot commented Oct 15, 2023

Successfully tested in CGAL-6.0-Ic-84

@lrineau lrineau self-assigned this Oct 16, 2023
@lrineau lrineau added the rm only: ready for master For the release team only: that indicates that a PR is about to be merged in 'master' label Oct 16, 2023
@lrineau lrineau merged commit ce63f7c into CGAL:master Oct 16, 2023
9 checks passed
@lrineau lrineau removed the rm only: ready for master For the release team only: that indicates that a PR is about to be merged in 'master' label Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants