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

PMP: todo: Fix slow compute_vertex_normal() #8684

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

Conversation

afabri
Copy link
Member

@afabri afabri commented Jan 9, 2025

Summary of Changes

For the testcase provided in this PR compute_vertex_normal() is particularly slow. A vertex has a fan of incident faces with identical normal. As the first fix tests with operator==(Vector_3,Vector_3) it is still slow when the object is slightly rotated or perturbed. With a bound on the angle between normals it is fixed, but is that acceptable? For double probably. Do we have to specialize for exact number types?

Release Management

  • Affected package(s): PMP
  • License and copyright ownership: GF

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.

2 participants