cgal icon indicating copy to clipboard operation
cgal copied to clipboard

PMP: todo: Fix slow compute_vertex_normal()

Open afabri opened this issue 1 year ago • 1 comments

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

afabri avatar Jan 09 '25 14:01 afabri

where to learn the basics for contributing

MOHAMMEDANSILKA avatar Jan 14 '25 19:01 MOHAMMEDANSILKA

Successfully tested in CGAL-6.1-Ic-189

sloriot avatar Jul 07 '25 18:07 sloriot

If I remember correctly there is still something todo by @LeoValque .

afabri avatar Jul 08 '25 07:07 afabri

This pull-request was previously marked with the label Tested, but has been modified with new commits. That label has been removed.

github-actions[bot] avatar Jul 28 '25 09:07 github-actions[bot]

Successfully tested in CGAL-6.1-Ic-208

sloriot avatar Jul 31 '25 13:07 sloriot