pyvista / fast-simplification

Fast Quadratic Mesh Simplification
https://pyvista.github.io/fast-simplification/
MIT License
110 stars 15 forks source link

Lack of support for double-float vertex coordinates #23

Closed cgdemarc closed 9 months ago

cgdemarc commented 9 months ago

Internally it looks like the Fast-Quadric-Mesh-Simplification stores vertex coordinates as doubles, but the fast-simplification wrapper only loads floats.

The simplification calculations are adversely affected by lower-precision data, especially when the mesh is not "centered" (moved near the origin).

Also, for vertices that aren't collapsed, it can simplify user code for their coordinates not to be changed, and the double->single->double conversion loses information.